Skip to content

ci: publish measured post-job cook profile tradeoffs - #1317

Merged
zackees merged 8 commits into
masterfrom
ci/1286-cook-profile-evidence
Oct 17, 2026
Merged

zackees merged 8 commits into
masterfrom
ci/1286-cook-profile-evidence

Conversation

@zackees

@zackees zackees commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

Stacked: builds on #1315; the new commits implement this PR’s focused change. Reconciled queued workflow/docs edits; base remains master.

Refs #1286.

Publish the completed pinned-soldr post-job cache experiment, raw per-command trial data and a reproducible helper. This models the actual action save timing rather than a dependency-only pre-consumer snapshot.

Three trials per scenario/policy, identical compiled inputs and four Cargo jobs: unchanged median totals release 57.259 s, dev 36.170 s, none 72.136 s; forced core rebuild release 67.869 s, dev 82.736 s, none 78.291 s. Core ranges overlap widely; no universal fastest claim. Network, formatters and Dylint are excluded and archive size reflects selected obs-util tests, not full CI.

All published trials passed. The report records the corrected Cargo progress-label assertion and preserved interrupted attempt. Measurement-only evidence needs no artificial RED test. Ruff E9/F/I and git diff --check pass. Profile rollout and live validation follow separately; retain the correctness bypass.

@zackees
zackees force-pushed the ci/1286-cook-profile-evidence branch from 83e2f24 to 025fd80 Compare October 17, 2026 18:45
@zackees
zackees added this pull request to the merge queue Oct 17, 2026
@zackees
zackees removed this pull request from the merge queue due to a manual request Oct 17, 2026
@zackees
zackees force-pushed the ci/1286-cook-profile-evidence branch from 87702b3 to 05eb52f Compare October 17, 2026 18:59
@zackees
zackees enabled auto-merge October 17, 2026 19:00
@zackees
zackees added this pull request to the merge queue Oct 17, 2026
@zackees
zackees removed this pull request from the merge queue due to a manual request Oct 17, 2026
@zackees
zackees force-pushed the ci/1286-cook-profile-evidence branch from 05eb52f to ed238ac Compare October 17, 2026 19:09
@zackees
zackees enabled auto-merge October 17, 2026 19:09
@zackees
zackees force-pushed the ci/1286-cook-profile-evidence branch from ed238ac to 63e76e2 Compare October 17, 2026 19:10
@zackees
zackees added this pull request to the merge queue Oct 17, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Oct 17, 2026
@zackees
zackees enabled auto-merge October 17, 2026 19:20
@zackees
zackees added this pull request to the merge queue Oct 17, 2026
Merged via the queue into master with commit c814d89 Oct 17, 2026
29 checks passed
@zackees
zackees deleted the ci/1286-cook-profile-evidence branch October 26, 2026 15:42
lakshvarmacoder pushed a commit to lakshvarmacoder/obs-studio that referenced this pull request Oct 31, 2026
…2661) (obs-rust#3128)

* test(ci): require Fast Gate to cook the profile its tests compile in (obs-rust#2661)

Fast Gate's consumer is `cargo test`, so the cook must populate the `test`
profile. Its cook flags were `core == 'true' && '--release' || '--profile dev
-- --tests'`, which made every push and merge-group run cook release
dependencies the test build never reuses.

Measured on 10 Fast Gate jobs on 2026-10-31: 4 of 4 jobs with the release
cook then rebuilt the `test` profile (1m09s-1m37s, 256-442 Compiling lines);
6 of 6 jobs with the dev-plus-tests cook finished that build warm with no
profile line (192 lines). The cook step itself cost the same either way
(11.3-15.6s). A local probe with soldr 0.9.47 reproduces it: `cook --release`
then `cargo test --no-run` recompiles five crates; `cook --profile dev --
--tests` then `cargo test --no-run` finishes in 0.03s.

This fails against the current workflow; the next commit drops the core
branch.

* ci: cook Fast Gate's dev-plus-tests profile on every event (obs-rust#2661)

The whole workspace test build in Fast Gate runs in the `test` profile, so
a `--release` cook on core runs was never reused: those jobs cooked release
dependencies and then rebuilt the test profile from scratch. Drop the
`core` branch from the cook flags and update docs/ci-tooling.md with the
measurement that replaced obs-rust#1317's cook-step-only benchmark.

Evidence (10 Fast Gate jobs, 2026-10-31):
- 4/4 release-cook jobs: `Finished \`test\` profile` at 1m09s-1m37s,
  256-442 Compiling lines.
- 6/6 `--profile dev -- --tests` jobs: no test-profile build at all,
  192 Compiling lines.
- Cook step: 11.3-15.6s in both groups, so the profile choice costs nothing
  at cook time.

Local probe (soldr 0.9.47, regex dep chain): `cook --release` then
`cargo test --no-run` recompiles 5 crates in 42s; `cook --profile dev --
--tests` then `cargo test --no-run` finishes in 0.03s.

Refs obs-rust#2661
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant