Repository navigation
chore: count the strict xfails of the conformance suites - #97
Draft
openvoiceos-bot wants to merge 2 commits into
Draft
openvoiceos-bot wants to merge 2 commits into
openvoiceos-bot wants to merge 2 commits into
Conversation
tools/xfail_count.py collects test/conformance with pytest, runs no test, and prints one JSON line: the collected items that carry an applicable strict xfail mark, split by spec through the suite rows of docs/coverage.md. It exits non-zero when a suite maps to no spec. Tests cover plain, param, module-level, false-condition, non-strict and runtime cases, and compare the real-repo value with pytest's own xfail evaluator. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. |
… gaps The channel_compat jobs set OVOS_CHANNEL, and the root conftest then adds a strict xfail per channel gap at collection, so the tool counted those too. It now clears OVOS_CHANNEL before collection. Marks are evaluated with pytest's own evaluate_xfail_marks instead of a reimplementation, which differed on keyword conditions, class and method marks, strict=None and the xfail_strict and strict ini options. Every suite file must map to a spec, not only files with a strict xfail; the four plugin and dual-emit suites are now named in docs/coverage.md. The output gains dirty, stack, unmapped_files and non_strict_items, commit is null outside the checkout, and runtime calls include aliases, add_marker and applymarker. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds
tools/xfail_count.py. It counts the collected test items undertest/conformancethat carry a strict xfail mark that applies on the installed stack. That is the number of known gaps that have a test. It prints one JSON line.The tool collects the suites with pytest and runs no test. It asks pytest's own
evaluate_xfail_markswhich mark applies and whether it is strict, so conditions and thexfail_strictandstrictini options follow pytest. It clearsOVOS_CHANNELbefore collection, so the channel gap marks that the root conftest adds are not counted. The spec of each suite comes fromdocs/coverage.md; a suite that two specs share is reported under both ids joined by+. The tool exits non-zero when any suite file, with or without an xfail, maps to no spec. Helper tests are exempt by name.The output has these fields:
metric,value,repo,commit(null outside the checkout),dirty,tool_version,stack(installed versions of the OVOS packages the count depends on),by_spec,unmapped_files,non_strict,non_strict_itemsandruntime_xfail_calls(pytest.xfail, its aliases,add_markerandapplymarker).docs/coverage.mddescribes each field. Four suites that the file did not name now have a mention in their spec section.Tests in
test/meta/test_xfail_count.pycover plain, parametrized and module-level marks, false conditions, keyword conditions, class and method marks, the ini options, runtime forms, and a suite with no xfail and no mapping. The real-repo test is skipped whenOVOS_CHANNELis set, and it checks the value withOVOS_CHANNEL=stable. There is no CI step; the tests run withtest/.On head 16d50ac the tool prints:
🤖 Generated with Claude Code