You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9d13278
Browse filesBrowse the repository at this point in the historyBrowse files
/** How long a child `--self-test` this self-test spawns may run before it is cut and named (#33603). */
4183
-
constCHILD_SELF_TEST_TIMEOUT_MS=120_000;
4183
+
constCHILD_RUN_TIMEOUT_MS=120_000;
4184
4184
4185
4185
/** Why a spawned child self-test did not pass, in one line: a timeout or signal, and the child's own ✗ lines. Pure. */
4186
-
functionchildSelfTestDetail(result){
4187
-
constcut=result?.error?.code==='ETIMEDOUT' ? `timed out after ${CHILD_SELF_TEST_TIMEOUT_MS} ms` : result?.error ? `did not run (${result.error.code??result.error.message})` : null;
4186
+
functionchildRunDetail(result){
4187
+
constcut=result?.error?.code==='ETIMEDOUT' ? `timed out after ${CHILD_RUN_TIMEOUT_MS} ms` : result?.error ? `did not run (${result.error.code??result.error.message})` : null;
@@ -5813,10 +5813,10 @@ export function selfTest() {
5813
5813
t('⭐ a card BODY is untouched — the check is a record\'s, and a record is a comment',judgeBody(REC(CONTRACT_REVIEW_TIER_NAME),{mode: 'body'},NOW_MS).ok);
5814
5814
t('the CLI carries --tier-evidence=PATH on a comment, and leaves it null when absent',parseOptions(['--comment=1',`--tier-evidence=${atTier}`]).options.tierEvidence===atTier&&parseOptions(['--comment=1']).options.tierEvidence===null);
5815
5815
t('⛔ --tier-evidence with --body, or with no path, is refused',parseOptions(['--body=1','--tier-evidence=x']).ok===false&&parseOptions(['--comment=1','--tier-evidence=']).ok===false);
t('the verifier\'s own --self-test runs HERE, so CI runs it inside check:pm-post-stamped: exit 0 and its success line',verifier.status===0&&/✓verify-review-tierself-test:\d+casespass/u.test(verifier.stdout),childSelfTestDetail(verifier));
5818
-
t('a child self-test that hangs is cut at its timeout and named, and a failing one relays its own ✗ lines',/timedoutafter\d+ms/u.test(childSelfTestDetail({status: null,signal: 'SIGTERM',error: {code: 'ETIMEDOUT'},stdout: '',stderr: ''}))&&
5819
-
childSelfTestDetail({status: 1,signal: null,error: undefined,stdout: ' ✓ a\n',stderr: ' ✗ case b\n ✗ case c\n✗ verify-review-tier self-test: 2 failure(s)\n'}).includes('✗ case b | ✗ case c'));
t('the verifier\'s own --self-test runs HERE, so CI runs it inside check:pm-post-stamped: exit 0 and its success line',verifier.status===0&&/✓verify-review-tierself-test:\d+casespass/u.test(verifier.stdout),childRunDetail(verifier));
5818
+
t('a child self-test that hangs is cut at its timeout and named, and a failing one relays its own ✗ lines',/timedoutafter\d+ms/u.test(childRunDetail({status: null,signal: 'SIGTERM',error: {code: 'ETIMEDOUT'},stdout: '',stderr: ''}))&&
5819
+
childRunDetail({status: 1,signal: null,error: undefined,stdout: ' ✓ a\n',stderr: ' ✗ case b\n ✗ case c\n✗ verify-review-tier self-test: 2 failure(s)\n'}).includes('✗ case b | ✗ case c'));
5820
5820
constown=readFileSync(SELF_PATH,'utf8');
5821
5821
t('structural: the transcript judge is imported from verify-review-tier.mjs, ⛔ never restated here',/import\{[^}]*\bverifyReviewTranscriptFile\b[^}]*\}from'\.\/verify-review-tier\.mjs';/u.test(own)&&!/function\s+(judgeReviewTranscript|verifyReviewTranscriptFile)\b/u.test(own));
0 commit comments