Repository navigation
Limit automatic exclusion PR and commit titles - #8036
Conversation
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
|
@copilot how would titles be truncate? I would prefer if there are multiple testcases just keep the first one all others can be truncated as .. . |
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Updated in 873dc6d: multiple-test titles now show the first test followed by |
There was a problem hiding this comment.
🟡 Changes recommended
The commit message lacks a blank line before the related-comment footer, causing Git to include the URL in the subject and exceed the 72-character limit.
1 open issue
What changed in this PR
This PR addresses #8035 by bounding titles generated by the automatic test-exclusion workflow while preserving the full /exclude test list in the PR body.
Changes:
- Truncate generated titles with
..., reserving space for the legacyAUTO:prefix. - Use the first comment line for title construction and test-name parsing.
- Add regression tests for length boundaries, multiple tests, multiline input, and Unicode.
| File | Description |
|---|---|
| scripts/disabled_tests/tests/test_auto_test_pr_workflow.py | Adds tests for title limits, input handling, and full test-list preservation. |
| .github/workflows/autoTestPR.yml | Generates bounded titles and reuses them for PR titles and commit messages. |
Review effort: Balanced
Fix formatting issues in autoTestPR.yml for commit message. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Automatic exclusion commands can generate excessively long PR titles and commit subjects, particularly when they list multiple tests.
...so commit subjects remain within 72 characters, including the legacyAUTO:prefix./excludePR body.