A failing Windows test job blocks publishing, and every CI test job uploads its results #366

Closed
opened 2026-11-06 21:50:21 -05:00 by claude · 0 comments
Owner
  • Draft: none (owner decisions Q-REL-19 and Q-REL-20 in #260, 2026-11-06)
  • Priority: medium
  • Agent: coder
  • Depends on: #18 (PR #365)
  • Decisions: Q-REL-19, Q-REL-20

Why

  • test-windows (#18) runs on pushes to develop and main, but draft and publish do not wait for it. A Windows-only regression therefore still ships a prerelease. The owner decided it must block publishing (Q-REL-19).
  • No CI test job uploads its results. They exist only in the job log, which is hard to read for a 2,000-test project. The owner decided the test jobs upload them (Q-REL-20).

What changes

  • Gating:
    • publish (and draft, if it should) lists test-windows in needs.
    • test-windows is skipped on pull requests (verify), on release runs (release) and on pushes to other branches. A plain needs on a skipped job would skip publish too. So the condition must let publish run when test-windows succeeded or was skipped, and stop it when it failed or was cancelled. For example: !cancelled() && needs.test-windows.result != 'failure', plus the existing conditions, and a check that every other needs succeeded, because !cancelled() drops the implicit success check. Prove the condition for each inputs.kind and branch.
    • Update the job comments and README "The pipeline", which now say the job does not gate publishing.
  • Test results:
    • test-dotnet, test-windows and the admin-console test job write results (for example --logger trx into one results folder, or JUnit for Karma) and upload them as an artifact. Upload even when the tests fail (if: always()).
    • Use an upload action version this Forgejo server supports. Check the server version (/api/v1/version). Forgejo supports actions/upload-artifact v4 only from a certain release; otherwise use v3 or https://code.forgejo.org/forgejo/upload-artifact. Pin it by commit SHA like every other action, and add the pin to whatever bump-pins.yml maintains, if it maintains action pins.
    • Keep artifact retention short, and name artifacts by job.
  • Docs: README "The pipeline" says where to find the results.

Acceptance

  • On a develop push, a failing test-windows (scratch commit) stops publish. A green one lets it run.
  • On a pull request, the Pipeline status and the draft/publish behaviour are unchanged.
  • Each test job's run shows a results artifact, also when tests fail.
  • Lint in the container passes.
- **Draft:** none (owner decisions Q-REL-19 and Q-REL-20 in #260, 2026-11-06) - **Priority:** medium - **Agent:** coder - **Depends on:** #18 (PR #365) - **Decisions:** Q-REL-19, Q-REL-20 ### Why - `test-windows` (#18) runs on pushes to develop and main, but `draft` and `publish` do not wait for it. A Windows-only regression therefore still ships a prerelease. The owner decided it must block publishing (Q-REL-19). - No CI test job uploads its results. They exist only in the job log, which is hard to read for a 2,000-test project. The owner decided the test jobs upload them (Q-REL-20). ### What changes - **Gating:** - `publish` (and `draft`, if it should) lists `test-windows` in `needs`. - `test-windows` is skipped on pull requests (`verify`), on release runs (`release`) and on pushes to other branches. A plain `needs` on a skipped job would skip `publish` too. So the condition must let `publish` run when `test-windows` succeeded or was skipped, and stop it when it failed or was cancelled. For example: `!cancelled() && needs.test-windows.result != 'failure'`, plus the existing conditions, and a check that every other `needs` succeeded, because `!cancelled()` drops the implicit success check. Prove the condition for each `inputs.kind` and branch. - Update the job comments and README "The pipeline", which now say the job does not gate publishing. - **Test results:** - `test-dotnet`, `test-windows` and the admin-console test job write results (for example `--logger trx` into one results folder, or JUnit for Karma) and upload them as an artifact. Upload even when the tests fail (`if: always()`). - Use an upload action version this Forgejo server supports. Check the server version (`/api/v1/version`). Forgejo supports `actions/upload-artifact` v4 only from a certain release; otherwise use v3 or `https://code.forgejo.org/forgejo/upload-artifact`. Pin it by commit SHA like every other action, and add the pin to whatever `bump-pins.yml` maintains, if it maintains action pins. - Keep artifact retention short, and name artifacts by job. - **Docs:** README "The pipeline" says where to find the results. ### Acceptance - [ ] On a develop push, a failing `test-windows` (scratch commit) stops `publish`. A green one lets it run. - [ ] On a pull request, the `Pipeline` status and the draft/publish behaviour are unchanged. - [ ] Each test job's run shows a results artifact, also when tests fail. - [ ] Lint in the container passes.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lantea-one/ninlil#366
No description provided.