mirror of
https://github.com/garrytan/gstack.git
synced 2026-12-01 20:34:25 +01:00
/gstack-ship honours ruled edits after the final review and records second-model stops (GST-3814) (#4829)
/gstack-ship no longer asks for every reviewer again after an edit the owner already ruled a note, and a stop on a second-model reviewer's blocker now records instead of failing with STOP_UNBOUND. Why: both forced hand-written workarounds after the final review (#4819, yc-software/qm#3973, gskills#45 and #46). Nothing to do: the fixes apply on the next /gstack-ship run. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/specialist-batched#1 reader=testing Review-Finding: p1/red-team#1 reader=red-team Review-Finding: p1/red-team#2 reader=red-team Review-Finding: p2/outside-voice#1 reader=outside-voice Review-Finding: p2/outside-voice#2 reader=outside-voice
This commit is contained in:
1 parent
ec5d7e6fbd
commit
7eba5caf6f
23 files changed
+201
-104
No files matched your search
@@ -1 +1 @@
|
||||
{"sha":"a296be05e50ac76c10be9199a1facfb844f1f2d8a406c5cd24a55e7a535e880d","replay":"GST-3562-part-4"}
|
||||
{"sha":"d6f474b5320d9b94715e79400647ab215942ed2f5c60636ea8a82e890ab21b6f","replay":"GSTA-861"}
|
||||
@@ -0,0 +1 @@
|
||||
{"replay":"GSTA-861","justification":"GSTA-861 deterministic no-loss replay, no paid run (CREW rule 15): lib/review-depth.ts changes two stop-reason strings only, renaming the recovery command in the read-only final review's PR_ROUND_CAP reason and in CAPTAIN_DECIDES from 'run /ship again' to 'run /gstack-ship again' (#4819 leftovers). No step, dispatch, reader, effort, depth rule or History field changes, and no reviewer brief reads these strings. The GST-3562 replays (test/review-depth.test.ts, test/review-depth-lean.test.ts, test/review-risk-token-paths.test.ts) keep every case's kind and step at this file's bytes, because their kind rules match the unchanged reason prefixes ('a fix followed the read-only final review', 'read-only final review (R51)')."}
|
||||
@@ -25,12 +25,13 @@ const TIMEOUT = diff('test/worker.test.ts', [" test('drains', async () => { awa
|
||||
const check = (cls: string, d?: string, prior: NoStopRecord[] = []) => checkNoStop({ cls, reason: 'r', evidence: 'run 41715705702', prior, diff: d, root: ROOT });
|
||||
|
||||
describe('lib/no-stop: what qualifies', () => {
|
||||
test('scoped-fix-check: a docs-only or timeout-only round-2 fix qualifies once; code, skill prose or a second one stops', () => {
|
||||
expect(check('scoped-fix-check', diff('docs/review-policy-notes.md', ['old wording'], ['new wording']))).toMatchObject({ ok: true, detail: expect.stringContaining('docs-only') });
|
||||
expect(check('scoped-fix-check', TIMEOUT)).toMatchObject({ ok: true, detail: expect.stringContaining('timeout-only') });
|
||||
expect(check('scoped-fix-check', diff('lib/worker.ts', ['return a;'], ['return b;']))).toMatchObject({ ok: false, reason: expect.stringContaining('neither docs-only') });
|
||||
expect(check('scoped-fix-check', diff('ship/SKILL.md.tmpl', ['old'], ['new']))).toMatchObject({ ok: false });
|
||||
expect(check('scoped-fix-check', TIMEOUT, [{ class: 'scoped-fix-check', reason: 'x', evidence: 'y' }])).toMatchObject({ ok: false, reason: expect.stringContaining('a second goes to the owner') });
|
||||
// Value: protects=the retired scoped-fix-check (fix-checks and their grants, GST-3562 part 4) never records a no-stop, so a
|
||||
// stop after round 2 goes to the lane's Captain; fails_when=checkNoStop still accepts a docs-only or timeout-only round-2
|
||||
// fix as scoped-fix-check while gstack-no-stop refuses it (#4826 final review); seam=lib/no-stop checkNoStop
|
||||
test('scoped-fix-check is retired: no diff qualifies, not even a docs-only or timeout-only one', () => {
|
||||
for (const d of [diff('docs/review-policy-notes.md', ['old wording'], ['new wording']), TIMEOUT, diff('lib/worker.ts', ['return a;'], ['return b;'])]) {
|
||||
expect(check('scoped-fix-check', d)).toMatchObject({ ok: false, reason: expect.stringContaining('removed with fix-check grants (GST-3562 part 4)') });
|
||||
}
|
||||
});
|
||||
|
||||
test('test-timeout-fix: only a raised timeout in a test file qualifies', () => {
|
||||
@@ -43,7 +44,7 @@ describe('lib/no-stop: what qualifies', () => {
|
||||
|
||||
test('review pass 1 holes: an assertion bound, a name that only contains "timeout", and a "-- " line inside a hunk are not timeout-only', () => {
|
||||
expect(check('test-timeout-fix', diff('test/perf.test.ts', [' expect(elapsedMs).toBeLessThan(timeoutMs + 100);'], [' expect(elapsedMs).toBeLessThan(timeoutMs + 5000);']))).toMatchObject({ ok: false });
|
||||
expect(check('scoped-fix-check', diff('lib/retry.ts', ['const MAX_ATTEMPTS_BEFORE_TIMEOUT = 3;'], ['const MAX_ATTEMPTS_BEFORE_TIMEOUT = 30;']))).toMatchObject({ ok: false });
|
||||
expect(check('test-timeout-fix', diff('test/retry.test.ts', ['const MAX_ATTEMPTS_BEFORE_TIMEOUT = 3;'], ['const MAX_ATTEMPTS_BEFORE_TIMEOUT = 30;']))).toMatchObject({ ok: false });
|
||||
expect(check('test-timeout-fix', diff('test/x.test.ts', [' setDefaultTimeout(5_000);'], [' setDefaultTimeout(30_000);']))).toMatchObject({ ok: true });
|
||||
const hidden = 'diff --git a/test/x.test.ts b/test/x.test.ts\n--- a/test/x.test.ts\n+++ b/test/x.test.ts\n@@ -1,2 +1,1 @@\n--- guard\n- }, 5000);\n+ }, 50000);\n';
|
||||
expect(check('test-timeout-fix', hidden)).toMatchObject({ ok: false });
|
||||
|
||||
@@ -10,22 +10,6 @@ import { withWorkspace } from '../lib/review-brief';
|
||||
import { PARENT_ONLY_QA, type Manifest } from '../lib/review-pass';
|
||||
import { ROOT, BIN, spec, manifest, repo, host, runPass, bin } from './helpers/review-pass-harness';
|
||||
|
||||
/**
|
||||
* GST-3562 A: the planner plans a fix-check only for a grant answering the stop after a round-2 fix-check (GEVA-223), until a
|
||||
* later release removes it. Commit a fix, record the owner's grant at that stop head, and return the plan flags of that stop.
|
||||
*/
|
||||
function legacyGrantFlags(dir: string, env: NodeJS.ProcessEnv): string[] {
|
||||
const sh = (c: string) => spawnSync('bash', ['-c', c], { cwd: dir, env, encoding: 'utf8', timeout: 60_000 });
|
||||
const rangeBase = sh('git rev-parse HEAD').stdout.trim();
|
||||
expect(sh('echo "export const fix = 1;" >> src/a.ts && git commit -qam fix').status).toBe(0);
|
||||
const stopHead = sh('git rev-parse HEAD').stdout.trim();
|
||||
env.GSTACK_APPROVALS_MIRROR = '0';
|
||||
delete env.GSTACK_APPROVALS_DIR;
|
||||
const a = spawnSync(path.join(BIN, 'gstack-approvals'), ['add', '--ask', `Owner grant: one scoped fix-check after round 2 (review_loop_grant ${stopHead.slice(0, 12)})`, '--words', 'do it', '--by', 'GStack Minder', '--scope', 'this /ship invocation', '--json'], { cwd: dir, env, encoding: 'utf8', timeout: 60_000 });
|
||||
expect(a.status, a.stderr).toBe(0);
|
||||
return ['--pass', '1', '--last', 'fix-check', '--fix-checks', '1', '--fixed-blocking', '--adversarial-ran', '--range-base', rangeBase, '--grant', JSON.parse(a.stdout).added[0]];
|
||||
}
|
||||
|
||||
describe('Capy pass program (fake host, real bins)', () => {
|
||||
test('Step 11 notes its own growth from its first dispatch, not from the pass\'s starting reading', async () => {
|
||||
const { dir, env } = repo();
|
||||
@@ -140,6 +124,25 @@ describe('Capy pass program (fake host, real bins)', () => {
|
||||
expect(again).not.toContain('REVIEW_LOG_START:');
|
||||
}, 240_000);
|
||||
|
||||
// Value: protects=a stop on a second-model blocker binds: Step 11 with no logStart starts one adversarial-review token per voice
|
||||
// row it will log (the native adversarial and the second-model reader), so neither row is logged unbound; fails_when=the
|
||||
// default starts one token for two voice rows, the second-model row logs uncaptured and gstack-ship-receipt stop refuses
|
||||
// STOP_UNBOUND (CAPY-1 on yc-software/qm#3973, GSKI-1 on gskills#45 and #46); seam=the pass program's voices start
|
||||
test('Step 11 with no logStart starts one token per voice row it logs, so a second-model blocker can bind its stop', async () => {
|
||||
const { dir, env } = repo();
|
||||
const out = path.join(dir, '.state/run/p1');
|
||||
const h = host(dir, env);
|
||||
const base = { base: 'main', out, pass: 'x22p1', planFlags: ['--depth-floor', 'full'] };
|
||||
expect(await runPass(h, base)).toContain('NEXT: judge (Phase 4)');
|
||||
const models = { 'outside-voice': { model_id: 'openai/gpt-6.1-sol' }, 'adversarial-native': { model_id: 'anthropic/claude-opus-5-5', reasoning_mode: 'high' } };
|
||||
const res = await runPass(h, { ...base, stage: 'voices', models });
|
||||
const starts = res.split('\n').filter(l => l.startsWith('REVIEW_LOG_START: adversarial-review'));
|
||||
expect(starts.length).toBe(2);
|
||||
expect(new Set(starts.map(l => l.split('token=')[1])).size).toBe(2);
|
||||
const m = JSON.parse(fs.readFileSync(path.join(out, 'pass-manifest.json'), 'utf8'));
|
||||
expect(Object.keys(m.log_starts).sort()).toEqual(['voices:adversarial-review', 'voices:adversarial-review#2']);
|
||||
}, 240_000);
|
||||
|
||||
test('a repeat pass reads the range: diffBase reaches the specialists and the Red Team, byte for byte the render CLI at that base', async () => {
|
||||
const { dir, env } = repo();
|
||||
const sh = (c: string) => spawnSync('bash', ['-c', c], { cwd: dir, env, encoding: 'utf8', timeout: 60_000 });
|
||||
|
||||
@@ -28,7 +28,8 @@ describe('Capy pass program (fake host, real bins)', () => {
|
||||
expect(voices.indexOf('REVIEW_LOG_START: adversarial-review')).toBeLessThan(voices.indexOf('DISPATCHED:'));
|
||||
expect(voices).toContain('NEXT: judge the voices');
|
||||
const m = JSON.parse(fs.readFileSync(path.join(out, 'pass-manifest.json'), 'utf8'));
|
||||
expect(Object.keys(m.log_starts ?? {}).sort()).toEqual(['pass:review', 'voices:adversarial-review']);
|
||||
expect(voices).toMatch(/REVIEW_LOG_START: adversarial-review #2 token=\S+/);
|
||||
expect(Object.keys(m.log_starts ?? {}).sort()).toEqual(['pass:review', 'voices:adversarial-review', 'voices:adversarial-review#2']);
|
||||
}, 240_000);
|
||||
|
||||
// Value: protects=Step 11 on its own --out (the head moved after a fix round) renders and sends only the voices, so its ledger verifies clean; fails_when=pass renders the plan's first and specialists stages for a voices-only program, leaving BRIEF specialist-batched NOT_SENT in the ledger;
|
||||
|
||||
@@ -319,9 +319,9 @@ describe('gstack-review-plan --post-review stop names the edit ruling (GST-3775)
|
||||
const p = run(r, ['--pass', '3', '--last', 'full', '--range-base', passHead, '--post-review']);
|
||||
expect(p.status, p.stderr).toBe(0);
|
||||
expect(p.stdout).toContain("a fix followed the read-only final review: the lane's Captain decides (R51)");
|
||||
expect(p.stdout).toContain(`record that ruling once per edited path (each path shell-quoted; the owner-ref is the relay this open /ship run needs): gstack-approvals rule --finding 'edit:src/a.ts' --head ${head} --reason '<why`);
|
||||
expect(p.stdout).toContain("'src/a b.ts' cannot be ruled (a finding holds no whitespace), so an edit there keeps the fix and runs /ship again");
|
||||
expect(p.stdout).toContain("; a deletion ('src/gone.ts') cannot be ruled, so it keeps the fix and runs /ship again");
|
||||
expect(p.stdout).toContain(`record that ruling once per edited path (each path shell-quoted; the owner-ref is the relay this open /gstack-ship run needs): gstack-approvals rule --finding 'edit:src/a.ts' --head ${head} --reason '<why`);
|
||||
expect(p.stdout).toContain("'src/a b.ts' cannot be ruled (a finding holds no whitespace), so an edit there keeps the fix and runs /gstack-ship again");
|
||||
expect(p.stdout).toContain("; a deletion ('src/gone.ts') cannot be ruled, so it keeps the fix and runs /gstack-ship again");
|
||||
const findings = [...p.stdout.split('\n').find(l => l.startsWith('NEXT: '))!.matchAll(/gstack-approvals rule --finding ('(?:[^']|'\\'')*') --head /g)].map(m => m[1]!);
|
||||
expect(findings).toHaveLength(2);
|
||||
const parsed = spawnSync('sh', ['-c', `printf '%s\\n' ${findings.join(' ')}`], { cwd: r.dir, encoding: 'utf8', timeout: 10_000 });
|
||||
@@ -329,3 +329,64 @@ describe('gstack-review-plan --post-review stop names the edit ruling (GST-3775)
|
||||
expect(run(r, ['--pass', '3', '--last', 'full', '--range-base', passHead, '--fixed-below']).stdout).not.toContain('--finding edit:');
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
// Value: protects=an owner's edit:<path> ruling on an edit after the read-only final review is honoured by the plan as finish
|
||||
// honours it, so the ruled edit ships as a note and only the targeted reader receipt write asks for, or nothing, follows;
|
||||
// fails_when=the plan still counts the ruled range as a fix (FIX_RANGE runtime_lines>0, NEXT: stop or voices, GST-3814 on
|
||||
// #4819), or a ruling clears a path it does not name or bytes edited after it; seam=bin/gstack-review-plan --range-base reading
|
||||
// the approval record
|
||||
describe('gstack-review-plan honours edit rulings in the fix range (GST-3814)', () => {
|
||||
const env = (r: { state: string }) => { const e: NodeJS.ProcessEnv = { ...process.env, GSTACK_STATE_ROOT: r.state, GSTACK_APPROVALS_MIRROR: '0' }; delete e.GSTACK_APPROVALS_DIR; return e; };
|
||||
const plan = (r: { dir: string; state: string }, args: string[]) => spawnSync(BIN, ['--base', 'main', '--gate-tagged', '0', ...args], { cwd: r.dir, encoding: 'utf8', timeout: 60_000, env: env(r) });
|
||||
const rule = (r: { dir: string; state: string }, file: string, head: string) => spawnSync(path.join(path.dirname(BIN), 'gstack-approvals'), ['rule', '--finding', `edit:${file}`, '--head', head, '--reason', 'the docs-audit rename after the final review ships as a disclosed note', '--words', 'ship it with the note', '--by', 'GStack Minder (GSTA-36)'], { cwd: r.dir, encoding: 'utf8', timeout: 60_000, env: env(r) });
|
||||
const after = ['--pass', '3', '--last', 'full', '--fixed-below'];
|
||||
function edited(files: Record<string, string>, message = 'docs audit edit after the final review') {
|
||||
const r = repo({ 'src/a.ts': 'export const a = 1;\n', 'src/b.ts': 'export const b = 1;\n' });
|
||||
const git = (...a: string[]) => spawnSync('git', a, { cwd: r.dir, encoding: 'utf8', timeout: 10_000 }).stdout.trim();
|
||||
const passHead = git('rev-parse', 'HEAD');
|
||||
for (const [p, text] of Object.entries(files)) fs.appendFileSync(path.join(r.dir, p), text);
|
||||
git('add', '.'); git('commit', '-qm', message);
|
||||
return { r, git, passHead, head: git('rev-parse', 'HEAD') };
|
||||
}
|
||||
test('every path ruled at the head: the range plans as no fix and the stop is gone', () => {
|
||||
const { r, passHead, head } = edited({ 'src/a.ts': 'export const c = 3;\n' });
|
||||
expect(plan(r, [...after, '--range-base', passHead]).stdout).toMatch(/^NEXT: stop \(a fix followed the read-only final review/m);
|
||||
expect(rule(r, 'src/a.ts', head).status).toBe(0);
|
||||
const p = plan(r, [...after, '--range-base', passHead]);
|
||||
expect(p.status, p.stderr).toBe(0);
|
||||
expect(p.stdout).toMatch(new RegExp(`^RULED_EDIT: src/a\\.ts \\(ruled at ${head.slice(0, 12)} by GStack Minder \\(GSTA-36\\), approval a-[0-9a-f]{12}\\)$`, 'm'));
|
||||
expect(p.stdout).toContain(`FIX_RANGE: runtime_lines=0 base=${passHead} ruled=1`);
|
||||
expect(p.stdout).toMatch(/^NEXT: done \(every edit since --range-base is ruled a note \(RULED_EDIT\)/m);
|
||||
expect(p.stdout).not.toContain("Captain decides");
|
||||
expect(JSON.parse(plan(r, [...after, '--range-base', passHead, '--json']).stdout).fix_range).toMatchObject({ runtime_lines: 0, ruled: ['src/a.ts'] });
|
||||
}, 60_000);
|
||||
test('every path ruled on a targeted-class diff: the one targeted reader reads HEAD, since no record covers the ruled bytes', () => {
|
||||
const { r, passHead, head } = edited({ 'src/a.ts': 'export const c = 3;\n' });
|
||||
expect(rule(r, 'src/a.ts', head).status).toBe(0);
|
||||
const p = spawnSync(BIN, ['--base', 'main', '--gate-tagged', '1', ...after, '--range-base', passHead], { cwd: r.dir, encoding: 'utf8', timeout: 60_000, env: env(r) });
|
||||
expect(p.stdout).toContain('TARGETED: classes=gate');
|
||||
expect(p.stdout).toMatch(/^NEXT: targeted \(the loop is done and every edit since --range-base is ruled a note, but no targeted record covers the ruled bytes: one targeted reader reads HEAD/m);
|
||||
expect(p.stdout).toMatch(/^DISPATCH: targeted targeted /m);
|
||||
}, 60_000);
|
||||
test('a gate finding no file ruling covers (a CI skip marker in the commit message) keeps the stop', () => {
|
||||
const { r, passHead, head } = edited({ 'src/a.ts': 'export const c = 3;\n' }, 'docs audit edit [skip ci]');
|
||||
expect(rule(r, 'src/a.ts', head).status).toBe(0);
|
||||
const p = plan(r, [...after, '--range-base', passHead]);
|
||||
expect(p.stdout).toContain('RULED_EDIT: src/a.ts');
|
||||
expect(p.stdout).toMatch(/^NEXT: stop \(a fix followed the read-only final review/m);
|
||||
}, 60_000);
|
||||
test('a path with no ruling, or edited again after its ruling, still stops', () => {
|
||||
const partial = edited({ 'src/a.ts': 'export const c = 3;\n', 'src/b.ts': 'export const d = 4;\n' });
|
||||
expect(rule(partial.r, 'src/a.ts', partial.head).status).toBe(0);
|
||||
const p = plan(partial.r, [...after, '--range-base', partial.passHead]);
|
||||
expect(p.stdout).toMatch(/^NEXT: stop \(a fix followed the read-only final review/m);
|
||||
expect(p.stdout).toContain('RULED_EDIT: src/a.ts');
|
||||
const later = edited({ 'src/a.ts': 'export const c = 3;\n' });
|
||||
expect(rule(later.r, 'src/a.ts', later.head).status).toBe(0);
|
||||
fs.appendFileSync(path.join(later.r.dir, 'src/a.ts'), 'export const e = 5;\n'); later.git('commit', '-qam', 'edit it again');
|
||||
const q = plan(later.r, [...after, '--range-base', later.passHead]);
|
||||
expect(q.stdout).toMatch(/^NEXT: stop \(a fix followed the read-only final review/m);
|
||||
expect(q.stdout).toContain('RULED_EDIT_REFUSED: src/a.ts (');
|
||||
expect(q.stdout).not.toMatch(/^RULED_EDIT: /m);
|
||||
}, 60_000);
|
||||
});
|
||||
@@ -76,7 +76,7 @@ describe('PR round cap', () => {
|
||||
for (const roundGrant of [undefined, 'a-000000000001']) {
|
||||
const stop = nextStep(h({ priorFull: 3, fullPasses: 1, last: 'full', fixedBlocking: true, roundGrant }), 'standard');
|
||||
expect(stop.step).toBe('stop');
|
||||
expect(stop.reason).toContain("the lane's Captain decides (ship with the note, park, or keep the fix and run /ship again for one more read-only full review of the final head)");
|
||||
expect(stop.reason).toContain("the lane's Captain decides (ship with the note, park, or keep the fix and run /gstack-ship again for one more read-only full review of the final head)");
|
||||
expect(stop.reason).not.toContain('fix-check grant');
|
||||
expect(stop.reason).not.toContain('does not buy a fix round');
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ describe('finish honours an edit ruling after the final review (GST-3775)', () =
|
||||
for (const p of ['test/x.test.ts', routed]) expect(rule(f, p, stopHead).status).toBe(0);
|
||||
const r = finish(f, reviewed, post);
|
||||
expect([r.status, r.stdout]).toEqual([3, expect.stringContaining(`${STOPPED} (${routed})`)]);
|
||||
expect(lineOf(r.stdout, 'RULED_EDIT_REFUSED')).toBe(`RULED_EDIT_REFUSED: ${routed} (no file at ${stopHead.slice(0, 12)}: a ruling covers a file git holds under this spelling, never a deletion; keep the edit and run /ship again, docs/ship-policy.md#ruled-edits)`);
|
||||
expect(lineOf(r.stdout, 'RULED_EDIT_REFUSED')).toBe(`RULED_EDIT_REFUSED: ${routed} (no file at ${stopHead.slice(0, 12)}: a ruling covers a file git holds under this spelling, never a deletion; keep the edit and run /gstack-ship again, docs/ship-policy.md#ruled-edits)`);
|
||||
expect(r.stdout).toContain('RULED_EDIT: test/x.test.ts (');
|
||||
expect(r.stdout).toMatch(new RegExp(`^RULED_NOTE: edit:test/\\uFFFDy\\.test\\.ts at .* \\(no RULED_EDIT at this head; not applied\\)$`, 'm'));
|
||||
});
|
||||
|
||||
@@ -66,7 +66,7 @@ function founderstar(resolvedSave = 84, baseBlock = 0) {
|
||||
return { ...x, head, sides };
|
||||
}
|
||||
|
||||
const scopedPacket = (err: string) => /one fix-check reviewer reads (\S+), then rerun carry/.exec(err)?.[1];
|
||||
const scopedPacket = (err: string) => /one scoped reader \(not a review round\) reads (\S+), then rerun carry/.exec(err)?.[1];
|
||||
const eligible = (err: string) => /^RECHECK: advisory range_diff_lines=(\d+) range_diff_sha256=([0-9a-f]{64}) packet=(\S+);/m.exec(err);
|
||||
const recordAt = (f: ShipFx, name: string, v: object) => { const file = path.join(f.root, name); fs.writeFileSync(file, JSON.stringify(v)); return file; };
|
||||
|
||||
|
||||
@@ -642,7 +642,7 @@ describe('preflight carry route for a spliced hunk (GST-442)', () => {
|
||||
f.gh(`case "$1 $2" in "pr list") echo 9 ;; "pr view") cat '${view}' ;; *) exit 1 ;; esac`);
|
||||
const r = f.run(PREFLIGHT, ['--base', 'main']);
|
||||
expect(lineOf(r.stdout, 'CARRY')).toBe('CARRY: refused (RECEIPT_CARRY_SCOPED_REVIEW)');
|
||||
expect(r.stdout).toMatch(/^NEXT: carry route \(Step 1\.4\): .*fix what the base merge broke.*commit and push.*writes the packet.*one fix-check reviewer.*--scoped-review <record\.json>/m);
|
||||
expect(r.stdout).toMatch(/^NEXT: carry route \(Step 1\.4\): .*fix what the base merge broke.*commit and push.*writes the packet.*one scoped reader \(not a review round\).*--scoped-review <record\.json>/m);
|
||||
expect(fs.existsSync(path.join(f.work, '.git', 'gstack', `scoped-review-${head.slice(0, 12)}.md`))).toBe(false);
|
||||
const wrote = f.run(path.join(BIN, 'gstack-ship-receipt'), ['carry', '--pr', '9', '--base', 'main']);
|
||||
expect([wrote.status, fs.existsSync(path.join(f.work, '.git', 'gstack', `scoped-review-${head.slice(0, 12)}.md`))]).toEqual([EXIT.refused, true]);
|
||||
|
||||
Reference in new issue
Block a user