Skip to content

QA: ignore Compiler-owned BitVector/specialize_method in ExplicitImports checks - #75

Merged
ChrisRackauckas merged 1 commit into
SciML:mainfrom
ChrisRackauckas-Claude:fix-qa-explicit-imports-bitvector
Jul 23, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:mainfrom
ChrisRackauckas-Claude:fix-qa-explicit-imports-bitvector

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

Summary

Fixes the QA failure introduced by #70. That PR added _CC.BitVector and _CC.specialize_method accesses in src/hasbranching.jl (where _CC is the Compiler module) but did not update the test/qa/qa.jl ExplicitImports ignore lists. Under SciMLTesting 2.4 the ExplicitImports checks run by default, so on main QA now errors on:

  • all_qualified_accesses_via_owners — both BitVector and specialize_method are owned by Base (per Base.which on 1.12) but reached through Compiler.
  • all_qualified_accesses_are_public — BitVector is not public in Compiler (specialize_method was already ignored here).

Both names must be reached via Compiler for version-portability, and this is genuinely irreducible:

  • On Julia ≤ 1.11 the compiler bootstraps its own BitVector, distinct from Base.BitVector, and InferenceResult accepts only the compiler-owned one.
  • Base.specialize_method does not exist on 1.10; it is only reachable through Compiler.

So the fix is to add them to the QA ignore lists (with an explanatory comment), matching the existing pattern for the other Core/Base compiler-introspection internals this package deliberately depends on.

Verification

Ran the QA group locally:

  • Julia 1.12: Quality Assurance | 21 pass / 21 total (previously 19 pass + 2 errored)
  • Julia 1.10 LTS: Quality Assurance | 19 pass / 19 total (public-API sub-checks correctly skipped on < 1.11)

Runic clean on the changed file.

Please ignore until reviewed by @ChrisRackauckas.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PUqzmEnsjgBHHuMVzQo1GE

…rts checks

PR SciML#70 added `_CC.BitVector` and `_CC.specialize_method` accesses in
src/hasbranching.jl (where `_CC` is the `Compiler` module). Under
SciMLTesting 2.4 the ExplicitImports checks run by default, and these two
names trip:

  - all_qualified_accesses_via_owners: both are owned by `Base` (per
    `Base.which` on 1.12) but reached through `Compiler`.
  - all_qualified_accesses_are_public: `BitVector` is not public in
    `Compiler`.

Both must be reached via `Compiler` for version-portability: on Julia
<= 1.11 the compiler bootstraps its own `BitVector` distinct from
`Base.BitVector` (and `InferenceResult` accepts only that one), and
`Base.specialize_method` does not exist on 1.10. Add them to the QA
ignore lists with an explanatory comment.

Verified locally: QA passes on Julia 1.12 (21/21) and 1.10 (19/19).

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review July 23, 2026 11:50
@ChrisRackauckas
ChrisRackauckas merged commit bf4d85a into SciML:main Jul 23, 2026
10 of 11 checks passed
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.

2 participants