Repository navigation
MAINT: Retry the docs link check once - #4478
Richard Lundeen (richlundeen) merged 7 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟡 Changes recommended
The multiline script in .github/workflows/docs.yml deterministically breaks an existing test that expects the old single-line command; update the test contract to accept the retry loop while preserving strict link-check and step-ordering checks.
1 open issue
What changed in this PR
This PR makes PyRIT’s documentation link check more resilient to transient GitHub 503 responses while retaining strict validation.
Changes:
- Attempts the strict link check up to three times, waiting 60 seconds between failures.
- Emits retry warnings, exits immediately on success, and fails after three unsuccessful attempts.
| File | Description |
|---|---|
.github/workflows/docs.yml |
Adds bounded retries around the documentation link-check command. |
Review effort: Balanced
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Fixed in 707e5eb. The workflow contract retains the strict checker flags, latest/cache gating and ordering. The test now executes the actual retry script with stubbed uv and sleep to cover immediate success, successful retry, and a persistent failure that propagates the final exit code. All 19 documentation-workflow tests pass without network calls or delays. Verified on published commit |
Brings in microsoft#4476 (required, linked and first datasets), microsoft#4478, microsoft#4448 and microsoft#4407 (ty unsound-assignment rule). - pyrit/models/scenario_dataset.py: keep both imports (Self from microsoft#4476, UUID for DatasetExampleReference.example_id). - tests/unit/scenario/foundry/test_assert_policy.py: drop BoundedDatasetSize and ScenarioRunSizeEstimateStatus with main's removed default-estimate test; keep the exact-selection imports. Exact selection is an inline source, so microsoft#4476's min_selected check and the inline FIXED dataset options apply to it unchanged, including the empty resume config. No new ty overrides: the changed pyrit/ files pass the unsound-assignment rule.

Description
The
build-booklink check has been failing on unrelated PRs because github.com intermittently answers CI requests with503 Service Unavailable. Each failing run flags a different set of valid GitHub URLs (for example this run failed only on a PyRIT commit link that resolves fine).