Skip to content

7904015: --verify-exclude fails to abort the test run when discovering failures #265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

LudwikJaniuk
Copy link

@LudwikJaniuk LudwikJaniuk commented May 21, 2025

Exit after discovering errors in exclude files


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • CODETOOLS-7904015: --verify-exclude fails to abort the test run when discovering failures (Bug - P4)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jtreg.git pull/265/head:pull/265
$ git checkout pull/265

Update a local copy of the PR:
$ git checkout pull/265
$ git pull https://git.openjdk.org/jtreg.git pull/265/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 265

View PR using the GUI difftool:
$ git pr show -t 265

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jtreg/pull/265.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented May 21, 2025

👋 Welcome back lujaniuk! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented May 21, 2025

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk bot changed the title CODETOOLS-7904015 --verify-exclude fails to abort the test run when discovering failures 7904015: --verify-exclude fails to abort the test run when discovering failures May 21, 2025
@openjdk openjdk bot added the rfr Pull request is ready for review label May 21, 2025
@mlbridge
Copy link

mlbridge bot commented May 21, 2025

Webrevs

Copy link
Member

@jaikiran jaikiran left a comment

Choose a reason for hiding this comment

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

Hello Ludvig, this looks reasonable to me, but I think we should have a self test for this to verify that it indeed exits with a non-zero exit code in situations like these.

@sormuras
Copy link
Member

Hello Ludvig, this looks reasonable to me, but I think we should have a self test for this to verify that it indeed exits with a non-zero exit code in situations like these.

Maybe the logic in VerifyExcludeTest.gmk can be extend to check the exit code?

@jaikiran
Copy link
Member

Maybe the logic in VerifyExcludeTest.gmk can be extend to check the exit code?

Yes, that should be fine.

@LudwikJaniuk
Copy link
Author

Thank you for the suggestion, I have added the self test. Testing the exit code itself was cumbersome, as the return code also varies with test results. I opted to check for the "test results" string instead, hope this is okay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rfr Pull request is ready for review
Development

Successfully merging this pull request may close these issues.

3 participants