Visitar URL original
Add `tests` label for changes in `test.support` helpers · Issue #679 · python/bedevere · GitHub
Skip to content

Add tests label for changes in test.support helpers #679

Description

@johnslavik

Activity

  1. changed the title [-]Add `tests` label if a change happened to a `test.support` helper[/-] [+]Add `tests` label for changes in `test.support` helpers[/+] on Dec 7, 2025
  2. johnslavik commented on Dec 7, 2025

    @johnslavik
    MemberAuthor

    Maybe a glob for Lib/test/**.py on top of the ^(test_|_test) heuristics?

  3. AA-Turner commented on Dec 7, 2025

    @AA-Turner
    Member

    Most PRs for library/core etc will hopefully include tests. For those, tests are incidental rather than the focus.

    How can we automatically identify PRs for which the primary focus is tests, rather than tests as a part of some other part of the project?

    A

  4. johnslavik commented on Dec 7, 2025

    @johnslavik
    MemberAuthor

    Most PRs for library/core etc will hopefully include tests. For those, tests are incidental rather than the focus.

    If there is a change outside of tests, the loop will return early, and the tests label won't be applied. I'm just extending the heuristic to include matching files that don't start with test_|_test but are still in the test/ directory.

    How can we automatically identify PRs for which the primary focus is tests, rather than tests as a part of some other part of the project?

    This is already handled by the loop.

  5. AA-Turner commented on Dec 7, 2025

    @AA-Turner
    Member

    I don't follow. This is an issue, not a PR?

    My question was on semantics - if we have a PR that only changes test_pathlib, should that have the tests label or the library label? I'd say the latter is more relevant. How should bedevere make such judgments?

    A

  6. johnslavik commented on Dec 7, 2025

    @johnslavik
    MemberAuthor

    Sorry, I misunderstood. If we constrain this to just Lib/test/support/** glob (maybe without the .py), that would surely solve the problem. Right?

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions