← Back to Pull requests

CI: lint-quick: retry the link check #5549

Closed
jandubois closed this pull request without merging on Oct 02, 2026 17:41 UTC
View on GitHub
jandubois jandubois commented on Sep 30, 2026 04:34 UTC
Author

Runs lychee up to three times in "Check hyperlinks", 10 and 20 seconds apart, with a warning annotation before each retry. lychee-action cannot retry, so the step downloads lychee and checks its sha256 itself; Dependabot no longer updates lychee.

Related: #5547

Assisted-by: Claude Opus 5.5

Diff: 28 lines (+24 / -4) across 1 files Reviewer: AkihiroSuda Review duration: 3666m
All Vouch review confidence checks passed
Residual risk 0.06 = Change Risk (0.28) × (1 − Review Confidence (0.80)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.28 · 28 lines diff across 1 files
0.28
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.73 · 5 substantive comment(s)
0.73
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
80%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.201
Ai Authored ai_authored
0.050
Real PR Conversation Timeline
6 items
jandubois jandubois commented on Sep 30, 2026 04:42 UTC
Author

I can't think of a way to keep updating lychee automatically when not using their action. I guess renovate would work, but seems like overkill for a single dependency, and requires a token that can create additional PRs.

lychee put out 6 releases in the last 12 months (0.21.0 through 0.24.2), and none since 2026-05-01, so maybe bumping it every once in a while manually is worth it to get fewer failures? We don't really have to bump it at all unless it starts failing for some intrinsic reason.

AkihiroSuda AkihiroSuda commented on code on Sep 30, 2026 14:52 UTC
Code Review
.github/workflows/lint-quick.yml:1
@@ -44,4 +52,16 @@ jobs:
           --exclude https://x.com
           --exclude https://deepwiki.com
           README.md
-        token: ${{ secrets.GITHUB_TOKEN }}
+        )
+        # lychee does not retry a failed connection, so one briefly unreachable
+        # host fails the whole check. Run it again after a pause.
+        for attempt in 1 2 3; do

This could be rather implemented in the upstream action?

jandubois jandubois commented on code on Oct 02, 2026 00:46 UTC
Code Review
.github/workflows/lint-quick.yml:1
@@ -44,4 +52,16 @@ jobs:
           --exclude https://x.com
           --exclude https://deepwiki.com
           README.md
-        token: ${{ secrets.GITHUB_TOKEN }}
+        )
+        # lychee does not retry a failed connection, so one briefly unreachable
+        # host fails the whole check. Run it again after a pause.
+        for attempt in 1 2 3; do

I don't think it belongs in the action; it should be a flag on lychee itself because it already does implement retries, just not for connection failures.

This almost directly covers it: https://github.com/lycheeverse/lychee/issues/2297

This is slightly related: https://github.com/lycheeverse/lychee/issues/2193

I do not plan to engage with these issues. I would merge the current PR as a workaround, and remove it again if/when lychee implements this natively.

Otherwise we can also just close this PR and continue to rerun failed tests manually.

AkihiroSuda AkihiroSuda commented on code on Oct 02, 2026 08:43 UTC
Code Review
.github/workflows/lint-quick.yml:1
@@ -44,4 +52,16 @@ jobs:
           --exclude https://x.com
           --exclude https://deepwiki.com
           README.md
-        token: ${{ secrets.GITHUB_TOKEN }}
+        )
+        # lychee does not retry a failed connection, so one briefly unreachable
+        # host fails the whole check. Run it again after a pause.
+        for attempt in 1 2 3; do

Otherwise we can also just close this PR and continue to rerun failed tests manually.

I prefer this.

jandubois jandubois commented on code on Oct 02, 2026 17:41 UTC
Code Review
.github/workflows/lint-quick.yml:1
@@ -44,4 +52,16 @@ jobs:
           --exclude https://x.com
           --exclude https://deepwiki.com
           README.md
-        token: ${{ secrets.GITHUB_TOKEN }}
+        )
+        # lychee does not retry a failed connection, so one briefly unreachable
+        # host fails the whole check. Run it again after a pause.
+        for attempt in 1 2 3; do

Fine with me; I just created this because you wrote "check hyperlinks is too flakey".

Reviewers
Assignees
jandubois jandubois
Labels
risk: low confidence: 80.4% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 28.1% (LOW) · Higher = larger blast radius
28.1%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 80.4% · Lower = rushed or shallow review
80.4%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 5.5% · Safe to merge
5.5%
Repository