-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: auto-discover workspaces when in subdirectories #4363
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯 Thanks Marco!
These tests are flaky on Linux and fail consistently on Windows. On Linux sometimes fails with:
On Windows, always fails with:
Can we revert the merge of this PR and have this looked at. |
I think I could see where this possibly flaky issue is coming from in the tests. Here's my running theory. atlantis/server/events/project_command_builder_test.go Lines 170 to 207 in 566b15f
For this specific test case, there is two test directories atlantis/server/events/project_command_builder_test.go Lines 280 to 294 in 566b15f
Here is the logic to compare the actual contexts which the ones that are expected set in an array. The camparsion being done is the string key of the map interface for I believe the flaky test is when the arrays get out of order compared to one another. So |
what
Detect workspaces from subdirectories during autodiscovery.
why
tests
references
closes #3252
supersedes #3253