feat: add skip_install input for pre-installed CLI runners#13
Open
qwen-code-dev-bot wants to merge 1 commit into
Open
feat: add skip_install input for pre-installed CLI runners#13qwen-code-dev-bot wants to merge 1 commit into
qwen-code-dev-bot wants to merge 1 commit into
Conversation
Add a skip_install input (default: false) that skips the npm/pnpm installation step when the Qwen Code CLI is already pre-installed on the runner (e.g. self-hosted ECS runners). When skip_install is true: - Install pnpm step is skipped - Install Qwen Code step is skipped - A new Verify pre-installed Qwen Code step checks that qwen is in PATH and fails with a clear error if not This avoids redundant per-run installs on runners that maintain a persistent CLI installation, matching the pattern already used in qwen-code Autofix/triage workflows (PR #4866, #6207).
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.
What this PR does
Adds a
skip_installinput (default:false) that skips the npm/pnpm installation step when the Qwen Code CLI is already pre-installed on the runner.Why it's needed
Self-hosted ECS runners (like those used in qwen-code's Autofix/triage workflows) maintain a persistent
qwenCLI installation. The current action always runsnpm install --globalon every invocation, which is redundant and adds ~30s of overhead per run.This pattern was already adopted in qwen-code's own workflows:
But
qwen-code-actionitself has no way to skip the install step — workflows that use the action on pre-installed runners still pay the install cost.Changes
skip_install(string, default'false')skip_install == 'true'skip_install == 'true'skip_install == 'true', checks thatqwenis in PATH and fails with a clear::errorif notUsage
Risk & Scope
false— existing workflows are unaffected.qwenis not found, so misconfiguration is caught immediately.