Skip to content
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(scalers): remove scalers upon notification #375

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

brooksmtownsend
Copy link
Member

@brooksmtownsend brooksmtownsend commented Aug 6, 2024

Feature or Problem

This PR reorders the order of operations during cleanup to ensure that we remove the scalers from the list that will be reconciling/handling events immediately before refreshing data & publishing cleanup commands. This should help us avoid race conditions in tests and make the scalers do a better job at cleaning up.

Related Issues

Fixes #317

Release Information

Consumer Impact

Testing

Unit Test(s)

Acceptance or Integration

Manual Verification

Added a temporary commit that I'll remove that just runs the e2e tests 10 times and should serve as a good indicator if we have the issue still.

As you can see by https://github.com/wasmCloud/wadm/actions/runs/10271223819, 10x runs of the integration tests didn't hit the condition after this

@brooksmtownsend brooksmtownsend marked this pull request as ready for review August 6, 2024 18:22
@brooksmtownsend brooksmtownsend requested a review from a team as a code owner August 6, 2024 18:22
@brooksmtownsend brooksmtownsend enabled auto-merge (rebase) August 6, 2024 18:25
@brooksmtownsend brooksmtownsend merged commit 8d8adfe into main Aug 6, 2024
7 checks passed
@brooksmtownsend brooksmtownsend deleted the fix/cleanup-race-condition branch August 6, 2024 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Multiple hosts e2e integration test is flaky when deleting the link
2 participants