Repository navigation
ci: tag-selected platform lanes (cross-build on Linux, run on native runners), title-edit reuse (ci.yml#6 round 3) - #19
Merged
Merged
Conversation
zackees
force-pushed
the
r3b-platform-lanes
branch
from
September 29, 2026 00:15
0c17450 to
17c626a
Compare
…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
force-pushed
the
r3b-platform-lanes
branch
from
September 29, 2026 00:23
17c626a to
373218a
Compare
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-lintpinned tozackees/ci.yml@bab8cba(platform-lane matrix outputs, title-edit reuse, gate reuse verification).precheck:ci_lint plan --github-output --reuse(job + top-levelactions: read,GITHUB_TOKEN: ${{ github.token }}); exposesplatform_lanes_json,platform_lanes_todo_json,fast_suites_json,lane_digests_json,reuse_json,fast_reused,dylint_reused.fast [<digest>],dylint [<digest>],platform-build (<id>) [<digest>],platform-run (<id>) [<digest>]), via a namedlanematrix axis (notinclude:, which would flatten each lane's own keys tomatrix.*instead ofmatrix.lane.*).fast/dylintskip viaif: needs.precheck.outputs.{fast,dylint}_reused != 'true'.platform-build(ubuntu-24.04, matrix overplatform_lanes_todo_json): cross-compiles declared test binaries + wheel through the Soldr PEP 517 backend with--config-setting target=<triple>(notsoldr wheel --release --target; seeci/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.platform-run(native runner per lane, same matrix): no Rust toolchain -- downloads the staged artifact, re-applies the executable bit (actions/upload-artifactdrops it), executes every declared test binary directly (CARGO_BIN_EXE_template-cliset fortemplate-cli:test:cli), clean-venv wheel install + smoke (explicitcpython-<ver>-windows-aarch64-nonefor thewindows-11-armlane -- uv's own auto-detect there resolves an x86_64/WoA-emulated interpreter), and theintegrationsuite when selected.ci-ok: passesreuse_json+toJSON(github.event)toci_lint gate --reuse ... --event ...; needsactions: read.ci.toml [suites].integrationreal 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]]: twoSEC-002entries foractions: read-- ci-lint'sSEC-002doesn't yet distinguish read-only Actions API access from a wider grant. Draft upstream issue in the round report.--shape sequentialvs--shape multi-targeton the same commit, both cold. multi-target wins (55.5s vs 88.8s check time; 114s vs 148s job total) --ci.toml [lint.dylint].shapeandci/dylint.py's default both set tomulti-target.Validation
373218a)[ci-windows](title edit)"$VAR"bug this run[ci-windows-arm64](single-platform tag)[ci-macos][ci-full]below[ci-linux][ci-full]below[ci-full](all 5 non-default platforms + integration)17c626a)[no-test][ci-foo]forge-ci/ci.yml#6