Compare commits

..
Author SHA1 Message Date
Morluto 806bd81b42 docs(ci): clarify canceled dependency gate 2026-10-14 02:19:34 +08:00
Morluto a00401ecc1 fix(ci): fail required gate after cancellation 2026-10-14 02:17:00 +08:00
morlutoandGitHub 8fef2aa64e fix(ci): enforce merge verification and unblock superseded runs (#2938)
* fix(ci): repair inherited formatting failures

* fix(ci): release superseded PR concurrency slots

* docs: require current-base checks before maintainer merges

* docs: preserve administrator merge override
2026-10-14 01:52:57 +08:00
5 changed files with 12 additions and 14 deletions
+3 -2
View File
@@ -33,7 +33,7 @@ env:
jobs: jobs:
changes: changes:
name: Classify changes name: Classify changes
runs-on: ubuntu-latest runs-on: ubuntu-24.04
timeout-minutes: 5 timeout-minutes: 5
permissions: permissions:
contents: read contents: read
@@ -777,6 +777,7 @@ jobs:
required: required:
name: CI required name: CI required
# Report failed or canceled dependencies before satisfying the required gate.
if: ${{ always() }} if: ${{ always() }}
needs: needs:
[ [
@@ -804,7 +805,7 @@ jobs:
nativeaot, nativeaot,
website, website,
] ]
runs-on: ubuntu-latest runs-on: ubuntu-24.04
timeout-minutes: 5 timeout-minutes: 5
steps: steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
+1 -1
View File
@@ -14,7 +14,7 @@ concurrency:
jobs: jobs:
pr-title: pr-title:
name: Conventional PR title name: Conventional PR title
runs-on: ubuntu-latest runs-on: ubuntu-24.04
timeout-minutes: 2 timeout-minutes: 2
steps: steps:
- name: Validate title for Release Please - name: Validate title for Release Please
+5
View File
@@ -181,6 +181,11 @@ The separate GitHub Pages host uses only the manual
## Development feedback and PR verification ## Development feedback and PR verification
For routine merges, wait for the required checks to pass for the current PR
revision against the current `main`. Branch protection requires up-to-date
branches; administrators retain an override for deliberate maintainer recovery.
If `main` is broken, prioritize a focused repair before updating affected PRs.
Select checks for the behavior changed. For a source edit: Select checks for the behavior changed. For a source edit:
```bash ```bash
@@ -44,16 +44,6 @@ const dossier = jsonValueSchema.parse(
referenced_names: [], referenced_names: [],
native_api: null, native_api: null,
native_value_flow: null, native_value_flow: null,
facet_availability: {
pseudocode: { available: true },
assembly: { available: true },
comments: { available: true },
callers: { available: true },
callees: { available: true },
references: { available: true },
strings_names: { available: true },
cfg: { available: true },
},
basic_blocks: [{ start: "0x1000", end: "0x1001", successors: [] }], basic_blocks: [{ start: "0x1000", end: "0x1001", successors: [] }],
limitations: [], limitations: [],
}), }),
@@ -365,7 +365,9 @@ it("keeps fast feedback separate from complete qualification and release proof",
expect(ci.concurrency["cancel-in-progress"]).toBe( expect(ci.concurrency["cancel-in-progress"]).toBe(
"${{ github.event_name == 'pull_request' && inputs.source_sha == '' && !contains(github.event.pull_request.labels.*.name, 'ci:full') }}", "${{ github.event_name == 'pull_request' && inputs.source_sha == '' && !contains(github.event.pull_request.labels.*.name, 'ci:full') }}",
); );
expect(ci.jobs.required?.if).toBe("${{ always() }}"); // Failed dependencies still reach the gate, but superseded PR runs must
// release their concurrency slot without waiting for another runner.
expect(ci.jobs.required?.if).toBe("${{ !cancelled() }}");
const shards = ci.jobs["test-shard"]?.steps ?? []; const shards = ci.jobs["test-shard"]?.steps ?? [];
const fast = shards.find((step) => step.run?.includes("npm run test:run")); const fast = shards.find((step) => step.run?.includes("npm run test:run"));
const full = shards.find((step) => step.run?.includes("test:ci:shard:run")); const full = shards.find((step) => step.run?.includes("test:ci:shard:run"));