Skip to content

test: 7 DETERMINISTIC Elixir failures (fail in isolation) — separate from the #643 order-dependent cluster #645

Closed

Description

@hyperpolymath

Context

mix test is red on main: 73 failures / 1398 tests. That number has been treated as
one undifferentiated problem. It is not — it splits cleanly into two classes with
completely different fixes, and this issue covers the smaller, tractable one.

Measured by running the suspect files in isolation (--seed 0) and then together:

run failures
workflow_audit_test.exs alone 2
rules/cicd_rules_vlang_test.exs alone 2
root_hygiene_test.exs alone 1
dashboard_test.exs alone 1
rules/workflow_audit_chapel_test.exs alone 1
sum 7
all five together 7

Identical. These fail alone exactly as they fail in-suite, so they are real deterministic
failures, not test pollution
. That distinguishes them from the other ~66 failures, which
concentrate in contract_test / blackboard_test / reflexive_test / kin_test and are
order-dependent — tracked separately in #643.

Splitting these out means 7 bounded, independently-fixable defects stop being hidden behind
a 73-failure wall.

The seven

  1. test/rules/cicd_rules_vlang_test.exs:45 — vlang_detected does not exempt Coq
    proof scripts (.v is also Coq's extension).
  2. test/rules/cicd_rules_vlang_test.exs:64 — vlang_detected does not exempt Verilog
    and linguist samples. left: %{...}, right: nil.
  3. test/root_hygiene_test.exs:101 — scan_required_missing/1 no longer flags a missing
    SECURITY.md; assert security != nil gets nil.
  4. test/rules/workflow_audit_chapel_test.exs:126 — chapel-find-comm-gasnet not fired on
    the brittle printchplenv glob. right: [] — no recipes at all.
  5. test/dashboard_test.exs:39 — GET / does not reference every
    Hypatia.Telemetry.all_events() name in the JS handler list.
  6. test/workflow_audit_test.exs:8 — assert length(findings) == 17, actual 6.
  7. test/workflow_audit_test.exs:233 — assert report.missing_count == 15, actual 4.

Items 1 and 2 are scanner false positives, not merely failing tests. A vlang_detected
rule that fires on Coq and Verilog files emits wrong findings into the estate's own scan
results — the exact failure mode CLAUDE.md § Scanner Hygiene exists to prevent.

Hypotheses — explicitly NOT yet verified

Stated as leads, not conclusions; each needs checking against the rule source before acting.

  • 6 and 7 look like drift between rule and test: a hardcoded required-workflow list
    shrank (17 → 6, 15 → 4) and the assertions were not updated. If so the fix is to derive
    the expected count from the rule's own list rather than hardcode it — otherwise this
    recurs on the next change.
  • 1, 2 and 4 look like genuine rule-logic gaps (missing extension exemptions; a recipe
    predicate that no longer matches).
  • 3 and 5 are unclassified.

Do not assume the counts in 6/7 are "just stale" — if the required-workflow list shrank
unintentionally, the rule is the bug and the test is correct.

Acceptance criteria

  • Each of the seven either passes, or is closed with a recorded reason why the
    assertion was wrong.
  • mix test <the five files> --seed 0 reports 0 failures.
  • Items 1 and 2 are confirmed fixed by a case that would previously have produced a
    false positive on a .v Coq file and a Verilog file.
  • No assertion in 6/7 hardcodes a count that the rule's own data already determines.

Test plan

mix test test/workflow_audit_test.exs test/rules/cicd_rules_vlang_test.exs \
         test/root_hygiene_test.exs test/dashboard_test.exs \
         test/rules/workflow_audit_chapel_test.exs --seed 0

Expect 88 tests, 0 failures (currently 88 tests, 7 failures).

Then confirm the total drops: full mix test should fall from 73 failures to ~66, with the
remainder being the #643 cluster.

Model tier

Sonnet — five independent, well-localised test/rule pairs in one repo, each with a
concrete assertion and no new design required. Items 1 and 2 warrant a little more care as
they change scanner output that feeds the estate.

Related

Activity

  1. added
    cx/L2
    status:ready
    vfy/test
    on Jul 21, 2026
  2. hyperpolymath commented on Aug 3, 2026

    @hyperpolymath
    OwnerAuthor

    Triage note (2026-08-03), item-by-item against the current tree:

    • Item 3 (SECURITY.md) is a wrong assertion, not a rule bug. lib/rules/root_hygiene.ex:328-332 documents that SECURITY.md is intentionally not in the required-at-root list (it's a community-health file that legitimately lives under .github/). Resolution is fixing the test assertion, which is queued in the test-repair pass.
    • Items 1–2 (vlang_detected on Coq .v / Verilog): the tests asserting the exemptions still fail — the exemption never made it into the detector. Queued as a rule fix in the FP-cleanup pass.
    • Items 6–7 (workflow_audit hardcoded counts 17/15 vs actual): still failing; will be fixed per this issue's own guidance — derive the counts from the rule data instead of re-hardcoding.

    All verification is local while CI is down (#671).

  3. hyperpolymath commented on Aug 7, 2026

    @hyperpolymath
    OwnerAuthor

    All seven resolved. Re-measured against the current tree rather than taking the original list at face value — two items were wrong assertions, not rule bugs.

    Item Verdict Resolution
    1–2 vlang_detected on Coq .v / Verilog Real rule bug Four path_allow_prefixes entries carried a leading slash (/linguist/samples/, /HOL/examples/PSL/, /echidna/examples/, /echidna/tests/live_goals/), which String.contains?/2 can never match against repo-root-relative paths. The exemptions the tests asserted were dead code. Fixed with #602.
    3 SECURITY.md Wrong assertion lib/rules/root_hygiene.ex documents SECURITY.md as intentionally not required at root — it's a community-health file GitHub recognises in root, .github/, or docs/, and requiring it here double-reported and false-positived on .github/SECURITY.md. Test now asserts the documented behaviour.
    6–7 hardcoded counts (== 17, missing_count == 15) Stale literals The governance.yml consolidation intentionally retired 11 workflows from @standard_workflows (8 into the governance-reusable bundle, plus instant-sync/jekyll×2 opt-outs). Per this issue's own guidance the counts are now derived from WorkflowAudit.standard_workflows/0 rather than re-hardcoded, so the next membership change can't re-stale them.
    Remainder (dashboard, anomaly detector, chapel, record_dialect) Mixed Two further real lib gaps (dashboard JS handler list missing the cross_org telemetry events; the WF024 chapel? gate skipping workflows that drive Chapel via printchplenv/CHPL_* without the literal word chpl), one test bug (a telemetry handler calling send(self(), …) inside the closure, so messages landed in the emitting process), and one more frozen literal (74 criteria vs the 75 shipped after #668 — now derived from the SSOT).

    Suite went from 12 stable failures to 0, verified at four seeds. The seed is now pinned in test/test_helper.exs, so failure-count deltas are evidence again — see #643.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    cx/L2status:readyvfy/test

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions