mirror of
https://github.com/garrytan/gstack.git
synced 2026-09-10 06:58:59 +02:00
ci(free-tests): restore the PR-number concurrency + failure-log artifact; truth-fix stale comments
The workspace-revert incident that hit CHANGELOG/TODOS mid-ship also
caught free-tests.yml between edits: commit 8d6c2ff8's message claims
PR-number concurrency + artifact upload + main-push runs, but only the
push trigger survived to the commit (caught by the /document-release
doc-vs-code audit). Both re-applied. Also: eval-model.ts header said
capture defaults to Opus (it's Sonnet per D1a), paid-shards' header
pinned a stale 44/63 shard census, and two CHANGELOG phrases
over-claimed ('six' -> 'up to six' shard processes; retry-1 scoped to
retry-bearing paid paths).
This commit is contained in:
@@ -30,8 +30,11 @@ on:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
|
||||
# Keyed on the PR number, not head_ref: a bare branch name carries no fork
|
||||
# prefix, so same-name branches from two forks would share one group and a
|
||||
# push to fork B's PR would cancel fork A's in-flight REQUIRED check.
|
||||
concurrency:
|
||||
group: free-tests-${{ github.head_ref || github.run_id }}
|
||||
group: free-tests-${{ github.event.pull_request.number || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
# Least privilege: this job executes PR-controlled code (install lifecycle
|
||||
@@ -94,3 +97,16 @@ jobs:
|
||||
|
||||
- name: Run free suite
|
||||
run: bun run test:free
|
||||
|
||||
# The runner streams the full child output to per-run logs under the OS
|
||||
# tmpdir and prints only the quiet contract to the console. Without this
|
||||
# upload, a red required check names WHICH test failed but the why
|
||||
# (assertion detail, stack) dies with the runner — every diagnosis would
|
||||
# need a local re-run, which fork contributors can't do on this image.
|
||||
- name: Upload shard logs on failure
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: free-test-shard-logs
|
||||
path: /tmp/gstack-free-test-*.log
|
||||
if-no-files-found: ignore
|
||||
|
||||
Reference in New Issue
Block a user