fix: reduce task startup overhead and lazy-load notifications (#3080)

This commit is contained in:
whyour
2026-09-28 23:41:31 +08:00
committed by GitHub
parent f168efcdae
commit bc0f35e3f7
7 changed files with 277 additions and 8 deletions
+6 -2
View File
@@ -51,7 +51,11 @@ function fixture(t) {
fs.existsSync(env.CALLS)
? fs.readFileSync(env.CALLS, 'utf8').trim().split('\n').length
: 0;
const cache = path.join(env.dir_tmp, `pnpm-root-${process.getuid()}.cache`);
const key = run({}, '. "$HELPER"; ql_node_path_cache_key').stdout.trim();
const cache = path.join(
env.dir_tmp,
`pnpm-root-${process.getuid()}-${key.replace(' ', '-')}.cache`,
);
return {
root,
bin,
@@ -61,7 +65,7 @@ function fixture(t) {
asyncRun,
count,
cache,
lock: cache + '.lock',
lock: path.join(env.dir_tmp, `pnpm-root-${process.getuid()}.lock`),
};
}
function check(r, output = '/test/global/node_modules') {