Skip to content

ci: install only the .NET SDK in the Unsupported AOT jobs - #5774

Merged
jamescrosswell merged 1 commit into
mainfrom
ci/slim-unsupported-aot-jobs
Oct 22, 2026
Merged

jamescrosswell merged 1 commit into
mainfrom
ci/slim-unsupported-aot-jobs

Conversation

@ric-oliv

@ric-oliv ric-oliv commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

The two Unsupported AOT jobs start only after every .NET leg of the build workflow has finished, so whatever they take adds to every PR's build time. They publish one console app with Native AOT against the packages from the macOS job, but on main they still run the full Setup Environment: Java, the Android SDK, Mono, several .NET SDKs and the workloads. #5746 replaced that with a plain .NET SDK install on version7, and this PR brings the same job to main.

  • Checkout no longer pulls the submodules, and the jobs skip Setup Environment and Build Native Dependencies.
  • The jobs install the .NET SDK from global.json, set the two DOTNET_ variables the environment action used to set, and install the 32-bit ARM toolchain for linux-arm themselves. That step moves out of the environment action, since no other job uses it.
  • The job now matches version7's, except for the Windows runner label and the container image pin that version7 needs for .NET 11 previews. That should keep the next merge between the branches clean.

On version7, the build workflow now finishes 1.9 minutes after its last .NET leg, at the median of 13 PR runs. On main it's 8.2 minutes over 20 PR runs, and the win-x86 job alone takes 8.1. So I expect about 6 minutes off every main build.

On this PR, the build workflow finished 1.8 minutes after its last .NET leg:

  • The win-x86 job took 1.7 minutes, against 9.8 on main at the base commit, run 39744888536.
  • The linux-arm job took 1.8 minutes, against 4.5.
  • The whole run still took 80.7 minutes, against a median of 77.4 for main, because the macOS Build step took 40.0 minutes on this runner. Its median on main is 32.8.

The same AOT tests run on both runtimes, with the same Pester results as the base run: 2 passed on linux-arm, and 1 passed and 1 skipped on win-x86.

#skip-changelog

The Unsupported AOT jobs run after the whole build-sentry matrix, so their
time adds to every build. They only publish a console app against the
packages from the macOS job, but they ran the full Setup Environment with
Java, the Android SDK, Mono and workloads. version7 dropped that in #5746,
and this brings the same job to main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@codecov

codecov Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.12%. Comparing base (8333e3b) to head (c9a376d).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5774   +/-   ##
=======================================
  Coverage   76.12%   76.12%           
=======================================
  Files         528      528           
  Lines       19579    19579           
  Branches     3829     3829           
=======================================
  Hits        14904    14904           
  Misses       3792     3792           
  Partials      883      883           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ric-oliv
ric-oliv marked this pull request as ready for review October 22, 2026 21:15
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Oct 22, 2026

@jamescrosswell jamescrosswell left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@jamescrosswell
jamescrosswell merged commit 7ececf8 into main Oct 22, 2026
3 checks passed
@jamescrosswell
jamescrosswell deleted the ci/slim-unsupported-aot-jobs branch October 22, 2026 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants