Add timeout and retry/backoff to Cloudsmith API requests#33
Draft
Add timeout and retry/backoff to Cloudsmith API requests#33
Conversation
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Initial plan * fix(readme): wrap repository structure in fenced code block Co-authored-by: ciaracarey <84123925+ciaracarey@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: ciaracarey <84123925+ciaracarey@users.noreply.github.com>
* Initial plan * Fix spelling: "Specialised" -> "Specialized" in README.md Co-authored-by: ciaracarey <84123925+ciaracarey@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: ciaracarey <84123925+ciaracarey@users.noreply.github.com>
* Initial plan * Remove import rego.v1 from advanced/huggingface-recipes policies Co-authored-by: ciaracarey <84123925+ciaracarey@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: ciaracarey <84123925+ciaracarey@users.noreply.github.com>
Added section on GitOps workflow for managing policy exemptions.
chore: tidy rego based on regal output
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
add rego unit tests
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Merged
Co-authored-by: ciaracarey <84123925+ciaracarey@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] WIP Address feedback on Epm baseline refactor PR
Add timeout and retry/backoff to Cloudsmith API requests
Mar 11, 2026
3185b50 to
aa38feb
Compare
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.
requests.getandrequests.putinexemptions/update_policy.pyhad no timeout, allowing CI to hang indefinitely if the Cloudsmith API stalled.Changes
REQUEST_TIMEOUT = 30s applied to bothGETandPUTcallsurllib3.util.retry.Retry+HTTPAdapterretries up to 3×on 5xx and connection errors with 0.5 s/1 s/2 s exponential backoff; no new dependencies (bundled withrequests)_sessionbuilt once at module level, avoiding adapter recreation per request🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.