tests: add smoke coverage for shell completion script#3112
tests: add smoke coverage for shell completion script#3112Vaishnav88sk wants to merge 7 commits intoNetflix:masterfrom
Conversation
Signed-off-by: Vaishnav88sk <vaishnavsk8804@gmail.com>
Greptile SummaryAdds a bash smoke test for Confidence Score: 5/5Safe to merge — only a P2 style suggestion remains; no correctness or reliability issues on the primary target platform (Linux bash 4+). All previously-flagged P1 issues are resolved. The one remaining finding (empty-array nounset behaviour on bash < 4.4) only affects failure-mode diagnostics, not the happy path or CI correctness on modern Linux. No files require special attention. Important Files Changed
Reviews (6): Last reviewed commit: "tests: use stable metaflow wrapper name ..." | Re-trigger Greptile |
Signed-off-by: Vaishnav88sk <vaishnavsk8804@gmail.com>
Signed-off-by: Vaishnav88sk <vaishnavsk8804@gmail.com>
Signed-off-by: Vaishnav88sk <vaishnavsk8804@gmail.com>
Signed-off-by: Vaishnav88sk <vaishnavsk8804@gmail.com>
PR Type
Summary
Add a bash smoke test for
metaflow-complete.shto ensure shell completion is loadable and returns expected top-level commands. This catches completion script regressions early in CI and provides a direct local test command for contributors.Issue
Fixes #3107
Fixes #
Reproduction
Runtime: local (Linux bash)
Commands to run:
Where evidence shows up:
Before (error / log snippet)
After (evidence that fix works)
Root Cause
The completion script is user-facing shell glue that was not covered by a focused automated smoke test. Without CI/runtime validation of script sourcing and returned candidates, regressions in completion behavior can slip through normal test paths.
Why This Fix Is Correct
The test validates the critical behavior contract directly:
This is minimal and scoped: it adds only a targeted smoke test plus a contributor doc command, without changing CLI/runtime behavior.
Failure Modes Considered
complete -p metaflowcheck fails)Tests
Non-Goals
AI Tool Usage
Used an AI coding assistant (Claude) to draft the test structure and PR text. All generated content was reviewed, adjusted, and validated manually (including command-level behavior checks and syntax checks) before submission.