Skip to content

CR_FILTER=only_subtests|i_want|etc ./tests.sh -R e2e_logging#7870

Open
Copilot wants to merge 3 commits intomainfrom
copilot/add-concurrent-runner-filter
Open

CR_FILTER=only_subtests|i_want|etc ./tests.sh -R e2e_logging#7870
Copilot wants to merge 3 commits intomainfrom
copilot/add-concurrent-runner-filter

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 8, 2026

Tested locally, works as expected

Now one can run CR_FILTER=cpp ./tests.sh -R e2e_logging_http2, or CR_FILTER="cpp|js", for instance.

This avoids commenting out huge blocks on the bottom which then make it to the review, and sometimes even merged in in pre-copilot era, so I mainly did for convenience.


  • Investigate tests.sh, ctest, and ConcurrentRunner (tests/infra/runner.py)
  • Add CR_FILTER env var support in ConcurrentRunner.add to skip non-matching subtests by exact name (e.g. CR_FILTER="testname1|testname2")
  • Switch storage to a plain list with in check (per reviewer request)
  • Verify file parses cleanly and testname2_suffix is excluded for filter testname2

Copilot AI and others added 2 commits May 8, 2026 11:10
Agent-Logs-Url: https://github.com/microsoft/CCF/sessions/df5f100b-506c-4d2b-8254-35fc923c846f

Co-authored-by: maxtropets <16566519+maxtropets@users.noreply.github.com>
Agent-Logs-Url: https://github.com/microsoft/CCF/sessions/df5f100b-506c-4d2b-8254-35fc923c846f

Co-authored-by: maxtropets <16566519+maxtropets@users.noreply.github.com>
Agent-Logs-Url: https://github.com/microsoft/CCF/sessions/46ef3b41-07de-4097-abfb-3958ed01ddbe

Co-authored-by: maxtropets <16566519+maxtropets@users.noreply.github.com>
Copilot AI requested a review from maxtropets May 8, 2026 12:41
@maxtropets maxtropets marked this pull request as ready for review May 8, 2026 13:15
@maxtropets maxtropets requested a review from a team as a code owner May 8, 2026 13:16
Copilot AI review requested due to automatic review settings May 8, 2026 13:16
@maxtropets maxtropets changed the title Add CR_FILTER env var to ConcurrentRunner for exact sub-test filtering CR_FILTER=only_subtests|i_want|hehehe ./tests.sh -R e2e_logging May 8, 2026
@maxtropets maxtropets changed the title CR_FILTER=only_subtests|i_want|hehehe ./tests.sh -R e2e_logging CR_FILTER=only_subtests|i_want|etc ./tests.sh -R e2e_logging May 8, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an opt-in environment-variable based filter to the Python e2e ConcurrentRunner so developers can run only specific sub-tests by exact name match, without relying on regex matching.

Changes:

  • Introduces CR_FILTER parsing (pipe-separated names) to control which sub-tests are added.
  • Skips adding sub-tests in ConcurrentRunner.add() when their name does not exactly match the filter entries.

Custom instructions used:

  • .github/copilot-instructions.md
  • .github/instructions/reviewing.instructions.md

Comment thread tests/infra/runner.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants