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 2328a39
Browse filesBrowse the repository at this point in the historyBrowse files
if(record.tainted.length>0)refuse(`run ${record.run} has secret values in ${record.tainted.join(', ')}`,'do not attach this run; rerun and attach the new run');
if(incomplete.length>0)refuse(`run ${record.run} has ${count(incomplete.length,'group')} that did not run in full on its settings: ${incomplete.map((group)=>group.label).join('; ')}`,'attach a run in which every group ran on the settings it declares');
61
64
if(!record.results.some((r)=>r.status==='passed'||r.status==='flaky'))refuse(`run ${record.run} passed no specs`,'attach a run whose specs ran and passed');
/** With neither variable set, the instances are standing only because this machine has no Platform credential. */
142
+
consttoThrowaway=`run on a throwaway instance: ${inline||wanted==='standing' ? 'unset CLERK_TEST_KEYS_JSON and VERIFY_INSTANCES=standing' : '`VERIFY_INSTANCES=throwaway {cli} doctor` prints what credential this machine is missing'}`;
if(wanted!==undefined&&wanted!=='standing'&&wanted!=='throwaway')thrownewVerifyFailure('USAGE',`VERIFY_INSTANCES=${wanted} is not standing or throwaway`,'unset VERIFY_INSTANCES, or set it to standing or throwaway');
if(holding)thrownewVerifyFailure('NOT_READY',`this worktree holds throwaway instances, and ${why} asks for the standing ones`,'{cli} down, then rerun');
@@ -156,7 +157,7 @@ export function createInstances(deps: InstancesDeps): Instances {
156
157
return{source: 'throwaway',why: `${describeCredential(open.credential)} reaches the verification workspace ${open.workspace}`};
thrownewVerifyFailure('NOT_READY',`neither ${BACKEND_API_HOSTS.join(' nor ')} accepts the own secret key of ${id}: ${(errorasError).message}`,`${BACKEND_API_FIX}; \`{cli} down\` deletes the instance`);
thrownewVerifyFailure('NOT_READY',`neither ${BACKEND_API_HOSTS.join(' nor ')} accepts the own secret key of ${id}: ${(errorasError).message}`,`${BACKEND_API_FIX}; \`{cli} down\` deletes the instance`);
@@ -316,7 +318,7 @@ export function createInstances(deps: InstancesDeps): Instances {
316
318
const{ settings }=group;
317
319
constinstance=standingStandIn(settings);
318
320
if(instance===null){
319
-
thrownewSettingsRefused(`${settings.askedBy} declares ${settings.label}, and no standing instance has those settings; a standing instance cannot be changed`,'run on a throwaway instance: unset CLERK_TEST_KEYS_JSON and VERIFY_INSTANCES=standing');
321
+
thrownewSettingsRefused(`${settings.askedBy} declares ${settings.label}, and no standing instance has those settings; a standing instance cannot be changed`,toThrowaway);
@@ -328,7 +330,7 @@ export function createInstances(deps: InstancesDeps): Instances {
328
330
};
329
331
constunmet=awaitmissing();
330
332
if(unmet.length>0){
331
-
thrownewSettingsRefused(`${settings.askedBy} declares ${settings.label}, and the standing instance ${instance} does not show it: ${unmet.join('; ')}`,`a standing instance cannot be changed: correct ${instance} in the Clerk dashboard, or run on a throwaway instance by unsetting CLERK_TEST_KEYS_JSON and VERIFY_INSTANCES=standing`);
333
+
thrownewSettingsRefused(`${settings.askedBy} declares ${settings.label}, and the standing instance ${instance} does not show it: ${unmet.join('; ')}`,`a standing instance cannot be changed: correct ${instance} in the Clerk dashboard, or ${toThrowaway}`);
332
334
}
333
335
progress(`settings ${settings.label} on the standing instance ${instance}, which already has it`);
334
336
return{
@@ -344,7 +346,11 @@ export function createInstances(deps: InstancesDeps): Instances {
0 commit comments