Skip to content

ci(viewer): the viewer tests end with their legs, not with a job that waits for a runner to say so (#1457) - #1515

Merged
DrunkOnJava merged 3 commits into
mainfrom
lane/1457-viewer-rollup
Nov 9, 2026
Merged

DrunkOnJava merged 3 commits into
mainfrom
lane/1457-viewer-rollup

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

Summary

The viewer tests no longer end with a roll-up job, legs passed, that took a runner of its own after the legs. The call's result already says whether the legs passed, and the one case the job covered is now checked statically.

Motivation

Griffin asked for the bottlenecks to be fixed. Over the last 200 minutes the account's 40 concurrent jobs were full about 70% of the time, and on #1481's landing run legs passed and CI passed waited 4.6 and 3.2 minutes of its 28.6 for a runner each.

Changes

  • .github/workflows/viewer-test.yml: the result job (legs passed) is removed, and the header says why it is not needed. Why it existed: CI passed counts a skipped job as a pass and a call whose jobs were all skipped is skipped; the legs (test) already run whenever the run is not cancelled and fail their first step when build did not pass, so every leg either runs its tests or fails the call, and the call's own result, which CI passed and Deploy viewer read (needs: viewer in ci.yml, needs: [build, tests, measure] in deploy-viewer.yml), aggregates them. The only case result added was a legs list that yields no leg, which skips test, and a call whose test is skipped passes.
  • tools/ci/check-workflows.py (the env config job, which runs on every pull request) now checks that case before it can happen: the default legs of viewer-test.yml (both triggers) and the legs of every job that calls it are a JSON list written out (not a ${{ }} expression), non-empty, each leg with a name and either spec files or measure: true. Five failure-first tests of the two pure helpers in tools/ci/test_check_workflows.py, for the mistakes that would let the call pass (a list that yields no leg, a computed list, a leg that runs nothing, and a caller's list being read), 86 tests in all.
  • CI passed stays: it is the required check, full / CI passed (.github/rulesets/main-protection.json, arm.sh's "no full / CI passed on this head yet"). It already needs the reusable viewer job directly, so nothing changes there. Nothing else reads the name legs passed: not arm.sh, watch.py, the rulesets, Deploy viewer or its wait-for-check, nor the release preflight (git grep and the scripts under .claude/).

Numbers

legs passed, queue wait (created to started) in the last 20 full ci-pr.yml runs that ran it: median 26 s, p90 163 s, max 277 s; it ran 3 s. CI passed in the last 56 runs: median 26 s, p90 181 s, max 1,317 s. So the removed job saved a median of about 30 s and about 2.8 minutes at the 90th percentile of a landing run's chain, not the 4.6 minutes of #1481's run, which was above that percentile. A job that takes a runner also counts against the 40 concurrent jobs while it runs, about 3 s. The gain depends on the pool: a roll-up job is created when its legs finish, and the median wait for it is already short (26 s), so with the pool less loaded than in the last 200 minutes the gain tends toward that median of about 30 s, and only a saturated pool gives the minutes.

Left alone

CI passed still waits behind everything for a runner of its own; it cannot be removed, since the ruleset requires its name. A caller that computes legs is now refused by the check instead of guarded at run time; none does.

Testing

Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead.

  • tools/check-local.sh passes. N/A: CI-only change; no local compute on this lane.
  • Verified end to end on real Revit files. N/A: no Rust or reader change.
  • If this touches the IFC exporter. N/A.
  • If this is a performance change. N/A (a CI change; the numbers above are from the last runs on main's workflow).

The workflow and check-workflows.py are those of 9018d984; after it the test file was cut to the five new tests and main merged in, and 86 tests pass on the head that lands:

  • actionlint exits 0. python3 tools/ci/check-workflows.py: 0 errors, 0 warnings, and the new line viewer test legs: 4 lists (the two defaults, Deploy viewer's two calls). python3 tools/ci/test_check_workflows.py: 86 tests.
  • The full CI of this pull request, once it is ready, runs the viewer tests (.github/ changed, so viewer-paths runs them): the run has the build the WASM job and the three browser tests legs, no legs passed, and full / CI passed succeeds on the viewer job's result. Not yet measured on this head.
  • Not exercised: a failing leg through a call with no roll-up job (a leg that fails fails the call, which Deploy viewer already relies on), and Deploy viewer's run (it calls the same workflow; it runs on a push to main that touches the viewer, and can be dispatched on this branch, not done to spare the runners).

Audit-honesty checklist

  • README / docs reflect the current state after this PR (the workflow's header and check-workflows.py's docstring)
  • A user-visible change has its entry as a fragment under changelog.d/<section>/. N/A: CI only, as agreed for CI: where the minutes go, and what to change #1457.
  • If a limitation was resolved, the "Known limitations" section is updated. N/A.
  • If a new limitation was introduced, it is documented in the PR body (Left alone)
  • Commit messages describe WHAT changed and WHY
  • No emojis in code, docs, or commit messages
  • No private paths, personal email addresses, or internal jargon in committed files
  • Reverse-engineering finding. N/A.

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0
  • This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content
  • Any new test fixtures use synthetic values

Breaking changes

None.

Screenshots or output samples

See Testing.

Related issues

Refs #1457

… waits for a runner to say so (#1457)

The legs passed job of viewer-test.yml took a runner after the legs to fail on a test job skipped for want of a leg. Its queue wait was a median 26 s and a p90 of 163 s over the last 20 full runs, 4.6 minutes on #1481's landing run, in a chain that CI passed then waited behind again. The call's own result already aggregates the legs, each of which fails when its build did not pass, and CI passed and Deploy viewer read that result, so nothing else needs the check's name. The one case the job covered, a legs list that yields no leg, is now checked by check-workflows.py in the env config job: the default legs and every caller's are a written-out, non-empty list of legs that run something. Refs #1457.
@DrunkOnJava DrunkOnJava added the ready-when-green Draft whose code is complete: marked ready for review once its fast CI passes label Nov 6, 2026
…ts the call pass (#1457)

A list that yields no leg, a computed list, a leg that runs nothing and a caller's list being read are tested; the checks that only refuse malformed input are not. Refs #1457.
@DrunkOnJava DrunkOnJava removed the ready-when-green Draft whose code is complete: marked ready for review once its fast CI passes label Nov 8, 2026
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 9, 2026 01:16
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) November 9, 2026 02:01
@DrunkOnJava
DrunkOnJava merged commit 61447a5 into main Nov 9, 2026
63 checks passed
@DrunkOnJava
DrunkOnJava deleted the lane/1457-viewer-rollup branch November 9, 2026 02:02
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