Skip to content

ci: schedule nightly test suites on Blacksmith Flex - #4714

Merged
thymikee merged 3 commits into
mainfrom
ci/schedule-nightly-suites-on-flex
Nov 19, 2026
Merged

thymikee merged 3 commits into
mainfrom
ci/schedule-nightly-suites-on-flex

Conversation

@thymikee

@thymikee thymikee commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Summary

Use Blacksmith Flex for scheduled XCTest Nightly, Perf Nightly, and Conformance Differential runs across three workflow files. Flex gives a 40% discount and can queue a job for up to 24 hours. Manual dispatch uses standard runners. Blacksmith Flex scheduling

Each workflow separates scheduled runs from manual dispatches. Scheduled groups preserve the active run and keep only the newest pending run. Perf uses the same single-pending queue for manual dispatches. XCTest and Conformance manual dispatches continue to cancel earlier manual runs. GitHub Actions concurrency

Validation

  • Head 74094b4be3 passes actionlint for all three affected workflows, repository formatting, and the diff check. Local pnpm check:affected --run --head 74094b4be3 passed all runnable checks with exactCommit: true (receipt run-18YGwW). All 17 PR checks passed on the same head.
  • On 2a1f9be73f, all 17 PR checks and all runnable local checks passed with exactCommit: true (receipt run-TQOi7E). Live Flex scheduling can be confirmed on the first scheduled runs after merge.

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

View guided diff Turn on auto-fix

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Size Report

Metric Base Current Diff
Installed (including dependencies) 6.39 MB 6.39 MB 0 B
Package (unpacked) 6.39 MB 6.39 MB 0 B
Package (download) 1.94 MB 1.94 MB +6 B

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 51.9 ms 41.1 ms -10.9 ms
CLI --help 109.7 ms 86.9 ms -22.9 ms

@apex-sentinel-staging

This comment has been minimized.

@thymikee

Copy link
Copy Markdown
Member Author

At 02822b7 the scheduled triggers move to Blacksmith Flex and manual dispatch stays on standard runners. One thing needs changing before merge.

Each scheduled run now gets its own unique concurrency group in xctest-nightly.yml and conformance-differential.yml. Flex can hold a job for up to 24 hours, so a delayed nightly can overlap the next night's run, and several stale runs can pile up. Please give each workflow one shared, schedule-only concurrency group, kept separate from manual dispatch, so at most one scheduled run is pending behind the one in progress. GitHub keeps only the newest pending run per group. Perf already does this.

The remaining check was still running when I posted. There are no conflicts.

@thymikee

Copy link
Copy Markdown
Member Author

Addressed the concurrency finding in 2a1f9be73f. XCTest Nightly and Conformance Differential now each use a shared scheduled group and a separate manual group. An active scheduled run can finish, with only the newest pending run kept behind it. Manual dispatches retain cancel-in-progress behavior.

Perf Nightly retains its existing queue: max so pending benchmarks can run in sequence. actionlint passed for both changed workflows.

#4712 is closed. Android smoke stays on 8 vCPU.

@apex-sentinel-staging

This comment has been minimized.

@thymikee

Copy link
Copy Markdown
Member Author

At 2a1f9be, XCTest Nightly and Conformance Differential each share one schedule-only concurrency group, separate from manual dispatch. One gap remains, and it is partly my mistake: my last comment said Perf already bounds its queue, but it doesn't.

perf-nightly.yml:59 uses queue: max, which keeps every pending run while a scheduled run is active or queued. With Flex holding jobs for up to 24 hours, scheduled benchmarks can pile up. Please use the default single-pending queue for scheduled Perf runs, which still preserves the active run. Alternatively, explain in the PR why scheduled benchmarks must all run in sequence.

All 17 checks pass, and there are no conflicts.

@thymikee

Copy link
Copy Markdown
Member Author

Addressed the Perf concurrency finding in 74094b4be3. Perf now uses GitHub's default queue. The scheduled group keeps the active benchmark and only the newest pending run. Manual dispatches still use a separate group and standard runners. actionlint passed for all three workflows.

@apex-sentinel-staging

Copy link
Copy Markdown

Apex Sentinel · ✅ Approve · review of 74094b4

Since the review of 2a1f9be: 0 new · 0 still open · 0 no longer raised

No open findings.

Reviewed with this repository's own Sentinel configuration (6e18ea334968).

💬 Talking to Sentinel

In a finding's thread, reply with:

Command What it does
@apex-sentinel-staging note <context> Adds context; Sentinel re-checks the cited code
@apex-sentinel-staging pivot <why> Says the finding is wrong; Sentinel re-checks the cited code
@apex-sentinel-staging like Marks the finding as useful
@apex-sentinel-staging dislike <why> Marks it as not useful, so it is not raised again

On this conversation, comment @apex-sentinel-staging review to run a full review once again.

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Nov 18, 2026
@thymikee

Copy link
Copy Markdown
Member Author

This is ready at 74094b4. Scheduled Perf now uses the default single-pending queue, and XCTest Nightly and Conformance Differential each share one schedule-only group, so at most one scheduled run waits behind the active one. Manual dispatch stays on standard runners. All 17 checks pass, and there are no conflicts. The first scheduled Flex run will be the live check.

@thymikee
thymikee merged commit 9278eb1 into main Nov 19, 2026
17 checks passed
@thymikee
thymikee deleted the ci/schedule-nightly-suites-on-flex branch November 19, 2026 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Valid work that needs human implementation, judgment, or maintainer merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant