Skip to content
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

7903872: Option testThreadFactoryPath support relativepath #233

Closed
wants to merge 3 commits into from

Conversation

sendaoYan
Copy link
Member

@sendaoYan sendaoYan commented Oct 21, 2024

Hi all,
Currently, the jtreg option -testThreadFactoryPath doesn't support relativepath.
I think jtreg can support relativepath for option -testThreadFactoryPath, same like to -jdk or -nativepath.
Change has been verified locally, risk is low.


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-7903872: Option testThreadFactoryPath support relativepath (Enhancement - P4)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 233

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

Using diff file

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

Using Webrev

Link to Webrev Comment

Sorry, something went wrong.

@bridgekeeper
Copy link

bridgekeeper bot commented Oct 21, 2024

👋 Welcome back syan! 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 Oct 21, 2024

@sendaoYan This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

7903872: Option testThreadFactoryPath support relativepath

Reviewed-by: cstein, jpai

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 1 new commit pushed to the master branch:

  • 857ed61: 7903193: [jtreg] build and test failures using JDK 18

Please see this link for an up-to-date comparison between the source branch of this pull request and the master branch.
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@sormuras, @jaikiran) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot added the rfr Pull request is ready for review label Oct 21, 2024
@mlbridge
Copy link

mlbridge bot commented Oct 21, 2024

Webrevs

@sormuras
Copy link
Member

Do you know why the void setTestThreadFactoryPath(String testThreadFactoryPath) doesn't get a similar split/parsing treatment as setTimeoutHandlerPath(String timeoutHandlerPath) ?

void setTimeoutHandlerPath(String timeoutHandlerPath) {
Objects.requireNonNull(timeoutHandlerPath);
this.timeoutHandlerPath = new ArrayList<>();
for (String f: timeoutHandlerPath.split(File.pathSeparator)) {
if (f.length() > 0) {
this.timeoutHandlerPath.add(Path.of(f));
}
}
}

@sendaoYan sendaoYan requested a review from sormuras October 21, 2024 12:16
@sormuras
Copy link
Member

Thanks for the update to use NIO API.

Please also extend the existing test in https://github.com/openjdk/jtreg/tree/master/test/testThreadFactory to use both kinds of paths: one absolute path and one relative path.

@sendaoYan
Copy link
Member Author

Please also extend the existing test in https://github.com/openjdk/jtreg/tree/master/test/testThreadFactory to use both kinds of paths: one absolute path and one relative path.

TestThreadFactoryRelativePath has been added for test the relative path. The test has been verified locally.

bash build/make.sh $(pwd)/build/test/TestThreadFactoryRelativePath.ok $(pwd)/build/test/TestThreadFactoryAbsolutePath.ok
find build/test/ -name "*.ok" | xargs cat

@sendaoYan
Copy link
Member Author

GHA report failure gzip: stdin: not in gzip format at Installed distributions stage, seems like github action issue.

@bridgekeeper
Copy link

bridgekeeper bot commented Nov 19, 2024

@sendaoYan This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@sendaoYan
Copy link
Member Author

/open

@openjdk
Copy link

openjdk bot commented Nov 19, 2024

@sendaoYan This pull request is already open

Copy link
Member

@sormuras sormuras left a comment

Choose a reason for hiding this comment

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

Looks good to me.

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.

This looks good to me. I haven't had a chance to run the test myself. Please verify that this updated test as well as existing tests continue to pass, before integrating.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Nov 20, 2024
@sendaoYan
Copy link
Member Author

Thanks all for the review.

The newly added tests and the existing tests run passed locally.

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Nov 20, 2024
@openjdk
Copy link

openjdk bot commented Nov 20, 2024

@sendaoYan
Your change (at version 193923a) is now ready to be sponsored by a Committer.

@jaikiran
Copy link
Member

/sponsor

@openjdk
Copy link

openjdk bot commented Nov 22, 2024

Going to push as commit 8e74d55.
Since your change was applied there has been 1 commit pushed to the master branch:

  • 857ed61: 7903193: [jtreg] build and test failures using JDK 18

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Nov 22, 2024
@openjdk openjdk bot closed this Nov 22, 2024
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review sponsor Pull request is ready to be sponsored labels Nov 22, 2024
@openjdk
Copy link

openjdk bot commented Nov 22, 2024

@jaikiran @sendaoYan Pushed as commit 8e74d55.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@sendaoYan sendaoYan deleted the jbs7903872 branch November 22, 2024 05:50
@sendaoYan
Copy link
Member Author

Thanks for the sponsor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

None yet

3 participants