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_version
TestSetupCLIAction/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"
-
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
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)
Summary
The
TestSetupCLIActionintegration test is failing on main branch and all PRs. The test expects certain strings inactions/setup-cli/install.shthat don't exist.Failing Tests
TestSetupCLIAction/can_fetch_latest_without_input_versionTestSetupCLIAction/has_release_validationRoot Cause
The test in
pkg/cli/setup_cli_action_integration_test.gochecks for specific strings:Line 54: Expects both
"No version specified"AND"fetching latest"in the script"No version specified, using 'latest'...""fetching latest"Line 87: Expects
"Validating release"in the scriptEvidence
Fix Options
Affected CI Runs
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)