CircleCI: Handle 404 errors when fetching job logs#211
Draft
yarikoptic wants to merge 1 commit intomasterfrom
Draft
CircleCI: Handle 404 errors when fetching job logs#211yarikoptic wants to merge 1 commit intomasterfrom
yarikoptic wants to merge 1 commit intomasterfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #211 +/- ##
==========================================
+ Coverage 64.85% 65.39% +0.53%
==========================================
Files 10 10
Lines 1383 1390 +7
Branches 211 212 +1
==========================================
+ Hits 897 909 +12
+ Misses 405 400 -5
Partials 81 81 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Add error handling to gracefully skip CircleCI jobs that return 404 when attempting to fetch v1.1 job details. This prevents crashes when some jobs are no longer accessible via the API. Fixes #210 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> Trying it out on AFNI lead to many jobs skipping: (venv) (tinuous-dev) datalad@smaug:/mnt/datasets/datalad/ci/afni$ grep -i warn /tmp/afni-tinuous-2025.07.25T11.27.01-* /tmp/afni-tinuous-2025.07.25T11.27.01-stderr:2025-07-25T11:27:17-0400 [WARNING ] tinuous: Job 26170 returned 404; skipping logs /tmp/afni-tinuous-2025.07.25T11.27.01-stderr:2025-07-25T11:27:17-0400 [WARNING ] tinuous: Job 26167 returned 404; skipping logs /tmp/afni-tinuous-2025.07.25T11.27.01-stderr:2025-07-25T11:27:17-0400 [WARNING ] tinuous: Job 26169 returned 404; skipping logs /tmp/afni-tinuous-2025.07.25T11.27.01-stderr:2025-07-25T11:27:17-0400 [WARNING ] tinuous: Job 26168 returned 404; skipping logs /tmp/afni-tinuous-2025.07.25T11.27.01-stderr:2025-07-25T11:27:49-0400 [WARNING ] tinuous: Job 26082 returned 404; skipping logs /tmp/afni-tinuous-2025.07.25T11.27.01-stderr:2025-07-25T11:27:49-0400 [WARNING ] tinuous: Job 26083 returned 404; skipping logs /tmp/afni-tinuous-2025.07.25T11.27.01-stderr:2025-07-25T11:27:49-0400 [WARNING ] tinuous: Job 26084 returned 404; skipping logs /tmp/afni-tinuous-2025.07.25T11.27.01-stderr:2025-07-25T11:27:49-0400 [WARNING ] tinuous: Job 26087 returned 404; skipping logs /tmp/afni-tinuous-2025.07.25T11.27.01-stderr:2025-07-25T11:27:49-0400 [WARNING ] tinuous: Job 26085 returned 404; skipping logs /tmp/afni-tinuous-2025.07.25T11.27.01-stderr:2025-07-25T11:27:49-0400 [WARNING ] tinuous: Job 26086 returned 404; skipping logs /tmp/afni-tinuous-2025.07.25T11.27.01-stderr:2025-07-25T11:27:49-0400 [WARNING ] tinuous: Job 26088 returned 404; skipping logs /tmp/afni-tinuous-2025.07.25T11.27.01-stderr:2025-07-25T11:27:51-0400 [WARNING ] tinuous: Job 26076 returned 404; skipping logs /tmp/afni-tinuous-2025.07.25T11.27.01-stderr:2025-07-25T11:27:51-0400 [WARNING ] tinuous: Job 26077 returned 404; skipping logs /tmp/afni-tinuous-2025.07.25T11.27.01-stderr:2025-07-25T11:27:51-0400 [WARNING ] tinuous: Job 26078 returned 404; skipping logs /tmp/afni-tinuous-2025.07.25T11.27.01-stderr:2025-07-25T11:27:51-0400 [WARNING ] tinuous: Job 26079 returned 404; skipping logs /tmp/afni-tinuous-2025.07.25T11.27.01-stderr:2025-07-25T11:27:51-0400 [WARNING ] tinuous: Job 26080 returned 404; skipping logs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add error handling to gracefully skip CircleCI jobs that return 404 when attempting to fetch v1.1 job details. This prevents crashes when some jobs are no longer accessible via the API.
Fixes #210
🤖 Generated with Claude Code
TODOs