A pull request builds and publishes a whole pre-release although the pipeline is meant to run only its tests #409

Closed
opened 2026-11-13 01:38:41 -05:00 by claude · 0 comments
Owner

What happens

build.yml says a pull request into develop or main runs the tests only: it calls pipeline.yml with kind: verify, and every build, package, image and publish job there has if: inputs.kind != 'verify'.

In practice every pull-request run does the whole pre-release build. Evidence from 2026-11-12 and 2026-11-13:

  • The runs 1525, 1527 and 1536 have event=pull_request in the task list, and in each one the five Build Binary legs, the NuGet legs, the Arch, Deb and RPM packages, Build and Push Image, the Windows smoke test and Publish Release all ran and succeeded. None of them was re-run.
  • The release list holds a published pre-release with 12 assets for each pull request of those two days, tagged with the pull request number as the branch label: v2026.11.13.1R404+84bac97, v2026.11.13.1R405+6d1e34a, v2026.11.13.2R400+185b7ae, v2026.11.12.1R385+3de8f0c and about fifteen more.

So kind reaches the pipeline as prerelease for a pull request. Why is not known. The expression is:

kind: >-
  ${{ forgejo.event_name == 'pull_request' && 'verify' || 'prerelease' }}

The concurrency group two lines above uses the same test.

Why it matters

  • Load: a pull request costs a full pipeline on the one Linux runner, and its merge costs a second one for the develop push. Several of this milestone's timing failures happened while pull-request builds were queued beside each other.
  • Unreviewed code: the pipeline comments say a verify build runs code nobody has reviewed, so it gets no Docker socket (--filter "Category!=RequiresDocker") and publishes nothing. As it runs today, pull-request code builds and pushes a container image, NuGet packages and a pre-release with the inherited secrets. The repository is private and has one contributor today; this must be right before it goes public.
  • Clutter: each pull request leaves a pre-release, an image tag and packages that the cleanup removes a day later.

Wanted

  1. Find out what kind a pull-request run gets and why (what forgejo.event_name holds in a with: of a reusable-workflow call on the runner version in use, v13.2.1; whether the folded scalar or the &&/|| form is at fault; whether the test job's BUILD_KIND check sees verify).
  2. Make a pull-request run a verify build: tests and lint only, no version, draft, binaries, packages, image or publish, and no Docker socket for the tests.
  3. Check what the merge gate needs afterwards: Q-PROC-13 says a pull request merges only when its whole pipeline is green. With a working verify build the Pipeline status of a pull request covers lint, Test .NET and Test Admin Console only; the develop push run after the merge covers the rest.
  4. Correct every comment and document that describes the pull-request build.

The pull request that fixes this shows the result in its own run: its build jobs must be skipped.

**What happens** `build.yml` says a pull request into `develop` or `main` runs the tests only: it calls `pipeline.yml` with `kind: verify`, and every build, package, image and publish job there has `if: inputs.kind != 'verify'`. In practice every pull-request run does the whole pre-release build. Evidence from 2026-11-12 and 2026-11-13: - The runs 1525, 1527 and 1536 have `event=pull_request` in the task list, and in each one the five `Build Binary` legs, the NuGet legs, the Arch, Deb and RPM packages, `Build and Push Image`, the Windows smoke test and `Publish Release` all ran and succeeded. None of them was re-run. - The release list holds a published pre-release with 12 assets for each pull request of those two days, tagged with the pull request number as the branch label: `v2026.11.13.1R404+84bac97`, `v2026.11.13.1R405+6d1e34a`, `v2026.11.13.2R400+185b7ae`, `v2026.11.12.1R385+3de8f0c` and about fifteen more. So `kind` reaches the pipeline as `prerelease` for a pull request. Why is not known. The expression is: ```yaml kind: >- ${{ forgejo.event_name == 'pull_request' && 'verify' || 'prerelease' }} ``` The concurrency group two lines above uses the same test. **Why it matters** - **Load:** a pull request costs a full pipeline on the one Linux runner, and its merge costs a second one for the develop push. Several of this milestone's timing failures happened while pull-request builds were queued beside each other. - **Unreviewed code:** the pipeline comments say a verify build runs code nobody has reviewed, so it gets no Docker socket (`--filter "Category!=RequiresDocker"`) and publishes nothing. As it runs today, pull-request code builds and pushes a container image, NuGet packages and a pre-release with the inherited secrets. The repository is private and has one contributor today; this must be right before it goes public. - **Clutter:** each pull request leaves a pre-release, an image tag and packages that the cleanup removes a day later. **Wanted** 1. Find out what `kind` a pull-request run gets and why (what `forgejo.event_name` holds in a `with:` of a reusable-workflow call on the runner version in use, v13.2.1; whether the folded scalar or the `&&`/`||` form is at fault; whether the test job's `BUILD_KIND` check sees `verify`). 2. Make a pull-request run a verify build: tests and lint only, no version, draft, binaries, packages, image or publish, and no Docker socket for the tests. 3. Check what the merge gate needs afterwards: Q-PROC-13 says a pull request merges only when its whole pipeline is green. With a working verify build the `Pipeline` status of a pull request covers lint, Test .NET and Test Admin Console only; the develop push run after the merge covers the rest. 4. Correct every comment and document that describes the pull-request build. The pull request that fixes this shows the result in its own run: its build jobs must be skipped.
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#409
No description provided.