Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion scripts/tests/upload-aliyun-oss-assets.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,12 @@ describe('uploadAssets (integration)', () => {
// Without the bound this test would sit in the shim's 60s hang; the
// kill turns the stall into an ordinary failed attempt, so all three
// attempts happen and the uploader fails loudly instead of hanging.
// The bound must stay above worst-case child-spawn latency: a SIGKILL
// landing before the shim's first appendFileSync loses that attempt's
// log line, so the count below reads short (or the log is never
// created at all) even though all three attempts ran. 400ms did
// exactly that under CPU contention; 2000ms keeps the worst case of
// three kills plus 6s of backoff inside this test's 30s budget.
expect(() =>
uploadAssets(
{
Expand All @@ -204,7 +210,7 @@ describe('uploadAssets (integration)', () => {
config: configPath,
prefix: 'releases/qwen-code/v0.0.0',
},
{ ossutilCommand, ossutilCommandArgs, attemptTimeoutMs: 400 },
{ ossutilCommand, ossutilCommandArgs, attemptTimeoutMs: 2000 },
),
).toThrow(/ossutil failed after 3 attempts/);
const uploadAttempts = fs
Expand Down
Loading