Skip to content

docs(spec): plan #7220 refuse foreign files on a release pull request - #7271

Merged
dan-petty merged 2 commits into
mainfrom
fix/7220-refuse-other-commits-on-the-release
Nov 26, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/7220-refuse-other-commits-on-the-release

Conversation

@devops-cli-service

@devops-cli-service devops-cli-service Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

The shard job skips a pull request from a release-please-- branch, so its required check Tests & Coverage comes from the push run of main, and a commit that a write session pushes to the release branch can merge with no test of its own tree (issue #7220). The job Tests on Main runs the release file guard from the base commit before it waits for that push run: a release pull request that changes a path which release-please does not write fails the required check, and a clean release pull request keeps its automatic merge. The guard reuses RELEASE_FILES and gains one command and one test.

Plans #7220

Change: openspec/changes/7220-refuse-other-commits-on-the-release/

@devops-cli-service devops-cli-service Bot added type/docs Type docs: a change to the documents scope/spec labels Nov 26, 2026
@devops-cli-service
devops-cli-service Bot force-pushed the fix/7220-refuse-other-commits-on-the-release branch from 802866d to 7b79e42 Compare November 26, 2026 04:28
@devops-cli-service devops-cli-service Bot changed the title docs(spec): plan #7220 Refuse foreign files on the release branch docs(spec): plan #7220 refuse foreign files on a release pull request Nov 26, 2026
@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 26, 2026 04:36
@dan-petty
dan-petty marked this pull request as draft November 26, 2026 13:19
@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 26, 2026 13:20
devops-cli-service Bot and others added 2 commits November 26, 2026 13:22
An independent review found no block and five small faults:

- The scenario and test 1.1 held `CHANGELOG.md` beside the source file.
  Criterion 1 of the issue names one file under `src/` and no other file.
- The test of the failed read came after the code. Task 1.1 now holds the
  three tests, and each imports the new module inside the test function, so
  that it fails in its call phase on the base.
- The toolchain step had no `cache-suffix` and restored a tooling cache that
  it does not use. The step limits of the job (5 and 37) were above the job
  limit of 40.
- Task 3.2 named no edit.
- The design did not say that a commit which changes only the content of a
  release file passes the guard.
@dan-petty
dan-petty force-pushed the fix/7220-refuse-other-commits-on-the-release branch from 7b79e42 to d16b999 Compare November 26, 2026 13:23
@dan-petty

Copy link
Copy Markdown
Owner

Vetted on 2026-11-26: this plan is safe to merge.

An independent review read each cited line against main and found no block. The premise holds (each named function, workflow step and test exists; the new names are free), the two requirements are new in release-scheduled-merge, and the guard fails closed. Commit d16b9991a corrects five small faults:

  • Scenario and test 1.1 now hold only the file under src/, as criterion 1 of fix(ci): refuse other commits on the release branch #7220 says.
  • The three tests come before the code, and each imports the new module inside the test function.
  • The toolchain step gets cache-suffix: main-tests and no tooling cache, and the job limit goes from 40 to 46 minutes, above the sum of its steps.
  • Task 3.2 names its edit.
  • The design names the second limit of the guard: a commit that changes only the content of a release file passes it. The push ruleset of the issue stays a decision of a person.

Checks on the new head: 23 pass, with Plan Check.

@dan-petty
dan-petty merged commit b4b0f2e into main Nov 26, 2026
26 checks passed
@dan-petty
dan-petty deleted the fix/7220-refuse-other-commits-on-the-release branch November 26, 2026 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/spec type/docs Type docs: a change to the documents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant