kola: Restore kola.json metadata fallback - #4608
Conversation
metadataFromTestBinary initialized a non-nil metadata value before checking for inline metadata. As a result, registerExternalTest could never fall back to the directory's kola.json. Allocate metadata only after detecting JSON or YAML. Add regression coverage for missing inline metadata, both formats, and exclusivity defaults. Closes: coreos#4392
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe external test metadata parser now returns ChangesExternal test metadata
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The PR restores metadata fallback behavior and adds regression coverage; no actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Hi @Amir-A664. Thanks for your PR. I'm waiting for a coreos member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Closes #4392
Summary
registerExternalTestto fall back to the directory'skola.jsonExclusive: truedefault when inline metadata is presentTesting
go test -mod=vendor ./mantle/kolago test -mod=vendor ./mantle/kola -run TestMetadataFromTestBinary -count=1 -vgo vet -mod=vendor ./mantle/...gofmt -d mantle/kola/harness.go mantle/kola/harness_test.goSummary by CodeRabbit
Bug Fixes
exclusive: falsevalues.Tests