Skip to content

Conversation

jeffschoner-stripe
Copy link
Contributor

It can take some time between registering a namespace, and that namespace being available to describe. Moreover, the test as originally written can depend on the behavior of a previous run. The description passed on initial namespace registration will remain on the namespace indefinitely. If this value is changed in code, subsequent tests will fail when the description does not match.

Using ruby-samples (or whatever name has been overridden in an environment variable) ensures the same behavior each run and is not subject to the possible delay of creating a new namespace since this namespace must already exist to be able to start the test workers.

This fixes flaky CI failures such as https://app.circleci.com/pipelines/github/coinbase/temporal-ruby/352/workflows/171da02d-adb6-44f1-b203-ae1fcb7d755c/jobs/714

It can take some time between registering a namespace, and that
namespace being available to describe. Moreover, the test as originally
written can depend on the behavior of a previous run. The description
passed on initial namespace registration will remain on the namespace
indefinitely. If this value is changed in code, subsequent tests
will fail when the description does not match.

Using ruby-samples (or whatever name has been overridden in an
environment variable) ensures the same behavior each run and is not
subject to the possible delay of creating a new namespace since
this namespace must already exist to be able to start the test
workers.
Copy link
Contributor

@antstorm antstorm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @jeffschoner-stripe!

@antstorm antstorm merged commit 265edd3 into coinbase:master Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants