Skip to content

Conversation

@Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Nov 7, 2024

The second assert_none!() in this test was occasionally failing due to a race condition. The TestJob that was enqueued right before this one would sometimes already be processed before we enqueue this one, leading to this one being actually enqueued instead of being deduplicated. The reason for this was that the runner() fn builds a Runner with two workers for the default queue. This commit changes the runner to only use a single worker, which avoids the race condition.

The second `assert_none!()` in this test was occasionally failing due to a race condition. The `TestJob` that was enqueued right before this one would sometimes already be processed before we enqueue this one, leading to this one being actually enqueued instead of being deduplicated. The reason for this was that the `runner()` fn builds a `Runner` with two workers for the default queue. This commit changes the runner to only use a single worker, which avoids the race condition.
@Turbo87 Turbo87 added C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear A-backend ⚙️ labels Nov 7, 2024
@Turbo87 Turbo87 enabled auto-merge (squash) November 7, 2024 10:35
@Turbo87 Turbo87 merged commit af75859 into rust-lang:main Nov 7, 2024
8 checks passed
@Turbo87 Turbo87 deleted the flakes branch November 7, 2024 10:41
@codecov
Copy link

codecov bot commented Nov 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.86%. Comparing base (dd2863e) to head (3e99dff).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9865   +/-   ##
=======================================
  Coverage   88.86%   88.86%           
=======================================
  Files         289      289           
  Lines       30000    30002    +2     
=======================================
+ Hits        26659    26662    +3     
+ Misses       3341     3340    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant