Skip to content

fix(ci): validate command vector before indexing Cargo subcommands - #1051

Merged
LunaStev merged 1 commit into
wavefnd:masterfrom
amandeavor:fix/1022-validate-command-vectors
Oct 27, 2026
Merged

LunaStev merged 1 commit into
wavefnd:masterfrom
amandeavor:fix/1022-validate-command-vectors

Conversation

@amandeavor

Copy link
Copy Markdown
Contributor

Summary

Validates command vectors in Runner.run before indexing Cargo subcommands and when vector is empty, raising explicit ValueError diagnostics and preserving stage report records.

Motivation

Fixes #1022. Running empty commands or cargo without a subcommand caused uncaught IndexError exceptions during CI execution instead of reporting deliberate configuration errors.

Target and compatibility impact

None. Valid Cargo and non-Cargo commands retain existing behavior, jobs, and locked injection.

Validation

  • python -m unittest tools.test_ci.RunnerTests (12 tests pass)
  • python -m unittest tools.test_ci (43 tests pass)

Checklist

  • Commits include a DCO Signed-off-by line.
  • Tests cover new behavior or the PR explains why no test is needed.
  • User-facing changes include documentation or diagnostics updates.
  • The change preserves the license boundary between the compiler and std/.

Copilot AI balanced review requested due to automatic review settings October 25, 2026 08:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@LunaStev
LunaStev merged commit eca80a5 into wavefnd:master Oct 27, 2026
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Validate CI command vectors before indexing Cargo subcommands

3 participants