mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-23 08:31:44 +01:00
Pull requests get a Test changes summary of deleted or skipped tests and edits to their own checks (GST-3386) (#4645)
Every gstack pull request now gets a flag-only Test changes check listing removed or skipped tests, loosened limits and edits to the files that run its own checks. Why: agents write most of our tests, and a pull request shouldn't be able to quietly weaken them or grade itself with an edited checker; this two-week trial measures how often that happens. Nothing to do: the check isn't required, and a flag never turns it red. 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: lib/gate-diff/git.ts:314:stale-comment reader=core Review-Finding: p3/outside-voice#1 reader=outside-voice
This commit is contained in:
1 parent
abdc09dad1
commit
973b49eabb
11 files changed
+451
-15
No files matched your search
@@ -51,7 +51,7 @@ describe('gstack-gate-diff arguments and exit contract', () => {
|
||||
test('--help exits 0 with usage on stdout', () => {
|
||||
const r = run(repo(), ['--help']);
|
||||
expect(r.status).toBe(0);
|
||||
expect(r.stdout).toContain('usage: gstack-gate-diff [base-ref] [--format table|jsonl] [--commit <sha>] [--help]');
|
||||
expect(r.stdout).toContain('usage: gstack-gate-diff [base-ref] [--format table|jsonl] [--commit <sha> | --head <sha>] [--help]');
|
||||
});
|
||||
|
||||
test('an unknown option or bad --format is a tool failure: GATE_ERROR=internal, exit 2', () => {
|
||||
|
||||
Reference in new issue
Block a user