Skip to content

Support crown on windows without hacks #32302

Open

Description

@sagudev

We need proper solution for #32300. Dylint has some interesting solutions: trailofbits/dylint@c222181

Activity

  1. jschwe commented on Jun 11, 2024

    @jschwe
    Member

    Ah, this explains the recent issue I had on windows.
    Do we need to use crown on all platforms? I've been wondering if we could turn crown off by default, and only enable it in CI / ondemand.

  2. sagudev commented on Jun 11, 2024

    @sagudev
    MemberAuthor

    Ah, this explains the recent issue I had on windows.

    I should probably add workaround in mach instead of CI file.

    Do we need to use crown on all platforms?

    I think not as it only does additional pass of lints on script crate, which do not have (I think) any platform specific cfgs where lints are actually linting (dom structs).

    I've been wondering if we could turn crown off by default, and only enable it in CI / ondemand.

    That's the ultimate plan, as only those who do changes in script crate needs to run it.

  3. jschwe commented on Jun 11, 2024

    @jschwe
    Member

    That's the ultimate plan, as only those who do changes in script crate needs to run it.

    Is there anything blocking this? Couldn't we just delete rustc = "crown" from the config.toml, and in CI set CARGO_BUILD_RUSTC=crown and add an optional parameter to mach which also sets this environment variable?

  4. sagudev commented on Jun 11, 2024

    @sagudev
    MemberAuthor

    Is there anything blocking this?

    Not anything that I know of.

    CC @jdm @mrobinson

  5. jdm commented on Jun 11, 2024

    @jdm
    Member

    I'm ok with that. We may want to start by updating thevPR template to have a checklist item about running crown if any script changes are included.

  6. sagudev commented on Jun 11, 2024

    @sagudev
    MemberAuthor

    I'm ok with that. We may want to start by updating thevPR template to have a checklist item about running crown if any script changes are included.

    CI would still run crown, so I do not think we would need this (I never really understand tidy and build on PR checklist as this is checked by PRs CI check anyway).

  7. mrobinson commented on Jun 11, 2024

    @mrobinson
    Member

    CI would still run crown, so I do not think we would need this (I never really understand tidy and build on PR checklist as this is checked by PRs CI check anyway).

    I think this is still pretty useful as it can help reduce some back-and-forth between new contributors and reviewers. In addition, sometimes I only remember to run tidy when I am filling out the PR template. 😅

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