Skip to content

AutoTestPR /exclude: merge platform into existing ProblemList line - #8039

Merged
smlambert merged 1 commit into
adoptium:masterfrom
sophia-guo:exclude-merge-platform
Dec 1, 2026
Merged

smlambert merged 1 commit into
adoptium:masterfrom
sophia-guo:exclude-merge-platform

Conversation

@sophia-guo

@sophia-guo sophia-guo commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #8038

When /exclude is used for a test that already has a line in the target ProblemList file, the new platform(s) are now appended (comma-separated, existing order kept) to that line instead of adding a second line, which made duplicate_finder.sh fail.

  • If the issue URL differs, it is appended comma-separated to the issue field.
  • If the URL and all platforms are already present, nothing changes (idempotent).
  • Commented lines are ignored; tests without an existing line are appended as before.

Example: compiler/vectorapi/VectorMaskCompareNotTest.java https://bugs.openjdk.org/browse/JDK-8368206 linux-riscv64,aix-ppc64 + /exclude ... x86-64_linux jdk=25 becomes ... linux-riscv64,aix-ppc64,x86-64_linux.

Assist-by IBM Bob

Instead of appending a duplicate line when the test is already listed,
append the new platform (and issue URL if different) comma-separated to
the existing line. Fixes adoptium#8038

Signed-off-by: Sophia Guo <sophia.gwf@gmail.com>
Copilot AI balanced review requested due to automatic review settings November 24, 2026 18:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the change to merge exclusions into existing ProblemList entries.

No open issues 🎉

What changed in this PR

Updates AutoTestPR’s /exclude handling to merge exclusions into an existing ProblemList entry rather than create duplicate test lines, addressing #8038.

Changes:

  • Merges new platforms and issue URLs into existing entries while preserving order and leaving unchanged entries untouched.
  • Adds tests for merging, repeated requests, new-test appends, and ignoring commented lines.
File Description
scripts/​disabled_tests/​tests/​test_exclude_openjdk.py Adds coverage for merging exclusions and preserving append behavior.
scripts/​disabled_tests/​exclude_openjdk.py Adds ordered, comma-separated merging and updates existing entries in place.

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues were identified for the change to merge existing ProblemList entries instead of adding duplicates.

No open issues 🎉

Review effort: Balanced

@sophia-guo
sophia-guo requested review from andrew-m-leonard and smlambert and removed request for andrew-m-leonard and smlambert December 1, 2026 14:54
@smlambert
smlambert merged commit 06c9be3 into adoptium:master Dec 1, 2026
4 checks passed
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.

AutoTestPR /exclude: merge platform or issue links into existing ProblemList line instead of adding a duplicate line

4 participants