Restore Flyway command coverage - #4016
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (11)
📒 Files selected for processing (3)
Included review availability: Your plan provides up to 4 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughFlyway CLI parsing now handles edition-formatted versions, command-table boundaries, legacy configuration help, and expanded option syntax. New tests validate command coverage and parsing cases. Flyway package documentation now separates executable installation and package usage. ChangesFlyway CLI support
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: 🔵 Low · up to The Flyway command coverage changes have passing tests and successful release builds, but the documentation build remains unverified after a TLS certificate error during dependency installation. The PR is mergeable with explicit owner awareness or follow-up to complete that validation. Sequence Diagram(s)sequenceDiagram
participant CoverageTests
participant FlywayExecutor
participant FlywayCliScraper
participant CommandCoverageGuard
CoverageTests->>FlywayExecutor: Request Flyway fixtures
FlywayExecutor->>FlywayCliScraper: Return version and help output
FlywayCliScraper->>CommandCoverageGuard: Submit extracted commands
CommandCoverageGuard-->>CoverageTests: Return coverage result
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
Greptile SummaryThe PR restores the Flyway 10.20.1 command surface by improving help/version parsing and regenerating the typed integration.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| tools/ModularPipelines.OptionsGenerator/src/ModularPipelines.OptionsGenerator/Scrapers/Cli/FlywayCliScraper.cs | Expands Flyway command and version parsing while terminating discovery at the next non-command section. |
| tools/ModularPipelines.OptionsGenerator/src/ModularPipelines.OptionsGenerator.Tests/Scrapers/Cli/FlywayCommandCoverageTests.cs | Adds focused regression tests for version extraction, legacy help, section boundaries, and exact 19-command coverage. |
| src/ModularPipelines.Flyway/Services/IFlyway.Generated.cs | Regenerates the public service interface with all 19 Flyway commands and compatibility defaults. |
| src/ModularPipelines.Flyway/Services/Flyway.Generated.cs | Adds concrete wrappers for the seven restored Flyway commands. |
| src/ModularPipelines.Flyway/Generated/Flyway.CommandCoverage.json | Updates the pinned Flyway 10.20.1 coverage baseline from 12 to 19 commands. |
| docs/docs/mp-packages/cli/flyway.md | Documents the executable prerequisite and complete restored command surface. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[Flyway help and version output] --> B[FlywayCliScraper]
B --> C[Command definitions]
C --> D[Command coverage guard]
D --> E[Options records]
D --> F[IFlyway service API]
D --> G[Flyway service implementation]
E --> H[Typed Flyway package]
F --> H
G --> H
Reviews (6): Last reviewed commit: "fix(flyway): stop at command table bound..." | Re-trigger Greptile
Code ReviewI reviewed the diff for this PR (Flyway command-coverage restoration: new Overall: this is a solid, well-scoped fix. The regenerated surface is backed by the PR's own test additions and a real validation run against Flyway 10.20.1, the generator-driven method ordering ( One medium-confidence finding worth a look
The rewritten This doesn't manifest against the currently-pinned Flyway 10.20.1 output (every subcommand's help includes a
Nice work overall — the test coverage and the validation-against-real-CLI-output approach here is exactly the right way to harden a scraper like this. |
|
Addressed the legacy-help finding in 76b89db. Flyway HasOptions now retains the Configuration-section and -url= compatibility signals alongside Description/base detection. Added an end-to-end legacy configuration-only scrape regression proving flyway migrate and its -url option remain generated. Validation: OptionsGenerator tests 819/819; Release build 0 warnings, 0 errors. |
Code ReviewRe-reviewed after the latest push (commit Previous finding: addressed ✅The earlier review flagged that the rewritten New finding worth considering:
|
76b89db to
5064ae1
Compare
Code ReviewRe-checked this PR against the current HEAD ( Status of prior findings:
No new issues found in this pass. Nice regression coverage overall (noisy version output, legacy single-dash help, and a sentinel test pinning the full 19-command surface). |
|
Addressed the remaining section-boundary note in 937e844. Flyway command extraction now stops by table shape at the first non-command row after command discovery, rather than enumerating future section headings. Alias rows such as �ersion, -v, --version are recognized without truncating the table. Added a reworded Runtime settings regression. Validation: OptionsGenerator tests 820/820; Release build 0 warnings/errors. |
Code ReviewReviewed the scraper/parsing logic changes in SummaryThis is a well-scoped, self-contained fix. Highlights:
Minor / non-blocking observations
No blocking issues found. Nice, targeted fix with solid test coverage for the exact regression it addresses. |
937e844 to
f52788a
Compare
|
Rebased onto current main (13fd094). Validation: Flyway command-coverage tests 5/5; ModularPipelines.Flyway.slnx Release build succeeded with 0 warnings/errors. |
Code ReviewRe-checked this PR at the current head ( Status of prior findings — both still hold:
Confirmed the file set (14 files) and diff hunks in No new issues found. This is a well-tested, well-scoped fix and looks good to merge. |
Parse preview annotations and description-only help so pinned Flyway coverage discovers all 19 commands.
f52788a to
e2306e8
Compare
Fixes #3993
Part of #3996
Summary
(preview)-voutputValidation
Summary by CodeRabbit
New Features
Bug Fixes
Tests