Skip to content

process: doc-comment #[cfg(test)] invents false-dark executed-tests binary #722

Description

@jason931225

Class sweep from console-937 critic BLOCK (receipt console-lane-937/.cursor/receipts/937-critic.json, tip 5c5d8bdc1, provenByExecution).

scripts/check-executed-tests.mjs treats any crate src containing the literal substring #[cfg(test)] as a dark test binary. Pasting that attribute into a doc comment on a lib with no real tests fails CI closed (false-dark). Immediate leaf fix is reword the comment; durable fix is comment-aware scan and/or a lint forbidding the substring in non-test doc comments.

Roots: scripts/check-executed-tests.mjs (+ tests). Failure class: process.doc-comment-cfg-test-false-dark

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions