Skip to content

Add /re-enable command to remove OpenJDK test exclusions from ProblemList files#7170

Open
sophia-guo with Copilot wants to merge 2 commits into
masterfrom
copilot/add-re-enable-command-support
Open

Add /re-enable command to remove OpenJDK test exclusions from ProblemList files#7170
sophia-guo with Copilot wants to merge 2 commits into
masterfrom
copilot/add-re-enable-command-support

Conversation

Copilot AI commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Counterpart to the existing /exclude command: /re-enable lets issue authors and project committers automatically create a PR that removes exclusion lines from OpenJDK ProblemList files.

Command format

/re-enable <testcases> <platform> [jdk=<versions>] [impl=<impl>] [variant=<variant>]

Examples:

/re-enable java/beans/PropertyEditor/TestColorClassValue.java macosx-all
/re-enable test.java linux-x64 jdk=11,17,21
/re-enable test.java linux-x64 jdk=11 impl=openj9
/re-enable test.java linux-x64 variant=alpine

Omitting jdk= targets all available LTS + latest versions, same as /exclude.

Changes

  • scripts/disabled_tests/reenable_openjdk.py – New script that parses /re-enable comments and removes matching lines (matched by testcase + platform) from the appropriate ProblemList files. Supports the same jdk, impl, and variant selectors as exclude_openjdk.py.

  • scripts/disabled_tests/tests/test_reenable_openjdk.py – 27 unit tests covering command parsing, target file resolution, and line removal (including edge cases: wrong platform, missing entry, comment preservation).

  • .github/workflows/autoTestPR.yml – New reenable-openjdk-test job triggered by /re-enable issue comments. Mirrors the exclude-openjdk-test job: permission check → acknowledgement comment → run script → open PR → add test re-enabled label.

- Add scripts/disabled_tests/reenable_openjdk.py: new script that
  processes /re-enable comments and removes matching exclusion lines
  from ProblemList files. Command format:
    /re-enable <testcases> <platform> [jdk=<versions>] [impl=<impl>] [variant=<variant>]
- Add scripts/disabled_tests/tests/test_reenable_openjdk.py: unit tests
  covering command parsing, target resolution, and line removal logic
- Add reenable-openjdk-test job to .github/workflows/autoTestPR.yml:
  triggered by /re-enable comments, mirrors the exclude-openjdk-test
  job, creates a PR that removes the exclusion lines and labels the
  issue test re-enabled

Closes #7169
Copilot AI changed the title [WIP] Add re-enable command support for OpenJDK test re-enable Add /re-enable command to remove OpenJDK test exclusions from ProblemList files Jun 12, 2026
Copilot AI requested a review from sophia-guo June 12, 2026 20:56
@sophia-guo

Copy link
Copy Markdown
Contributor

@Coilot can I do a test now? by adding the command in this comment?

@sophia-guo sophia-guo marked this pull request as ready for review June 17, 2026 20:46

@smlambert smlambert 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.

Can we add userGuide doc with this PR which includes the various assumptions made by this code that gives precedence to variants, etc?

@smlambert

Copy link
Copy Markdown
Contributor

Also thinking that if this is part of a 'pair' of actions that are related, then the naming could be improved to indicate the relationship such as:

  • exclude and re-include
  • disable and re-enable

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