Add YAML workflow loader validation tests (#543) - #631
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Team Run ID: 📒 Files selected for processing (1)
🔗 Linked repositories identifiedCodeRabbit considers these linked repositories for cross-repo context during reviews:
Included review availability: 2 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 4 reviews per hour. Summary
WalkthroughThe pull request adds contract tests for the workflow YAML loader. The tests cover GitHub Actions trigger words, YAML 1.2 boolean variants, and invalid workflow document roots. ChangesWorkflow loader contracts
Suggested labels: Poem
Merge Risk: ⚪ Minimal · up to This PR adds focused validation coverage without changing production behavior, and no actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
Full details: Testing (Overall)Explanation Pass this check. The pull request changes only Full details: User-Facing DocumentationExplanation Pass the user-facing documentation check. The pull request changes only Full details: Developer DocumentationExplanation PASS — The pull request changes only Full details: Module-Level DocumentationExplanation The changed module has a module-level docstring at line 1. It clearly states the module purpose, explains the CI workflow contracts it protects, identifies related contract modules and the shared Full details: Testing (Unit And Behavioural)Explanation Pass the testing check. The diff adds focused unit coverage for Full details: Testing (Property / Proof)Explanation Pass the property-testing check. The pull request changes only Full details: Testing (Compile-Time / Ui)Explanation Accept the testing change. The pull request changes only Full details: Unit ArchitectureExplanation Pass. The committed diff changes only Full details: Domain ArchitectureExplanation The pull request only adds contract tests in Full details: ObservabilityExplanation Pass the observability check. The pull request changes only ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning Your free Security trial is over. An organization admin can activate Security or dismiss this notice. Comment |
Reviewer's GuideAdds focused workflow-loader contract tests covering YAML 1.2 boolean behavior, preservation of GitHub Actions trigger words as strings, and rejection of invalid root document shapes with exact validation messages. File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Cover YAML 1.2 booleans and malformed workflow roots so contract failures remain explicit and close to their parsing boundary.
29921cb to
5007c4f
Compare
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Summary
This branch adds focused YAML workflow-loader tests so GitHub Actions trigger
keys and malformed workflow roots retain their intended parsing and validation
contracts.
Closes #543.
Review walkthrough
Validation
make check-fmt: passedmake lint: passedmake doc-coverage: passed (99.07%)make typecheck: passedmake test: passed (2,679 passed, 3 skipped; doctests passed)make markdownlint: passedmake nixie: passedNotes
make test-workflow-contractshas a pre-existing, unrelated failure in thecheck-fmtpipeline assertion. The focused loader selection and all requiredcommit gates pass; this branch does not alter that unrelated contract.
Summary by Sourcery
Strengthen YAML workflow-loader contract coverage for scalar parsing and malformed document validation.
Enhancements:
Tests:
Enhancements:
resolution and preservation of GitHub Actions trigger words as strings.
non-string-keyed workflow roots.
Tests:
malformed document-root validation.
References