mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-23 16:41:35 +01:00
Trunk flaky-test upload runs after Free Tests, off the pull request's checks (GST-3303) (#4579)
Pull requests no longer wait on the upload that sends Free Tests results to Trunk. It now runs on its own after Free Tests finishes. The quick test tier's flaky passes now reach Trunk too, so a test that fails once and passes on its retry shows up there wherever it ran. Nothing to do: no required check changes, and the upload still never affects whether a check passes. Refs: GST-3303 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
This commit is contained in:
1 parent
92c57ca4ce
commit
faae7f725a
12 files changed
+214
-119
No files matched your search
@@ -1 +1 @@
|
||||
{"blob":"5fa6f0beccfc08d49513c6cca9b1ae29a09265d8","since":6,"nonBehavioral":"Adds the new Codex hooks workflow to FREE_ONLY_PR_FILES; no paid case reads it, so no eval verdict can change"}
|
||||
{"blob":"c1d0b8ffabc86df40aa8785a7af87b0dae64f3f2","since":6,"nonBehavioral":"adds the new free-lane-only workflow trunk-flaky-tests.yml to FREE_ONLY_PR_FILES; no eval case reads it and no verdict can change"}
|
||||
@@ -705,7 +705,7 @@ export function parseCliOptions(argv: string[]): CliOptions {
|
||||
if (ciModes > 1 || (ciModes && (quick || listOnly || dryRun || recordDurations || attributeHome))) throw new Error('CI modes cannot be combined with other selection modes');
|
||||
if (paths.ciRun && (shardIndex === null || !paths.result)) throw new Error('--ci-run requires --shard and --result');
|
||||
if (paths.ciVerify && !paths.results) throw new Error('--ci-verify requires --results');
|
||||
if (junitDir !== undefined && !paths.ciRun) throw new Error('--junit-dir applies only to --ci-run');
|
||||
if (junitDir !== undefined && !paths.ciRun && !quick) throw new Error('--junit-dir applies only to --ci-run or --quick');
|
||||
if (jobs !== undefined && !paths.ciRun) rejectJobsWithoutCiRun();
|
||||
if (shardJobs !== undefined && !paths.ciPlan) rejectShardJobsWithoutCiPlan();
|
||||
if (jobSetupSeconds !== undefined && !paths.ciPlan) throw new Error('--job-setup-seconds applies only to --ci-plan');
|
||||
@@ -2206,6 +2206,7 @@ async function main(): Promise<number> {
|
||||
? wallTimeoutForPackedShard(packed.predictedMs[index], options.wallTimeoutMs, shardFiles.length)
|
||||
: shardTimeout(shardFiles.length),
|
||||
verbose: options.verbose,
|
||||
...(options.junitDir ? { junitDir: options.junitDir } : {}),
|
||||
})),
|
||||
);
|
||||
const homeChange = phaseHome.verify();
|
||||
@@ -2216,6 +2217,7 @@ async function main(): Promise<number> {
|
||||
const exclusiveOutcome = await runFreeShard(exclusive, totalShards, totalShards, {
|
||||
wallTimeoutMs: shardTimeout(exclusive.length),
|
||||
verbose: options.verbose,
|
||||
...(options.junitDir ? { junitDir: options.junitDir } : {}),
|
||||
});
|
||||
if (exclusiveOutcome.status !== 'passed') {
|
||||
// Fixture safety rests on each test restoring default state itself; a
|
||||
|
||||
@@ -288,6 +288,7 @@ export const FREE_ONLY_PR_FILES = [
|
||||
'.github/workflows/scorecard.yml',
|
||||
'.github/workflows/skill-docs.yml',
|
||||
'.github/workflows/test-health.yml',
|
||||
'.github/workflows/trunk-flaky-tests.yml',
|
||||
'.github/workflows/eval-sweep.yml', // The weekly off-ship sweep on main; no PR-gate case reads it, and it never gates a PR.
|
||||
'.github/workflows/evals-main-backstop.yml', // The merge-train backstop on main: it dispatches evals.yml after a push to main; no PR-gate case reads it, and it never gates a PR.
|
||||
'.github/workflows/release-gate.yml', // The 8-hour release gate on main: it dispatches evals.yml on main's head; no PR-gate case reads it, and it never gates a PR.
|
||||
|
||||
Reference in new issue
Block a user