You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 2, 2023. It is now read-only.
When you define an exchange to be created in the exchanges array, you expect the exchange to be created with the provided name. (This is from runtime.groovy, not the application.yml file)
However, in our gitlab runner, there appears to be an environment variable defined as RABBITMQ_NAME (because we start a rabbitmq server as a gitlab-ci service, this environment variable is automatically set).
When such a variable is set, your logic will evaluate the exchange name to the value of the environment variable.
We have created a custom version of QueueBuilderImpl and ExchangeProperties that print out some diagnostic information, because the issue only appeared in our CI environment.
This is what we get when that variable is defined:
You can see that the exchanges map contains the right name, but then inside the ExchangeProperties constructor, when you call configuration.getProperty('name', String), the resulting value is "/runner-e5wbmsje-project-292-concurrent-0-415c6488ad4e874a-build-2/rabbitmq"
This is the value of RABBITMQ_NAME
When I call the tests but previously use unset RABBITMQ_NAME, then the plugin succeeds in creating the exchange with the proper name:
When you define an exchange to be created in the exchanges array, you expect the exchange to be created with the provided name. (This is from
runtime.groovy
, not theapplication.yml
file)This is our configuration:
However, in our gitlab runner, there appears to be an environment variable defined as
RABBITMQ_NAME
(because we start a rabbitmq server as a gitlab-ci service, this environment variable is automatically set).When such a variable is set, your logic will evaluate the exchange name to the value of the environment variable.
We have created a custom version of
QueueBuilderImpl
andExchangeProperties
that print out some diagnostic information, because the issue only appeared in our CI environment.This is what we get when that variable is defined:
You can see that the exchanges map contains the right name, but then inside the
ExchangeProperties
constructor, when you callconfiguration.getProperty('name', String)
, the resulting value is "/runner-e5wbmsje-project-292-concurrent-0-415c6488ad4e874a-build-2/rabbitmq"This is the value of
RABBITMQ_NAME
When I call the tests but previously use
unset RABBITMQ_NAME
, then the plugin succeeds in creating the exchange with the proper name:The text was updated successfully, but these errors were encountered: