Skip to content

Conformance gate: accept the child labels of the behaviour-label vocabulary - #660

Draft
johnml1135 wants to merge 1 commit into
s68-generated-no-parsefrom
s75-label-vocabulary
Draft

johnml1135 wants to merge 1 commit into
s68-generated-no-parsefrom
s75-label-vocabulary

Conversation

@johnml1135

@johnml1135 johnml1135 commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

The gate test EveryExercisedConstructIsDeclaredInTheChecklist now reads labels.tsv (when the suite has one) as well as constructs.txt, so words may carry child labels (sillsdev/fieldworks-parser-conformance#75, PR 82). Stacked on #659; do not merge before it.

🤖 Generated with Claude Code


This change is Reviewable

…ary: constructs.txt plus labels.tsv

Refs sillsdev/fieldworks-parser-conformance#75

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
if (File.Exists(childLabels))
{
declared.UnionWith(
File.ReadLines(childLabels)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: F1. The labels.tsv reader is test-only, so the vocabulary has two loaders: constructs.txt is read by CoverageReport.LoadConstructChecklist (src/SIL.Machine.Morphology.HermitCrab.Conformance/CoverageReport.cs:48), shared with the hc-conformance CLI, while this inlines its own blank/# filter and column split. A LoadChildLabels beside it would keep one parser if the CLI ever needs the child labels.

@claude

claude Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor
  1. Verdict: approve.
  2. Most important: the new labels.tsv branch at tests/SIL.Machine.Morphology.HermitCrab.Tests/ConformanceFixtureGateTests.cs:146 never runs yet. labels.tsv is absent at the pinned suite commit 7185439e and on the suite default branch; it exists only on the open Behaviour-label vocabulary: every word carries a label and a check enforces it fieldworks-parser-conformance#82. So the gate is unchanged in CI until the pin is bumped after that PR merges.
  3. Counts: 0 Critical, 0 Important, 1 Low.
  4. Ran: I read the diff against base cc5b1f87 and fetched labels.tsv from suite PR 82 head 2df29c0d. Its non-# lines are Parent > child<TAB>checked_against<TAB>meaning, which the first-column split handles. Also checked Program.cs:369: the CLI coverage check only walks constructs.txt, so child labels in CoveredConstructs do not affect it. gh pr checks 660: Conformance suite passed; Build on ubuntu-22.04 and windows-latest pending.
  5. Not verified: I did not run the gate test against the PR 82 suite through HC_CONFORMANCE_SUITE, because cloning it was not permitted here. So it is unconfirmed that every child label PR 82 words carry is in its labels.tsv.

Public API, target framework, package, machine.py parity: None verified (test-only change).

Findings: F1 new (Low).

Reviewed at d492d10

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.60%. Comparing base (cc5b1f8) to head (d492d10).

Additional details and impacted files
@@                   Coverage Diff                   @@
##           s68-generated-no-parse     #660   +/-   ##
=======================================================
  Coverage                   75.60%   75.60%           
=======================================================
  Files                         494      494           
  Lines                       42329    42329           
  Branches                     5920     5920           
=======================================================
  Hits                        32002    32002           
  Misses                       9073     9073           
  Partials                     1254     1254           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants