Skip to content

Run the merge-profile classifier's existing tests in required CI #157

Closed

Description

@kiwidream

Is there an existing issue for this?

I searched open and closed issues and PRs. #12 introduced the classifier and tests; #124 automated a different release-validator suite. Manual runs in later PRs do not provide required automation for this suite.

Current behaviour

At 70fea84f5becfb57463247af09790df5ddd424f8, ci/checks/test_classify_merge_profile.py:56 contains 24 test methods. The classifier selects the validation profile and whether source validation is required.

The required workflows and CI scripts contain no invocation or generic test discovery that runs this suite. core-checks.yml:154 invokes the adjacent test_libbitcoinpqc_build_policy.py suite instead. Relevant PR descriptions show manual classifier-test runs, so the gap is missing automation, not never-tested code.

A classifier regression could route a change to insufficient validation while tests intended to catch that regression remain idle.

Expected behaviour

Required CI executes the existing classifier suite for changes that can affect classification, and a failure blocks the required gate.

Steps to reproduce

  1. Read the pinned classifier and its test module.
  2. Search .github/workflows, ci and test-discovery entry points for invocations of test_classify_merge_profile.py or discovery that includes it.
  3. Compare the adjacent suite invocation linked above with the absence of a classifier-suite invocation.

These are source-review steps. No tests were executed during the research sweep.

Proposed change

Invoke python3 ci/checks/test_classify_merge_profile.py in an appropriate required source-validation path and preserve failure propagation to the required gate. Keep this scoped to wiring the existing suite.

Acceptance

  • Required CI executes all 24 current classifier test methods.
  • An intentionally failing assertion in the classifier suite causes the required gate to fail.
  • Existing classification behavior and unrelated lightweight profiles remain unchanged.

Verify the real workflow's failure propagation; do not assume that a particular allowlist edit fails a particular assertion.

Consensus implications

None. CI wiring only.

How did you obtain qbit?

Other — source review.

What version of qbit are you using?

70fea84f5becfb57463247af09790df5ddd424f8.

Operating system and version

Not applicable; source review without a runtime reproduction.

Activity

  1. added
    bug
    on Sep 15, 2026
  2. self-assigned this
    on Sep 15, 2026
  3. kiwidream commented on Sep 18, 2026

    @kiwidream
    MemberAuthor

    Done on 1.x.x by #160 (merge a2efbc19d6), which did not auto-close this because it targets a non-default branch. The classify-changes job now runs python3 ci/checks/test_classify_merge_profile.py -v before producing routing outputs, so a failing suite fails that job and therefore the Required Merge Gate (needs: classify-changes plus the explicit result check). The gate run for a2efbc19d6 logged all 24 classifier tests and the 5 workflow-contract tests passing. Failure propagation is proved by ci/checks/test_classifier_ci_contract.py against the real step and gate shell; a hosted red-assertion demonstration was not run. Closing.

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

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions