mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-30 11:53:55 +01:00
Show the weekly benchmark in every stable release plan, ready to hold a measured drop (GST-3606) (#4755)
Every stable release plan now prints the weekly benchmark's result: whether this week's gstack measurably fixes more or fewer bugs than the current stable release. Why: about 30 PRs land a week and this is the first number that says whether agents using gstack got better or worse; a measured drop should not reach every stable install. Nothing to do: holding is off for the first two weekly records, so this only reports for now. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/red-team#1 reader=red-team Review-Finding: p1/red-team#2 reader=red-team Review-Finding: p1/specialist-batched#1 reader=testing Review-Finding: p1/specialist-batched#2 reader=security
This commit is contained in:
1 parent
0603c27389
commit
a9c746fa0c
8 files changed
+469
-23
No files matched your search
@@ -15,7 +15,9 @@ name: Stable release
|
||||
# security input, naming a GHSA, CVE or #<n> the script ties to the released
|
||||
# commits) and a regression cut (the regression input, naming a
|
||||
# regression-labelled #<n> and the earlier stable release v<X> the behavior
|
||||
# worked in). Run it by hand with a
|
||||
# worked in). Every cut plan also prints the weekly benchmark's BENCHMARK: line
|
||||
# (crew/lib/release-benchmark.ts); benchmark_waiver lets a hand cut past a
|
||||
# standing HOLD once holds are switched on. Run it by hand with a
|
||||
# ref for a hotfix, or with dry_run to see the plan and change nothing. A pull request that touches
|
||||
# the release tooling runs the dry run against main with a read-only token,
|
||||
# which is the only pre-merge exercise of the real workflow. The candidate's
|
||||
@@ -47,6 +49,10 @@ on:
|
||||
description: 'Regression cut (needs ref): the reason, naming the regression-labelled #<n> it fixes and the earlier stable release v<X> it worked in; passes the 72-hour floor once verified and lands in the release notes'
|
||||
type: string
|
||||
default: ''
|
||||
benchmark_waiver:
|
||||
description: 'Hand cut past a weekly benchmark HOLD: why the measured drop is accepted or explained; written to the tag message (docs/releases.md#weekly-benchmark); not with daily'
|
||||
type: string
|
||||
default: ''
|
||||
daily:
|
||||
description: 'Run the daily check now (an important change past 24 h, a forced cut at 7 days, the regular cut on Monday or Thursday) instead of a plain cut; no ref, security or regression'
|
||||
type: boolean
|
||||
@@ -58,6 +64,7 @@ on:
|
||||
- 'crew/scripts/release-notes.ts'
|
||||
- 'crew/scripts/release-cadence.ts'
|
||||
- 'lib/changelog-fragments.ts'
|
||||
- 'crew/lib/release-benchmark.ts'
|
||||
|
||||
# One cut at a time; a second dispatch waits for the first. A pull request's
|
||||
# dry run is its own group.
|
||||
@@ -110,6 +117,7 @@ jobs:
|
||||
RELEASE_REF: ${{ github.event_name == 'workflow_dispatch' && inputs.ref || '' }}
|
||||
SECURITY_REASON: ${{ github.event_name == 'workflow_dispatch' && inputs.security || '' }}
|
||||
REGRESSION_REASON: ${{ github.event_name == 'workflow_dispatch' && inputs.regression || '' }}
|
||||
BENCHMARK_WAIVER: ${{ github.event_name == 'workflow_dispatch' && inputs.benchmark_waiver || '' }}
|
||||
DAILY: ${{ (github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.daily)) && 'true' || 'false' }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
@@ -125,8 +133,8 @@ jobs:
|
||||
echo "::error::a regression cut needs ref: the full SHA of the fix commit on main"
|
||||
exit 1
|
||||
fi
|
||||
if [ "$DAILY" = true ] && [ -n "$RELEASE_REF$SECURITY_REASON$REGRESSION_REASON" ]; then
|
||||
echo "::error::the daily check picks its own candidate: run ref, security or regression without daily"
|
||||
if [ "$DAILY" = true ] && [ -n "$RELEASE_REF$SECURITY_REASON$REGRESSION_REASON$BENCHMARK_WAIVER" ]; then
|
||||
echo "::error::the daily check picks its own candidate: run ref, security, regression or benchmark_waiver without daily"
|
||||
exit 1
|
||||
fi
|
||||
args=(--repo "$GITHUB_REPOSITORY" --summary "$GITHUB_STEP_SUMMARY")
|
||||
@@ -135,6 +143,7 @@ jobs:
|
||||
[ -n "$RELEASE_REF" ] && args+=(--ref "$RELEASE_REF")
|
||||
[ -n "$SECURITY_REASON" ] && args+=(--security "$SECURITY_REASON")
|
||||
[ -n "$REGRESSION_REASON" ] && args+=(--regression "$REGRESSION_REASON")
|
||||
[ -n "$BENCHMARK_WAIVER" ] && args+=(--benchmark-waiver "$BENCHMARK_WAIVER")
|
||||
echo "## Stable release ($([ "$DRY_RUN" = true ] && echo 'dry run' || echo 'cut')$([ "$DAILY" = true ] && echo ', daily check'), $GITHUB_EVENT_NAME)" >> "$GITHUB_STEP_SUMMARY"
|
||||
bun --no-env-file --config=/dev/null --no-install run crew/scripts/release-cut.ts "${args[@]}"
|
||||
|
||||
|
||||
Reference in new issue
Block a user