-
Notifications
You must be signed in to change notification settings - Fork 89
Closed
Labels
Description
Summary
The TestSetupCLIAction integration test is failing on main branch and all PRs. The test expects certain strings in actions/setup-cli/install.sh that don't exist.
Failing Tests
TestSetupCLIAction/can_fetch_latest_without_input_versionTestSetupCLIAction/has_release_validation
Root Cause
The test in pkg/cli/setup_cli_action_integration_test.go checks for specific strings:
-
Line 54: Expects both
"No version specified"AND"fetching latest"in the script- Script has:
"No version specified, using 'latest'..." - Script missing:
"fetching latest"
- Script has:
-
Line 87: Expects
"Validating release"in the script- Script does not contain this string
Evidence
setup_cli_action_integration_test.go:55: Script should support fetching latest release when no version is provided
setup_cli_action_integration_test.go:88: Script does not include release validation
Fix Options
- Update the test to match the actual strings in the script
- Update the script to include the expected strings
Affected CI Runs
- Main branch: https://github.com/github/gh-aw/actions/runs/21681463772
- Multiple recent runs show this same failure
Related Files
pkg/cli/setup_cli_action_integration_test.go(test)actions/setup-cli/install.sh(script being tested)install-gh-aw.sh(source script that gets synced)
Reactions are currently unavailable