Commit bb1f593
committed
fix: resolve target-based AB test target name mismatch
The resolveTargetName() function had a false-positive in its startsWith
check that prevented it from applying the project prefix. When the
runtime name equals the project name (the default case), target names
like "Foo-prod" already start with "Foo-" so the guard incorrectly
assumed they were already prefixed and returned them unchanged.
However, post-deploy-http-gateways.ts unconditionally creates targets
as `${projectName}-${tgt.name}` (e.g., "Foo-Foo-prod"), so the AB test
referenced a non-existent target and stayed in NOT_STARTED forever.
The fix removes the startsWith heuristic and always applies the prefix,
matching what post-deploy-http-gateways.ts does.1 parent 804e041 commit bb1f593
1 file changed
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
479 | | - | |
480 | | - | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
481 | 482 | | |
482 | 483 | | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | 484 | | |
488 | 485 | | |
489 | 486 | | |
| |||
0 commit comments