Repository navigation
ci: treat a too-early Context7 refresh as a skip - #65
Merged
Merged
Conversation
The first run of the refresh workflow failed. curl timed out after 60
seconds with no response, and later calls returned HTTP 400
{"error":"too-early","message":"... Minimum 10 days required between
updates."}. Context7 limits how often one library refreshes, so the
workflow failed on most pushes to main.
Allow 180 seconds for the response, print the body, and end with a
workflow notice when Context7 answers too-early. Any other non-200
answer still fails the job. Against the live API, the old script
exited 56 on the too-early answer and the new script exits 0 with the
notice.
|
Review feedback on solid-objects-js#65. The too-early check matched
the exact string "error":"too-early", so valid JSON with other
spacing, such as {"error": "too-early"}, would fail the job instead
of skipping. Read the field with jq. On four sample bodies, grep
missed the spaced form and jq skipped it, and both still fail on
another error and on a body that is not JSON. Against the live API
the workflow script still exits 0 with the notice.
Owner
Author
|
@greptileai Please review the latest commit 8362900. It reads the error field with jq, as suggested, so harmless JSON spacing no longer fails the job. |
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.
Why
The first run of the Context7 refresh workflow from #64 failed on
main: curl timed out after 60 seconds with no response. Later calls returned HTTP 400{"error":"too-early","message":"Too early to refresh the project. Last update was 0 days ago. Minimum 10 days required between updates."}. Context7 limits how often one library refreshes, so the workflow would fail on most pushes tomain.What changes
too-earlyanswer ends the job with a workflow notice instead of a failure.Validation
actionlintand Prettier pass.