Skip to content

Run services and agents tests on CI only when related files change #7278

Description

@ayoubdiourin7

We should improve that so we do not run all tests all the time, only when there are related changes, especially on PRs.

Originally posted by @suhaibmujahid in #6979 (review)

Activity

  1. SanyaKor commented on Oct 24, 2026

    @SanyaKor
    Contributor

    @suhaibmujahid Is running all tests for a changed component, and all service and agent tests when shared libraries change, enough for this issue? Or is more precise test selection expected?

  2. suhaibmujahid commented on Oct 26, 2026

    @suhaibmujahid
    Member

    @SanyaKor that's better than nothing, but ideally, if it isn't too complex, run the tests for the individual services, agents, or libs that changed.

    An extra step would be to use the workspace dependency graph to also run tests for dependent packages. For example, if we change libs/phabricator-client, run the tests for libs/phabricator-proxy too, since it depends on it.

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

    Type

    Fields

    Priority

    None yet

    Effort

    Medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions