-
Notifications
You must be signed in to change notification settings - Fork 0
Add YAML loader validation tests for workflow contracts #543
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or requestlowBacklog work, hygiene, or technical debt planned opportunistically, without a strict deadline.Backlog work, hygiene, or technical debt planned opportunistically, without a strict deadline.testingTest coverage, test infrastructure, and verification tooling work.Test coverage, test infrastructure, and verification tooling work.
Description
Activity
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestlowBacklog work, hygiene, or technical debt planned opportunistically, without a strict deadline.Backlog work, hygiene, or technical debt planned opportunistically, without a strict deadline.testingTest coverage, test infrastructure, and verification tooling work.Test coverage, test infrastructure, and verification tooling work.
Summary
Add focused unit tests for the YAML workflow loader validation added in
tests/workflow_contracts/ci_lint_test.py.Rationale
The current change adds YAML 1.2 boolean handling and validates documents returned by
_load. Existing tests do not cover these branches. Add direct coverage to prevent regressions in GitHub Actions workflow parsing and validation.Affected area
tests/workflow_contracts/ci_lint_test.pyRequired changes
Add focused tests for
_WorkflowLoaderand_load.Acceptance criteria
onkey as a string.trueandfalsevalues resolve as booleans._loadrejects an empty document._loadrejects scalar documents._loadrejects list documents._loadrejects mappings that contain non-string keys.Backlinks