Skip to content

Conversation

@MikeMcQuaid
Copy link
Member

  • Don't force serial testing when profiling
  • Add --profile flag to tests run in CI
  • Don't try to repeatedly rerun tests to detect flakiness when CodeCov is enabled because it doesn't seem to be a problem anymore

Copilot AI review requested due to automatic review settings November 12, 2025 09:28
Copy link
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

This PR improves profiling capabilities for tests by decoupling profiling from serial test execution. Previously, --profile would force tests to run serially, but now it can work with parallel test execution to show the slowest tests per process.

  • Removed the condition that forced serial testing when --profile is used
  • Added --profile 3 flag to all test configurations in CI to identify slow tests
  • Simplified CI test execution by removing the retry logic for CodeCov flakiness detection

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
Library/Homebrew/dev-cmd/tests.rb Removed args.profile from the condition that disables parallel testing
manpages/brew.1 Updated the --profile flag description to reflect parallel execution support
docs/Manpage.md Updated the --profile flag documentation to clarify parallel behavior
completions/zsh/_brew Updated the --profile completion description for zsh
completions/fish/brew.fish Updated the --profile completion description for fish shell
.github/workflows/tests.yml Added --profile 3 to test flags and removed retry logic for flakiness detection

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Don't force serial testing when profiling
- Add `--profile` flag to tests run in CI
- Don't try to repeatedly rerun tests to detect flakiness when CodeCov
  is enabled because it doesn't seem to be a problem anymore
@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Nov 12, 2025
Merged via the queue into main with commit f2c9625 Nov 12, 2025
38 checks passed
@MikeMcQuaid MikeMcQuaid deleted the improve_test_profiling branch November 12, 2025 16:59
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