Skip to content

ci: fail XML lint job on errors, port helper to Python#160

Draft
gronke wants to merge 2 commits into
mainfrom
fix/ci-xml-lint-reporting
Draft

ci: fail XML lint job on errors, port helper to Python#160
gronke wants to merge 2 commits into
mainfrom
fix/ci-xml-lint-reporting

Conversation

@gronke

@gronke gronke commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

The merged workflow reported success even when phases failed; add a Verdict step so the job goes red. Replace scripts/lint-xml.sh with scripts/lint_xml.py.

@gronke

gronke commented Jun 10, 2026

Copy link
Copy Markdown
Contributor Author

We're down (11/14) on XSD and (1/161) on linting errors. A bug related to zpretty #161 prevents addressing the last remaining formatting issue:

source/client_info.xml

After fixing the bug upstream or moving the comment (recommend this), 11 XSD schema validation issues remain:

doc/examples/examplegenericdocument.xml: validation failed
doc/examples/exampleinvoice.xml: validation failed
doc/examples/exampleofferte.xml: validation failed
doc/examples/examplequickscope.xml: validation failed
doc/examples/examplereport.xml: validation failed
sample-report/source/offerte.xml: validation failed
sample-report/source/report.xml: validation failed
templates/genericdocument.xml: validation failed
templates/offerte/offerte_EN.xml: validation failed
templates/offerte/offerte_NL.xml: validation failed
templates/pentestreport/report.xml: validation failed

Update: Filed two upstream PRs with a fix collective/zpretty#229 and hardening collective/zpretty#230 to make future content removal get detected, not silent.

The merged workflow reported success even when phases failed; add a
Verdict step so the job goes red. Replace scripts/lint-xml.sh with
scripts/lint_xml.py.
@gronke gronke force-pushed the fix/ci-xml-lint-reporting branch from 3366f37 to 21a20c0 Compare June 10, 2026 09:36
@gronke gronke marked this pull request as draft June 10, 2026 09:37
Replaces `pip install zpretty` with gronke/zpretty's composite action.
@gronke gronke force-pushed the fix/ci-xml-lint-reporting branch from 21a20c0 to 60f521b Compare June 10, 2026 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant