mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-22 19:29:13 +08:00
test(ql3): harden resource rollback CI watchdog
This commit is contained in:
@@ -17,6 +17,7 @@ const SCRIPT = path.join(
|
|||||||
'scripts/ql3-legacy-shadow-resource-rollback.cjs',
|
'scripts/ql3-legacy-shadow-resource-rollback.cjs',
|
||||||
);
|
);
|
||||||
const NODE_MAJOR = Number(process.versions.node.split('.')[0]);
|
const NODE_MAJOR = Number(process.versions.node.split('.')[0]);
|
||||||
|
const RESOURCE_EVIDENCE_WATCHDOG_MS = 120_000;
|
||||||
|
|
||||||
function execute(profile, mode, samples) {
|
function execute(profile, mode, samples) {
|
||||||
const result = spawnSync(
|
const result = spawnSync(
|
||||||
@@ -33,7 +34,7 @@ function execute(profile, mode, samples) {
|
|||||||
{
|
{
|
||||||
cwd: REPOSITORY_ROOT,
|
cwd: REPOSITORY_ROOT,
|
||||||
encoding: 'utf8',
|
encoding: 'utf8',
|
||||||
timeout: 30_000,
|
timeout: RESOURCE_EVIDENCE_WATCHDOG_MS,
|
||||||
maxBuffer: 128 * 1024,
|
maxBuffer: 128 * 1024,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user