Skip to content

Dash's PR lint job does not enforce the new filesystem rule #8247

Backlog

Description

@thepastaclaw

PastaClaw flagged this while reviewing #8243, where it was deferred to a follow-up instead of being fixed in that pull request. This issue tracks the follow-up.

Dash's PR lint job does not enforce the new filesystem rule (blocking)

Impact: A contributor can add direct std::filesystem use to first-party source without the PR lint job flagging it.

Where: test/lint/test_runner/src/main.rs:108-114 at 20683e7f7f64:

fn main() -> ExitCode {
let test_list: Vec<(&str, LintFn)> = vec![
("subtree check", lint_subtree),
("std::filesystem check", lint_std_filesystem),
("-help=1 documentation check", lint_doc),
("all-lint.py script", lint_all),
];

The green lint job does not show that the new rule ran. Bitcoin Core bitcoin#28076 invokes the runner from ci/lint/06_script.sh, which upstream CI reaches through ci/lint_run_all.sh. Dash's .github/workflows/lint.yml:69 instead invokes ci/dash/lint.sh, whose CHECK_DOC branch runs only all-lint.py; that dispatcher discovers lint-*.py files, not this Rust check. Put the filesystem check on the existing Dash lint path with one implementation, without re-enabling the intentionally disabled documentation and subtree checks in that job.

Origin

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions