fix: resolve issue where verify validation did not properly validate uniqueness across all modules#8373
Conversation
Codecov Report
@@ Coverage Diff @@
## main #8373 +/- ##
==========================================
- Coverage 70.48% 65.89% -4.59%
==========================================
Files 515 605 +90
Lines 23150 29817 +6667
==========================================
+ Hits 16317 19649 +3332
- Misses 5776 8695 +2919
- Partials 1057 1473 +416
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
4d80571 to
a279598
Compare
…uniqueness across all modules
a279598 to
4045775
Compare
| Location: cfg.YAMLInfos.Locate(&cfg.Verify[i]), | ||
| }, | ||
| } | ||
| errs = append(errs, fmt.Errorf("found duplicate test name '%s' in 'verify' test cases. 'verify' test case names must be unique", tc.Name)) |
There was a problem hiding this comment.
is it possible to get the file name if these verify stanzas are from different skaffold.yaml files?
There was a problem hiding this comment.
I don't believe this information is available in validation.go for skaffold.yaml files. I don't think we have the rel/abs path of the SkaffoldConfig(s) stored in any objects we pass around here (configs, runCtx, etc.). Only the flag runCtx.ConfigurationFile() I believe has something close but that is only the -f <path> value which isn't what we would want. Are you familiar w/ a place this is stored (and that might be accessible here?)
|
I don't think it's possible to add the skaffold.yaml files names with the current values we track. Lmk if there is any other changes, etc. to be made here or if you think it is possible and I'm missing something. Thanks! |
fixes #8372