mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-22 08:01:32 +01:00
Free-suite CI survives a slow Ubuntu mirror, and four flaky tests and eval checks stop failing (GST-3206) (#4530)
Free-suite CI stops failing before any test runs when archive.ubuntu.com is slow, and four tests that failed and then passed in the last day are fixed at their cause. Why: 27 setup failures and 5 flaky reds on 2026-11-19 cost reruns and blocked READY checks across PRs and main. Nothing to do: the first run on each runner image fills the new package cache. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
17303862d0
commit
3cccf074ad
13 files changed
+338
-16
No files matched your search
+1
-1
@@ -113,7 +113,7 @@ export function recordRoot(env: NodeJS.ProcessEnv = process.env): Result<{ root:
|
||||
if (env.GSTACK_CAPY !== '1') return { root: path.join(resolveStateRoot(env), 'first-use') };
|
||||
const drive = path.join(env.HOME || os.homedir(), '.capy', 'drive');
|
||||
let found: string[] = [];
|
||||
try { found = fs.readdirSync(drive).filter(d => d.startsWith('user-') && fs.statSync(path.join(drive, d)).isDirectory()); } catch { /* no drive mounted */ }
|
||||
try { found = fs.readdirSync(drive).filter(d => d.startsWith('user-') && fs.statSync(path.join(drive, d)).isDirectory()).sort(); } catch { /* no drive mounted */ }
|
||||
if (found.length !== 1) return fail('FIRST_USE_NO_PRIVATE_DRIVE', found.length ? `${found.length} user-level drive folders (${found.join(', ')})` : `no user-level drive folder under ${drive}`);
|
||||
return { root: path.join(drive, found[0]!, 'first-use') };
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user