Skip to content

fix: improve Radius CLI installer error output - #12799

Draft
brooke-hamilton wants to merge 5 commits into
mainfrom
brooke-hamilton-expose-install-errors
Draft

fix: improve Radius CLI installer error output#12799
brooke-hamilton wants to merge 5 commits into
mainfrom
brooke-hamilton-expose-install-errors

Conversation

@brooke-hamilton

@brooke-hamilton brooke-hamilton commented Aug 24, 2026

Copy link
Copy Markdown
Member

Summary

Preserves the underlying error output when Radius CLI installation fails, both in the long-running workflow and when users run deploy/install.sh locally.

Reason for change

The failed workflow only logged Failed to install Radius CLI because network diagnostics were suppressed or discarded. The installation path now keeps errors visible while fetching the installer, resolving the latest release, and downloading the CLI artifact. Other installation commands already write their errors to stderr.

Fixes #12794

How to test

  • Run deploy/test-install.sh (25 tests, including transport, API-response, and artifact-download error coverage).
  • Run shellcheck deploy/install.sh deploy/test-install.sh.

File change summary

File Summary of change
.github/workflows/long-running-azure.yaml Uses Bash pipeline failure handling and preserves wget errors while fetching the installer.
deploy/install.sh Preserves HTTP client diagnostics, logs unexpected GitHub API responses, and reports artifact download failures.
deploy/test-install.sh Verifies that transport errors, API error responses, and artifact download errors appear in installer output.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings August 24, 2026 14:15
@brooke-hamilton
brooke-hamilton requested review from a team as code owners August 24, 2026 14:15
@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Improves the Radius CLI installer and related automation to surface native HTTP-client diagnostics (curl/wget) during release discovery and artifact downloads, and adds regression coverage to prevent silent failures.

Changes:

  • Switch installer curl/wget invocations to options that surface HTTP/client failures (e.g., curl --fail --show-error).
  • Make the long-running Azure workflow’s installer download step fail visibly when the wget | bash pipeline fails.
  • Add an integration-style regression test to ensure a simulated curl HTTP error is emitted and results in a non-zero installer exit.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
deploy/test-install.sh Adds a regression test that validates curl HTTP errors are visible and cause installer failure.
deploy/install.sh Updates release discovery and artifact downloads to preserve native curl/wget diagnostics on failure.
.github/workflows/long-running-azure.yaml Ensures the workflow fails when the installer script download pipeline fails and keeps wget output non-silent.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread deploy/test-install.sh Outdated
Comment thread deploy/install.sh Outdated
@github-actions

github-actions Bot commented Aug 24, 2026

Copy link
Copy Markdown

Unit Tests

    2 files  ±0    459 suites  ±0   5m 59s ⏱️ - 1m 53s
6 391 tests ±0  6 389 ✅ ±0  2 💤 ±0  0 ❌ ±0 
7 649 runs  ±0  7 647 ✅ ±0  2 💤 ±0  0 ❌ ±0 

Results for commit 3cda7db. ± Comparison against base commit a87146c.

♻️ This comment has been updated with latest results.

@codecov

codecov Bot commented Aug 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 54.16%. Comparing base (a87146c) to head (3cda7db).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12799      +/-   ##
==========================================
- Coverage   54.19%   54.16%   -0.03%     
==========================================
  Files         774      774              
  Lines       52113    52113              
==========================================
- Hits        28242    28229      -13     
- Misses      21223    21231       +8     
- Partials     2648     2653       +5     

☔ View full report in Codecov by Harness.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

brooke-hamilton and others added 2 commits August 24, 2026 10:41
Preserve the GitHub API response body and HTTP status when querying releases, so causes such as rate limiting are visible instead of only 'Failed to install Radius CLI'.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>
Fetch the releases response before parsing it so curl and wget errors remain visible and API error bodies can be logged when no release is found.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: cbf370f4-2b60-4355-a3c8-57e0fc7449c7
Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>
@brooke-hamilton
brooke-hamilton requested a lite review from Copilot August 24, 2026 14:54
@brooke-hamilton brooke-hamilton changed the title Improve Radius CLI installer error output fix: improve Radius CLI installer error output Aug 24, 2026
@brooke-hamilton
brooke-hamilton marked this pull request as draft August 24, 2026 15:09
Preserve errors while fetching the installer, resolving the latest release, and downloading the CLI artifact.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: cbf370f4-2b60-4355-a3c8-57e0fc7449c7
Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Comment thread deploy/test-install.sh
@github-actions

github-actions Bot commented Aug 24, 2026

Copy link
Copy Markdown

Functional Tests - daprrp-noncloud

26 tests  ±0   26 ✅ ±0   13m 27s ⏱️ -18s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit 3cda7db. ± Comparison against base commit a87146c.

♻️ This comment has been updated with latest results.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: cbf370f4-2b60-4355-a3c8-57e0fc7449c7
Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com>
@radius-functional-tests

radius-functional-tests Bot commented Aug 24, 2026

Copy link
Copy Markdown

Radius functional test overview

🔍 Go to test action run

Click here to see the test run details
Name Value
Repository radius-project/radius
Commit ref 3cda7db
Unique ID func024db3b599
Image tag pr-func024db3b599
  • Dapr: 1.14.4
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.3.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/testrecipes/test-bicep-recipes/<name>:pr-func024db3b599
  • Terraform recipe location http://tf-module-server.radius-test-tf-module-server.svc.cluster.local/<name>.zip (in cluster)
  • applications-rp test image location: ghcr.io/radius-project/dev/applications-rp:pr-func024db3b599
  • dynamic-rp test image location: ghcr.io/radius-project/dev/dynamic-rp:pr-func024db3b599
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-func024db3b599
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-func024db3b599
  • deployment-engine test image location: ghcr.io/radius-project/deployment-engine:latest

Test Status

⌛ Building Radius and pushing container images for functional tests...
✅ Container images build succeeded
⌛ Publishing Bicep Recipes for functional tests...
✅ Recipe publishing succeeded
⌛ Starting corerp-cloud functional tests...
⌛ Starting ucp-cloud functional tests...
✅ ucp-cloud functional tests succeeded
✅ corerp-cloud functional tests succeeded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scheduled long running test did not complete successfully - Run ID: 32566727824

2 participants