Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5785 +/- ##
=======================================
Coverage 76.13% 76.13%
=======================================
Files 528 528
Lines 19579 19579
Branches 3829 3829
=======================================
Hits 14906 14906
Misses 3791 3791
Partials 882 882 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
On the build legs, the unit tests and the integration tests run one after the other, though the integration tests only need the packages. On win-x64 the Test step takes 5.8 minutes and Integration test 14. Outside the publishing build, Test now runs as a background step. The job packs and runs the integration tests next to it, then waits for it before uploading coverage. The macOS publishing build keeps the current order, because its sparse checkout removes the test outputs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every solution build runs before.Sentry.sln.targets, which calls git submodule update --init --recursive. With the tests in the background, dotnet test and dotnet pack started in the same second on linux-x64, and the second git call failed on the lock for a submodule's config file, so the tests failed before they ran. Packing takes under a minute, so the tests now start once it's done. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ric-oliv
force-pushed
the
ci/run-tests-alongside-integration-tests
branch
from
October 23, 2026 13:57
8075b3d to
a51cad7
Compare
This was referenced Oct 23, 2026
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On every build leg,
TestandIntegration testrun one after the other, though the integration tests only need the packages fromCreate NuGet Packages. Inmainrun 39858273561, win-x64 spent 5.8 minutes inTestand 14 inIntegration test, and win-arm64 4.2 and 14.3.GitHub Actions can now run steps in the background, and this PR uses that on the build legs:
Testas a background step and runs the integration tests while it runs. It then waits for it withwait-alland uploads the coverage and any failed snapshots.The first run found a race. Every solution build runs
before.Sentry.sln.targets, which callsgit submodule update --init --recursive. On linux-x64,dotnet testanddotnet packstarted in the same second, and the second git call failed on a submodule's config lock, so the tests failed before they ran. The second commit starts the tests after packing, which takes under a minute.Measured on the fixed run, comparing the time after Build with the same steps added up one after another:
When a unit test fails
A throwaway draft, #5799, added two failing tests to
Sentry.Serilog.Tests. One always fails, and one Verify test has no approved snapshot. On every leg that runs the tests in the background:Teststep failed and the integration tests kept running to the end,Wait for the teststhen failed the job,Upload code coveragewas skipped,Upload build and test outputsuploaded the.received.txtsnapshots, 3 files per leg.So a failing unit test still fails the leg and still uploads its snapshots, but the leg turns red later: 4.3 minutes after the test failed on linux-arm64, 7.4 on linux-x64, 8.9 on win-x64 and 13.5 on win-arm64. Before, the job stopped right after
Test. The workflow's result doesn't arrive later, because it waits for the slowest leg either way. macOS keeps the old order, so it still failed right afterTest.On linux-arm64 the integration tests also failed, because the Native AOT compiler crashed with
ILC: error IL1013, aNullReferenceException, while publishing the net9.0 console app. That happened 3 minutes after the background tests had finished, and the same app had published fine 14 seconds earlier, so it looks like a separate flake.actionlint 1.7.12, the latest release, doesn't know
backgroundandwait-allyet, so it flags those two steps. GitHub validates the workflow when the run starts.#skip-changelog