Skip to content

CI: TestSetupCLIAction failing - missing expected strings in install.sh #13772

@Mossaka

Description

@Mossaka

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:

  1. Line 54: Expects both "No version specified" AND "fetching latest" in the script

    • Script has: "No version specified, using 'latest'..."
    • Script missing: "fetching latest"
  2. 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

  1. Update the test to match the actual strings in the script
  2. 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)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions