Skip to content

tests.yml runs on pull_request only, so main itself is never tested after a squash — a push-to-main trigger is a CI-minutes decision for Brett #122

Closed

Description

@brettheap

Lane: openreposhape-2 (openRepoShape-2)

Recorded, NOT claimed — this is a CI-minutes spend decision and waits for Brett Heap's word (found 2026-09-11 while landing #116, #117 and #121 in one evening).

What is so. .github/workflows/tests.yml runs on pull_request and workflow_dispatch only. There is no push trigger, so gh run list --branch main is empty for the whole history of the repository: main itself has never been tested by CI. SonarCloud does analyse every push to main (its analyses list bbc6c86, 9923fea, e9fa826 tonight), so the quality record follows main while the test record stops at each pull request's last run.

Why it matters. A pull_request run tests the pull request's head merged onto main AS IT WAS when that run started. When several pull requests land in one evening — three tonight (#116 tests/, #117 setup.sh, #121 nine files), each green on its own run — the squash of the third onto the first two is a tree no run ever exercised. The merges were disjoint by file and each agent re-ran the suite locally after a rebase, so nothing broke tonight; that was discipline, not a gate. The estate downstream (workBenches re-vendors the shim and shape files at a main sha; InkRouter re-pins to it) trusts main sha by sha, so a red main would propagate to every project before anyone saw it.

The trade-off, which is the decision. One full run is three jobs — ubuntu-latest (~3 min), windows-latest (~10-15 min), macos-latest (~5-7 min) — and GitHub bills macOS minutes at 10× and Windows at 2× the Linux rate, so a push-to-main trigger with the current job set costs roughly 60-90 billed Linux-minute equivalents per landing, on top of the identical run the pull request already paid for. Options, cheapest first:

  1. push: branches: [main] for the tests (ubuntu) job only, the two OS jobs staying pull_request-only via an if: github.event_name == 'pull_request' guard. About 3 billed minutes per landing; catches every squash-interaction regression that is not OS-specific (tonight's three could only have been that kind).
  2. push: branches: [main] for all three jobs. Full parity with the pull-request gate; ~25 wall minutes and ~60-90 billed minutes per landing.
  3. Leave as is, and make the local post-rebase full-suite run the documented gate in AGENTS.md ("Testing your changes to this repository") — free, and honest about what main has and has not had run against it.

Whichever is chosen also wants a concurrency: group so back-to-back landings cancel the superseded run, and the workflow_dispatch trigger stays so a run can be asked for by hand.

Not in scope. No workflow under templates/ changes — the assembly-root validate.yml is a project's own gate with its own trigger design, and it is digest-pinned.

Activity

  1. brettheap commented on Sep 11, 2026

    @brettheap
    ContributorAuthor

    (lane openreposhape-2 (openRepoShape-2), 2026-09-11T21:28Z) CLAIMED — session 3b1ab8cf, on Brett Heap's word 'do option 1 on 122'. Branch ci/tests-run-on-main-push-ubuntu-only, worktree ~/projects/openRepoShape--ci-on-main on Eagle, from origin/main e9fa826. Scope: add a push-to-main trigger for the ubuntu tests job only (the windows and macos jobs skip on push via an event_name guard but keep running on pull_request and workflow_dispatch), plus a concurrency group so back-to-back landings cancel the superseded run.

  2. brettheap commented on Sep 11, 2026

    @brettheap
    ContributorAuthor

    (lane openreposhape-2 (openRepoShape-2), 2026-09-11T21:47Z) PULL REQUEST OPEN: #124 (head a84f14c).

  3. brettheap commented on Sep 11, 2026

    @brettheap
    ContributorAuthor

    (lane openreposhape-2 (openRepoShape-2), 2026-09-11T22:11:47Z) MERGED — #124 → bd6eaec (squash), on Brett Heap's word 'go, fan out on all of it, hold the doctor refactor'. tests.yml: option 1 on Brett Heap's word 'do option 1 on 122' — push: branches [main] runs the ubuntu tests job on every landing, tests-windows and tests-macos gain if github.event_name != 'push' (so pull_request and workflow_dispatch still run all three), a per-PR/per-ref concurrency group cancels a superseded run, header comment says why the main run is deliberate and Linux-only; nothing under templates/ touched; PyYAML structure asserted; Copilot 'Approval recommended' 0 findings; the first push-to-main CI run in this repository's history fires on this merge. Object complete.

  4. brettheap commented on Sep 11, 2026

    @brettheap
    ContributorAuthor

    (lane openreposhape-2 (openRepoShape-2), 2026-09-11T22:15Z) FIRST PUSH-TO-MAIN RUN — https://github.com/opensoft/openRepoShape/actions/runs/34652908919 on bd6eaec (the #124 squash itself): run success; jobs: tests=success, tests-windows=skipped, tests-macos=skipped. The windows and macos jobs read skipped on the push event exactly as option 1 designed, and the ubuntu job ran the whole suite against main. gh run list --branch main is no longer empty for this repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions