Skip to content

ci: tag-selected platform lanes (cross-build on Linux, run on native runners), title-edit reuse (ci.yml#6 round 3) - #19

Merged
zackees merged 7 commits into
mainfrom
r3b-platform-lanes
Sep 29, 2026
Merged

zackees merged 7 commits into
mainfrom
r3b-platform-lanes

Conversation

@zackees

@zackees zackees commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

Implements forge-ci/ci.yml#6 round 3B: tag-selected platform lanes, job-name lane digests, title-edit reuse, gate reuse verification, D6 (Dylint shape).

What's here

  • ci-lint pinned to zackees/ci.yml@bab8cba (platform-lane matrix outputs, title-edit reuse, gate reuse verification).
  • precheck: ci_lint plan --github-output --reuse (job + top-level actions: read, GITHUB_TOKEN: ${{ github.token }}); exposes platform_lanes_json, platform_lanes_todo_json, fast_suites_json, lane_digests_json, reuse_json, fast_reused, dylint_reused.
  • Job display names carry the lane digest (fast [<digest>], dylint [<digest>], platform-build (<id>) [<digest>], platform-run (<id>) [<digest>]), via a named lane matrix axis (not include:, which would flatten each lane's own keys to matrix.* instead of matrix.lane.*).
  • fast/dylint skip via if: needs.precheck.outputs.{fast,dylint}_reused != 'true'.
  • New platform-build (ubuntu-24.04, matrix over platform_lanes_todo_json): cross-compiles declared test binaries + wheel through the Soldr PEP 517 backend with --config-setting target=<triple> (not soldr wheel --release --target; see ci/platform_build.py's docstring for the decision/evidence -- bundle-bins, which is what puts the native CLI in the wheel, is documented only as a PEP-517-backend feature), stages them + a manifest, uploads as a 1-day artifact.
  • New platform-run (native runner per lane, same matrix): no Rust toolchain -- downloads the staged artifact, re-applies the executable bit (actions/upload-artifact drops it), executes every declared test binary directly (CARGO_BIN_EXE_template-cli set for template-cli:test:cli), clean-venv wheel install + smoke (explicit cpython-<ver>-windows-aarch64-none for the windows-11-arm lane -- uv's own auto-detect there resolves an x86_64/WoA-emulated interpreter), and the integration suite when selected.
  • ci-ok: passes reuse_json + toJSON(github.event) to ci_lint gate --reuse ... --event ...; needs actions: read.
  • New ci.toml [suites].integration real tests (tests/integration/), cross-checking the PyO3 extension, the native CLI, and the installed wheel all agree end to end; wired into both the fast lane and every platform-run lane when selected, marker-gated (-m "not integration" / -m integration) so it never runs by default.
  • ci.toml [[exceptions]]: two SEC-002 entries for actions: read -- ci-lint's SEC-002 doesn't yet distinguish read-only Actions API access from a wider grant. Draft upstream issue in the round report.
  • D6: measured --shape sequential vs --shape multi-target on the same commit, both cold. multi-target wins (55.5s vs 88.8s check time; 114s vs 148s job total) -- ci.toml [lint.dylint].shape and ci/dylint.py's default both set to multi-target.

Validation

Scenario Run(s) Result
untagged push 36497581255 (first), 36502834054 (final SHA 373218a) green; platform jobs skipped; gate OK; critical path ~105-207s
[ci-windows] (title edit) 36498352193 tag selection correct (only windows-x64+windows-arm64 lanes ran); found + fixed the pwsh "$VAR" bug this run
[ci-windows-arm64] (single-platform tag) 36500282280 green end to end, single lane only
[ci-macos] 36498870719 (found + fixed the exec-bit bug); macos-x64/macos-arm64 both green as part of [ci-full] below green
[ci-linux] linux-arm64 green as part of [ci-full] below green
[ci-full] (all 5 non-default platforms + integration) 36501739705, 36502221614 (final SHA 17c626a) fully green, critical path ~226-257s
[no-test] 36500675385 gate fails "not mergeable: tag(s) no-test remove required coverage" (expected red), captured; tag then removed
[ci-foo] 36500931481 precheck fails TAG-001 in 7s (expected red)
title-edit reuse 36498352193, 36499790794, 36500282280, 36500675385 not observed working -- see report; gate correctly fails safe (TEST-001) rather than falsely passing

forge-ci/ci.yml#6

@zackees zackees changed the title ci: tag-selected platform lanes (cross-build on Linux, run on native runners), title-edit reuse (ci.yml#6 round 3) [ci-linux] ci: tag-selected platform lanes (cross-build on Linux, run on native runners), title-edit reuse (ci.yml#6 round 3) Sep 28, 2026
@zackees zackees changed the title [ci-linux] ci: tag-selected platform lanes (cross-build on Linux, run on native runners), title-edit reuse (ci.yml#6 round 3) [ci-windows] ci: tag-selected platform lanes (cross-build on Linux, run on native runners), title-edit reuse (ci.yml#6 round 3) Sep 28, 2026
@zackees zackees changed the title [ci-windows] ci: tag-selected platform lanes (cross-build on Linux, run on native runners), title-edit reuse (ci.yml#6 round 3) [ci-macos] ci: tag-selected platform lanes (cross-build on Linux, run on native runners), title-edit reuse (ci.yml#6 round 3) Sep 28, 2026
@zackees zackees changed the title [ci-macos] ci: tag-selected platform lanes (cross-build on Linux, run on native runners), title-edit reuse (ci.yml#6 round 3) [ci-full] ci: tag-selected platform lanes (cross-build on Linux, run on native runners), title-edit reuse (ci.yml#6 round 3) Sep 28, 2026
@zackees zackees changed the title [ci-full] ci: tag-selected platform lanes (cross-build on Linux, run on native runners), title-edit reuse (ci.yml#6 round 3) [ci-full] retry: ci: tag-selected platform lanes (cross-build on Linux, run on native runners), title-edit reuse (ci.yml#6 round 3) Sep 28, 2026
@zackees zackees changed the title [ci-full] retry: ci: tag-selected platform lanes (cross-build on Linux, run on native runners), title-edit reuse (ci.yml#6 round 3) [ci-windows-arm64] ci: tag-selected platform lanes (cross-build on Linux, run on native runners), title-edit reuse (ci.yml#6 round 3) Sep 28, 2026
@zackees zackees changed the title [ci-windows-arm64] ci: tag-selected platform lanes (cross-build on Linux, run on native runners), title-edit reuse (ci.yml#6 round 3) [no-test] ci: tag-selected platform lanes (cross-build on Linux, run on native runners), title-edit reuse (ci.yml#6 round 3) Sep 28, 2026
@zackees zackees changed the title [no-test] ci: tag-selected platform lanes (cross-build on Linux, run on native runners), title-edit reuse (ci.yml#6 round 3) [ci-foo] ci: tag-selected platform lanes (cross-build on Linux, run on native runners), title-edit reuse (ci.yml#6 round 3) Sep 29, 2026
@zackees zackees changed the title [ci-foo] ci: tag-selected platform lanes (cross-build on Linux, run on native runners), title-edit reuse (ci.yml#6 round 3) ci: tag-selected platform lanes (cross-build on Linux, run on native runners), title-edit reuse (ci.yml#6 round 3) Sep 29, 2026
@zackees zackees changed the title ci: tag-selected platform lanes (cross-build on Linux, run on native runners), title-edit reuse (ci.yml#6 round 3) [ci-full] ci: tag-selected platform lanes (cross-build on Linux, run on native runners), title-edit reuse (ci.yml#6 round 3) Sep 29, 2026
@zackees zackees changed the title [ci-full] ci: tag-selected platform lanes (cross-build on Linux, run on native runners), title-edit reuse (ci.yml#6 round 3) ci: tag-selected platform lanes (cross-build on Linux, run on native runners), title-edit reuse (ci.yml#6 round 3) Sep 29, 2026
…runners), title-edit reuse (ci.yml#6 round 3)

- Pin ci-lint to forge-ci/ci.yml@bab8cba (platform-lane matrix outputs,
  title-edit reuse, gate reuse verification).
- precheck: `ci_lint plan --github-output --reuse`, exposing
  platform_lanes_json/todo, fast_suites_json, lane_digests_json,
  reuse_json, fast_reused, dylint_reused.
- fast/dylint: display name carries the lane digest; skip via `if:`
  when the plan marks them already reused for this PR head SHA.
- New platform-build (ubuntu-24.04 matrix, cross-compiles test
  binaries + wheel via the Soldr PEP 517 backend with a
  --config-setting target=<triple> cross build, never `soldr wheel`
  -- see ci/platform_build.py's docstring for why) and platform-run
  (native runner per lane, no Rust toolchain: executes the staged
  test binaries directly, wheel-installs into a clean venv, smokes
  it) jobs.
- ci-ok: passes reuse_json + the PR event to `ci_lint gate --reuse
  ... --event ...`; needs actions:read for live reuse verification.
- New ci.toml [suites].integration real tests (tests/integration/),
  run in the fast lane and every platform-run lane when selected.
- ci.toml [[exceptions]]: two SEC-002 entries for `actions: read`
  (ci-lint's SEC-002 doesn't yet distinguish read from a wider
  grant); upstream issue drafted in the round report.
…/run

strategy.matrix.include flattens each object's own keys to top-level
matrix.* properties (matrix.id, matrix.target, ...), not matrix.lane.*.
Every job-name/step reference in this PR uses matrix.lane.id etc., so
the axis must be a custom key named "lane" whose values are the full
per-platform-lane objects from platform_lanes_todo_json.
…pwsh

On windows-* runners, run: steps default to pwsh, where "$WHEEL_PATH"
is an unset PowerShell variable (silently ""), not the env var --
found via run 36498352193's platform-run (windows-x64/windows-arm64)
legs: `ci_lint wheel check --wheel ""` failed PKG-003 with an empty
wheel path. platform-build's identical env+"$VAR" pattern never hit
this because that job only runs on ubuntu-24.04.
…s the exec bit)

actions/upload-artifact / download-artifact's zip-based transport did
not preserve the Unix execute bit ci/platform_build.py set before
uploading -- found via run 36498870719's platform-run (macos-x64/
macos-arm64) legs: PermissionError: [Errno 13] Permission denied on
the downloaded template-cli__test__cli. Re-apply chmod +x in
platform_run.py after download, on every staged test binary and the
staged CLI binary, before either is ever spawned.
…ecture

- cmd_integration_test: the venv's bin/Scripts dir was never on PATH
  when invoking the venv's python by absolute path (unlike `uv run`,
  which the fast lane's equivalent step uses and which activates the
  venv automatically) -- found via run 36499249542 ([ci-full]),
  every platform-run leg: "template-cli not on PATH" inside
  tests/integration. Prepend the venv's own bin dir to PATH for that
  subprocess.
- cmd_wheel_install: uv's own Python auto-download on windows-11-arm
  resolves to a Windows x86_64 build under WoA emulation (uv's
  documented default there), so `uv pip install` of the win_arm64
  wheel failed: "the wheel is compatible with Windows (win_arm64),
  but you're on Windows (win_amd64)". Request uv's Windows ARM64
  build explicitly (cpython-<ver>-windows-aarch64-none) only for the
  aarch64-pc-windows-msvc lane; every other lane is unaffected.
…ment 3)

One-commit A/B measurement per the round-3B brief: same commit,
--shape multi-target vs the current --shape sequential baseline
(~144-148s warm-nothing/cold, observed across runs 36499790794,
36500282280, 36500675385). Will set ci.toml [lint.dylint].shape to
the winner (or revert to sequential) based on this run's number.
…he shape

Round 2 couldn't measure this (nightly-2026-02-28's Dylint driver had
no catalogued asset); nightly-2026-05-28 (already pinned) does, so
round 3B measured both shapes on the same commit, both cold:
sequential 6 passes/88.8s check + prepare, job 148s (run 36500282280);
multi-target 1 pass/55.5s check + prepare, job 114s (run 36501033796).
multi-target wins on every number. ci.toml [lint.dylint].shape and
ci/dylint.py's --shape default both updated; ci.yml already passed
--shape multi-target for this measurement and keeps it.
@zackees
zackees merged commit caed892 into main Sep 29, 2026
12 checks passed
@zackees
zackees deleted the r3b-platform-lanes branch September 29, 2026 00:30
zackees added a commit to forge-ci/ci.yml that referenced this pull request Sep 29, 2026
…en reuse has no head SHA (#21)

Title-edit reuse silently never fired on zackees/template-python-rust-cmd#19:
its plan step passed --reuse but not --event, so the PR head SHA was never
found and reuse returned 'nothing' without a warning. _load_event now falls
back to GITHUB_EVENT_PATH (set by GitHub Actions and act), and a --reuse
request with no head SHA prints an explicit warning.
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