Repository navigation
fix(policy): name the field in policy type errors - #4174
johntmyers merged 3 commits into
Conversation
Signed-off-by: Eric Curtin <eric.curtin@docker.com>
|
@mrunalp @johntmyers PTAL when you get a chance, and |
|
/ok to test f61db31 |
|
Label |
PR Review StatusThanks @ericcurtin, I checked your request for review and current-head test authorization. The independent review found no blocking issues: the parser adds bounded field paths to type errors while preserving validation and unknown-field handling. I posted the full-SHA test authorization and confirmed the mirror matches this head. Blocking findings: None. Carried findings: None. Required workflows are now queued or running, including Branch Checks, E2E, and Trivy Changes; Helm Lint has passed. The E2E bot requested creation of the missing mirror, which is now present, and the E2E build jobs are running without a rerun. Gator will inspect the results next cycle. Gator metadata
|
Signed-off-by: Eric Curtin <eric.curtin@docker.com>
|
@johntmyers @sjenning Fixed the example lockfiles that broke CI. PTAL, and |
|
/ok to test 90bf975 |
PR Review StatusThanks @ericcurtin, I checked your update about the example lockfiles. The independent follow-up review confirmed that both lockfiles include the policy schema's new dependency with the matching version and checksum; no blocking findings remain. I posted current-head test authorization and confirmed the mirror matches. Branch Checks and E2E are queued, and Helm Lint passed. Trivy Changes is awaiting GitHub workflow approval; the sandbox policy denied the approval endpoint, so Gator cannot advance to pipeline monitoring yet. Action required: A maintainer must approve the current-head Trivy Changes run to run. Alternatively, the sandbox operator can allow POST Blocking findings: None. Carried findings: None. Gator metadata
|
|
@ericcurtin this isn't able to merge as branch checks fail on the queue, can you rebase and take a look? |
Signed-off-by: Eric Curtin <eric.curtin@docker.com>
|
Merged main. The queue failure was an unrelated port-reuse flake in |
|
/ok to test 17934ba |
PR Review StatusThanks @ericcurtin, I checked your update that main was merged after @johntmyers requested a rebase for the queue failure. The feedback ledger confirms the effective PR patch is identical to the previously reviewed patch, so the earlier review remains valid and no repeat review is needed. Your port-reuse flake diagnosis remains to be confirmed by the new CI results. No blocking or carried Gator findings remain. I posted current-head Action required: A maintainer must approve the current-head Trivy Changes workflow, or the sandbox operator must apply the approved narrow policy proposal allowing that run's approval endpoint. The proposal has been approved but the policy has not reloaded, so Gator cannot dispatch Trivy yet. Gator metadata
|
Monitoring CompleteMonitoring is complete because this PR has merged. Final status: Gator's last state was I removed the active Gator metadata
|
Summary
Policy type errors now name the bad field, like unknown-field errors do.
Related Issue
Closes #4168
Changes
serde_path_to_error(already in the lockfile) and prefix the error with the field path.Testing
cargo fmt,cargo clippy -D warningsandcargo testforopenshell-policy-schemaandopenshell-policy. Prover tests not run (no local Z3).Checklist