Skip to content

CI: make the Fedora PRoot stale-file test able to fail - #66

Merged
Gajesh2007 merged 1 commit into
mainfrom
ci/fedora-proot-test-fixes
Nov 14, 2026
Merged

Gajesh2007 merged 1 commit into
mainfrom
ci/fedora-proot-test-fixes

Conversation

@Gajesh2007

Copy link
Copy Markdown
Member

Follow-up to #65's review (no CI behaviour change on success):

  • test_a_stale_partial_file_is_removed_before_the_first_attempt could not fail: without the up-front unlink, the first attempt's FileExistsError was caught, the failure path removed the file and the retry succeeded (after a real 5 s sleep). It now patches sleep and asserts exactly one download attempt. With the up-front unlink removed, the test fails (mutation checked).
  • A step that times out is now recorded in the evidence as "exit": "timeout".

ruff 0.16.10 is clean, and all 21 offline tests pass (the Fedora job runs them before the build).

🤖 Generated with Claude Code

Review follow-up to #65: the stale .part test passed even without the
up-front unlink, because the first attempt's FileExistsError was caught,
the failure path removed the file and the retry succeeded (after a real
5-second sleep). It now patches sleep and asserts a single download
attempt; with the up-front unlink removed it fails. A step that times out
is also recorded in the evidence ("exit": "timeout").

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gajesh2007
Gajesh2007 marked this pull request as ready for review November 14, 2026 06:07
@Gajesh2007
Gajesh2007 merged commit c8109cf into main Nov 14, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant