-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
8316946: jtreg failure handler pages are mislabelling the jcmd/thread/dump_to_file results. #15939
Conversation
…/dump_to_file results.
👋 Welcome back jpai! A progress list of the required criteria for merging this PR into |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on the description this change looks good.
Thanks.
@jaikiran 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:
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 15 new commits pushed to the
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. ➡️ To integrate this PR with the above commit message to the |
Thank you David for the review. |
/integrate |
Going to push as commit 42924ed.
Your commit was automatically rebased without conflicts. |
Can I please get a review of this change which addresses the issue noted in https://bugs.openjdk.org/browse/JDK-8316946?
Failure handler actions can specify a "successArtifacts" property value, which are file name(s) for which hypherlinks will be created in the "processes.html" file. This property value can contain replacable placeholder tokens like "%p" (process id) "%iterCount" (iteration count, if the action's command is repeated).
The issue here was caused by a bug in the handling of the "successArtifacts" value. If there were more than one process for which we were running the action (of collecting thread dumps), then the original (raw) value of "successArtifacts" property wasn't being held on to. As a result, for the second process for which the hyperlink was being created, an incorrect link would be generated.
The commit here retains the raw value of "successArtifacts" property in the
PatternAction
(just like we do for "args" property) so that it can be used to repeatedly replace the placeholders, each time the action is run for a different process.I've run this change against our internal CI to verify it doesn't cause any regressions. tier1, tier2 and tier3 was run successfully. Additionally, I have run a couple of jtreg test cases which intentionally timeout, so that I can verify that the generated "processes.html" now contains the correct hyperlinks to the thread dump files for each process.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/15939/head:pull/15939
$ git checkout pull/15939
Update a local copy of the PR:
$ git checkout pull/15939
$ git pull https://git.openjdk.org/jdk.git pull/15939/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 15939
View PR using the GUI difftool:
$ git pr show -t 15939
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/15939.diff
Webrev
Link to Webrev Comment