Skip to content

Conversation

dfed
Copy link
Owner

@dfed dfed commented Oct 21, 2024

I have a theory that occasional CI failures (example 1, example 2) are caused by MainActorQueueTests occasionally running tests on main that also wait for work to be done on main, causing a deadlock. I have moved these tests to run on a non-main global queue to avoid this trap.

CI on this code has run ten times without failure, validating the hypothesis.

@dfed dfed self-assigned this Oct 21, 2024
Copy link

codecov bot commented Oct 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (54c2fae) to head (ad23040).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##              main       #43   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           11        11           
  Lines         1060      1060           
=========================================
  Hits          1060      1060           
Files with missing lines Coverage Δ
Tests/AsyncQueueTests/MainActorQueueTests.swift 100.00% <ø> (ø)

@dfed dfed force-pushed the dfed--use-global-queue-in-tests branch 2 times, most recently from b1f6644 to fd5ef69 Compare October 21, 2024 17:53
@dfed dfed changed the title Use global queue in tests Use non-main queue in main actor tests Oct 21, 2024
@dfed dfed force-pushed the dfed--use-global-queue-in-tests branch from fd5ef69 to ad23040 Compare October 21, 2024 17:57
@dfed dfed marked this pull request as ready for review October 21, 2024 18:24
@dfed dfed merged commit 7860a61 into main Oct 21, 2024
7 of 8 checks passed
@dfed dfed deleted the dfed--use-global-queue-in-tests branch October 21, 2024 18:30
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.

1 participant