Skip to content

test(standard): retry a restore while the packer holds the lock - #425

Merged
aitianshi merged 1 commit into
mainfrom
fix/issue-419
Nov 25, 2026
Merged

aitianshi merged 1 commit into
mainfrom
fix/issue-419

Conversation

@aitianshi

Copy link
Copy Markdown
Collaborator

Closes #419

What

  • test_an_ended_run_is_packed restored once its files looked packed. The packer was still syncing and held the folder's lock: restore answered busy, 0 != 3.
  • The test now retries while restore answers busy, up to LIMIT, then expects {"restored": 3, "failed": 0}.

Verified

  • test_osworld2_api_logs.py, 48 runs, 24 at a time, TMPDIR on ext4. Before: 46 and 22 of 48 failed. After: 0 of 144, three batches.
  • With /tmp on tmpfs the failure does not reproduce: 0 of 48 before, 0 of 96 after.
  • Not run: the rest of the backend suite.

Risk

  • A lock never released now fails after 20 s instead of at once.
  • Undo: revert.

Agents

  • Claude Code, Opus 5.5: code, tests

@aitianshi
aitianshi marked this pull request as ready for review November 25, 2026 13:59
@github-actions

Copy link
Copy Markdown

🟢 PR judge · 5 of 5 yes · #425 ↔ #419

Merge risk 🟢 MINOR the judge's reading of the diff
Depth 🟢 LOW no path reaches past the surface
Question Verdict
Changes do what the issue asks · 2 of 2 criteria ✅ yes
Issue and pull request describe the same change ✅ yes
Description matches the diff ✅ yes
Diff stays in scope ✅ yes
Risk named in the description ✅ yes
Before and after shown –
Acceptance criteria, 2 of 2 met
# Criterion Verdict
1 The test retries while restore answers busy, up to its LIMIT ✅ met
2 48 runs, 24 at a time, pass ✅ met
Checks the script runs itself, 4 of 4 pass
No machine attribution trailer in the commits or the description ✓
New code under app/, docs/, .github/, .agents/ or .claude/ ✓
No Flask import under the backend package ✓
No key-shaped string in the diff ✓

@github-actions github-actions Bot added the needs review Tests pass, no conflict, no verdict on its latest commit label Nov 25, 2026
@aitianshi
aitianshi merged commit 10cda80 into main Nov 25, 2026
5 of 7 checks passed
@aitianshi
aitianshi deleted the fix/issue-419 branch November 25, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs review Tests pass, no conflict, no verdict on its latest commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_an_ended_run_is_packed fails under load: it restores while the packer holds the lock

1 participant