Skip to content

fix(build): handle rate limiting causing failures in build#958

Open
sicoyle wants to merge 6 commits intodapr:mainfrom
sicoyle:fix-flakey-build-step-3.14
Open

fix(build): handle rate limiting causing failures in build#958
sicoyle wants to merge 6 commits intodapr:mainfrom
sicoyle:fix-flakey-build-step-3.14

Conversation

@sicoyle
Copy link
Contributor

@sicoyle sicoyle commented Mar 13, 2026

Description

There have been several PRs such as this one with 3.14 failing the build on the validation of the quickstarts: https://github.com/dapr/python-sdk/actions/runs/23053657978/job/66961073927

This is because curl fetches the latest version and gets rate-limited since this is unathenticated calls, and then DAPR_CLI_VER is an empty string, which yields the broken zip URL of download//dapr_linux_amd64.tar.gz.

This PR makes the curl authenticated which should increase our rate limits and use proper json parsing with jq and more reliable checks for proper installation.

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #[issue number]

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

Signed-off-by: Samantha Coyle <sam@diagrid.io>
@sicoyle sicoyle requested review from a team as code owners March 13, 2026 13:53
Copilot AI review requested due to automatic review settings March 13, 2026 13:53
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the CI workflow that validates examples to be more resilient to GitHub API rate limiting when resolving “latest” Dapr runtime/CLI versions, which was causing broken download URLs and failing builds.

Changes:

  • Uses authenticated GitHub API requests (via GITHUB_TOKEN) and jq to reliably resolve the latest Dapr Runtime and Dapr CLI release tags.
  • Adds explicit checks to fail fast when a release version cannot be resolved.
  • Replaces the CLI install script usage with a direct download + extract of the Dapr CLI binary.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@codecov
Copy link

codecov bot commented Mar 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.99%. Comparing base (bffb749) to head (725723d).
⚠️ Report is 90 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #958      +/-   ##
==========================================
+ Coverage   86.63%   88.99%   +2.36%     
==========================================
  Files          84      103      +19     
  Lines        4473     7340    +2867     
==========================================
+ Hits         3875     6532    +2657     
- Misses        598      808     +210     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

sicoyle and others added 5 commits March 13, 2026 09:07
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Sam <sam@diagrid.io>
Signed-off-by: Samantha Coyle <sam@diagrid.io>
Signed-off-by: Samantha Coyle <sam@diagrid.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants