Fix transient errors in nightly rad CLI tests workflow#11194
Draft
Fix transient errors in nightly rad CLI tests workflow#11194
Conversation
- Move GitHub API call to single get-version job instead of once per matrix combination - Add error handling to echo API response when parsing fails - Use jq for more reliable JSON parsing instead of grep/awk/sed - Update shell script to accept RAD_VERSION as optional parameter - Update Makefile to support RAD_VERSION parameter Co-authored-by: brooke-hamilton <45323234+brooke-hamilton@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix transient errors in nightly RAD CLI tests
Fix transient errors in nightly rad CLI tests workflow
Feb 6, 2026
brooke-hamilton
requested changes
Feb 6, 2026
build/test-cli-download.sh
Outdated
| echo "Using provided RAD_VERSION: $RAD_VERSION" | ||
| else | ||
| echo "Fetching latest release version from GitHub API..." | ||
| radReleaseUrl="https://api.github.com/repos/radius-project/radius/releases" |
Member
There was a problem hiding this comment.
@copilot why are you calling the GitHub API in both the workflow and the script? I think you should call it once only.
Contributor
Author
There was a problem hiding this comment.
Good point. Removed the GitHub API call from the shell script in 7437d01. The API is now called only once in the workflow's get-version job, and the script requires RAD_VERSION to be passed as a parameter.
The GitHub API call is now only in the workflow's get-version job. The shell script now requires RAD_VERSION to be provided as a parameter. Co-authored-by: brooke-hamilton <45323234+brooke-hamilton@users.noreply.github.com>
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.
Description
The nightly rad CLI tests workflow was experiencing transient failures when calling the GitHub releases API. Two issues:
Changes:
get-versionjob fetches the release version once, passes it to matrix jobs via outputgrep | awk | sedpipeline withjqtest-cli-download.shnow requiresRAD_VERSIONas a parameter (no longer makes its own API call)Type of change
Contributor checklist
Please verify that the PR meets the following requirements, where applicable:
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.