Skip to content

fix(cli): index actions by exact target in prune and run - #2497

Merged
apilaskowski merged 3 commits into
mainfrom
fix/prune-exact-target-keys
Nov 27, 2026
Merged

apilaskowski merged 3 commits into
mainfrom
fix/prune-exact-target-keys

Conversation

@rafal-hawrylak

@rafal-hawrylak rafal-hawrylak commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

When two compiled actions shared the same readable target string, prune and runCommand indexed internal sets and maps by targetAsReadableString instead of targetStringifier. Unqualified --actions missed short-name ambiguity, --include-deps dropped overwritten dependencies, --tags leaked untagged colliding actions and console output mislabeled action types across ticks.

prune and runCommand now index actions and walk dependency targets by targetStringifier. Action selectors and '*' wildcards match compiled actions directly, with unqualified patterns matching target.name rather than the last dot-separated segment.

@rafal-hawrylak
rafal-hawrylak requested a review from a team as a code owner November 25, 2026 13:28
@rafal-hawrylak
rafal-hawrylak requested review from Ford544, apilaskowski and mbiernacik and removed request for a team November 25, 2026 13:28
When two compiled actions shared the same readable target string, prune and runCommand indexed internal sets and maps by targetAsReadableString instead of targetStringifier. Unqualified --actions missed short-name ambiguity, --include-deps dropped overwritten dependencies, --tags leaked untagged colliding actions and console output mislabeled action types across ticks.

prune and runCommand now index actions and walk dependency targets by targetStringifier while matching --actions and '*' wildcard patterns directly against compiled actions.
@rafal-hawrylak
rafal-hawrylak force-pushed the fix/prune-exact-target-keys branch from 47f0cf6 to 354c4c9 Compare November 26, 2026 15:35
Comment thread cli/api/commands/prune.ts Resolved
Comment thread cli/api/commands/prune.ts Resolved
Comment thread cli/api/commands/prune.ts Resolved
Comment thread cli/api/commands/prune.ts Resolved
Comment thread cli/commands/run_command.ts Resolved
@apilaskowski
apilaskowski enabled auto-merge (squash) November 27, 2026 22:47
@apilaskowski

Copy link
Copy Markdown
Collaborator

I saw failing test, but it might be flake, so I am reruning.

@apilaskowski
apilaskowski merged commit ee32972 into main Nov 27, 2026
17 checks passed
@apilaskowski
apilaskowski deleted the fix/prune-exact-target-keys branch November 27, 2026 22:56
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.

3 participants