Skip to content

Add a tidy check to prevent adding new test files *directly* under tests/ui/ #902

@jieyouxu

Description

@jieyouxu

Proposal

This MCP proposes to add a tidy check to prevent adding new test files directly under tests/ui/. Instead, we'll nudge contributors to either add them under existing subdirectories, or create more meaningful subdirectories to home them.

As part of rust-lang/rust#133895 and as of rust-lang/rust#143908, we no longer have test files immediately under tests/ui/, and instead only subdirectories. I would like to enforce this property (of no stray ui test files immediately under tests/ui) to make ui tests easier to find and easier to organize. In related efforts, we now also have a brief SUMMARY.md intended to briefly outline what each of the subdirectories under tests/ui/ are intended to home (rust-lang/rust#141597). This won't be perfect, but over time, I hope we could massage some of our ui test subdirectories to be more descriptive / organized.

Related discussion: #t-compiler > Discussion for ui test suite improvements

Mentors or Reviewers

I'm planning to either implement this check myself, or mentor/review it.

Process

The main points of the Major Change Process are as follows:

  • File an issue describing the proposal.
  • A compiler team member who is knowledgeable in the area can second by writing @rustbot second or kickoff a team FCP with @rfcbot fcp $RESOLUTION.
  • Once an MCP is seconded, the Final Comment Period begins.
    • Final Comment Period lasts for 10 days after all outstanding concerns are solved.
    • Outstanding concerns will block the Final Comment Period from finishing. Once all concerns are resolved, the 10 day countdown is restarted.
    • If no concerns are raised after 10 days since the resolution of the last outstanding concern, the MCP is considered approved.

You can read more about Major Change Proposals on forge.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-compilerAdd this label so rfcbot knows to poll the compiler teamfinal-comment-periodThe FCP has started, most (if not all) team members are in agreementmajor-changeA proposal to make a major change to rustcto-announceAnnounce this issue on triage meeting

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions