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

8323637: Capture hotspot replay files in GHA #17392

Closed
wants to merge 3 commits into from

Conversation

magicus
Copy link
Member

@magicus magicus commented Jan 12, 2024

From the bug report:

jdk/.github/scripts/gen-test-results.sh is capable of capture hs_err_* file for erroneous and failed tests. They are also exposed under tag <details><summary>View HotSpot error log</summary>.

I think we can do the same thing for replay files. A replay file is automatically generated when compiler threads encounter a fatal error. sometimes, we can only trigger the compilation error on GHA. attached replay file is invaluable.


I have not figured out how to provoke a replay file on GHA, so this is untested, but since it is based on the hs_err logic I'm pretty confident that it works. If it turns out to be problematic, let's fix it in a follow up.


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

  • JDK-8323637: Capture hotspot replay files in GHA (Enhancement - P4)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 17392

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/17392.diff

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Jan 12, 2024

👋 Welcome back ihse! 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 openjdk bot added the rfr Pull request is ready for review label Jan 12, 2024
@openjdk
Copy link

openjdk bot commented Jan 12, 2024

@magicus The following label will be automatically applied to this pull request:

  • build

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added the build build-dev@openjdk.org label Jan 12, 2024
@mlbridge
Copy link

mlbridge bot commented Jan 12, 2024

Webrevs

Copy link
Member

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

Except that current GHA is broken, and we would want to give it as spin before integrating. I sent a note to ops@ about this yesterday, but got no reply. Maybe you can poke them a bit? The problem is the git.openjdk.java.net forwarder not working...

@openjdk
Copy link

openjdk bot commented Jan 12, 2024

@magicus 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:

8323637: Capture hotspot replay files in GHA

Reviewed-by: shade

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 27 new commits pushed to the master branch:

  • 8c238ed: 8318707: Remove the Java Management Extension (JMX) Management Applet (m-let) feature
  • cd0fe37: 8323641: Test compiler/loopopts/superword/TestAlignVectorFuzzer.java timed out
  • 45c65e6: 8323577: C2 SuperWord: remove AlignVector restrictions on IR tests added in JDK-8305055
  • 8643cc2: 8323610: G1: HeapRegion pin count should be size_t to avoid overflows
  • e66a76f: 8323660: Serial: Fix header ordering and indentation
  • ba3c3bb: 8323519: Add applications/ctw/modules to Hotspot tiered testing
  • 922f8e4: 8323693: Update some copyright announcements in the new files created in 8234502
  • 1515bd7: 8322077: Add Ideal transformation: (~a) | (~b) => ~(a & b)
  • bdee968: 4760025: sRGB conversions to and from CIE XYZ incorrect
  • 71d9a83: 8323243: JNI invocation of an abstract instance method corrupts the stack
  • ... and 17 more: https://git.openjdk.org/jdk/compare/3e19bf88d5b51fe10c183f930b99bce961a368c1...master

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 master branch, type /integrate in a new comment.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Jan 12, 2024
@magicus
Copy link
Member Author

magicus commented Jan 12, 2024

I agree, we want to see green checks for GHA. I thought it looked like my GHA runs on another branch was working, so maybe it is fixed now. Trying to get GHA to rerun by pushing an empty commit; I have forgotten if this in fact works. :)

@magicus
Copy link
Member Author

magicus commented Jan 12, 2024

(Sorry for the force push, I added a dummy commit locally touching real files, but I never intended to push it to this branch)

@openjdk
Copy link

openjdk bot commented Jan 12, 2024

@magicus Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See OpenJDK Developers’ Guide for more information.

@shipilev
Copy link
Member

shipilev commented Jan 15, 2024

BTW, you can just go to https://github.com/magicus/jdk/actions/workflows/main.yml -- and trigger the workflow on your branch by hand, without doing any commits. Bots would pick that up.

@magicus
Copy link
Member Author

magicus commented Jan 15, 2024

I did not think such a run would show up in the check status in the PR..? But maybe the bots are more intelligent than I give them credit for. 🤖 I'll try that next time, thanks!

@shipilev
Copy link
Member

I did not think such a run would show up in the check status in the PR..? But maybe the bots are more intelligent than I give them credit for. 🤖 I'll try that next time, thanks!

They would show up here, just not instantaneously. I do that for both initial and workflow re-runs all the time.

@magicus
Copy link
Member Author

magicus commented Jan 15, 2024

/integrate

@openjdk
Copy link

openjdk bot commented Jan 15, 2024

Going to push as commit c84c0ab.
Since your change was applied there have been 32 commits pushed to the master branch:

  • f368a0c: 8320328: Restore interrupted flag in ImageIcon.loadImage
  • a45b5b4: 8323722: Serial: Remove unused no_gc_in_progress
  • 7e0a4ed: 8323101: C2: assert(n->in(0) == nullptr) failed: divisions with zero check should already have bailed out earlier in split-if
  • 34f85ee: 8323584: AArch64: Unnecessary ResourceMark in NativeCall::set_destination_mt_safe
  • 62fd26f: 8323700: Add fontconfig requirement to building.md for Alpine Linux
  • 8c238ed: 8318707: Remove the Java Management Extension (JMX) Management Applet (m-let) feature
  • cd0fe37: 8323641: Test compiler/loopopts/superword/TestAlignVectorFuzzer.java timed out
  • 45c65e6: 8323577: C2 SuperWord: remove AlignVector restrictions on IR tests added in JDK-8305055
  • 8643cc2: 8323610: G1: HeapRegion pin count should be size_t to avoid overflows
  • e66a76f: 8323660: Serial: Fix header ordering and indentation
  • ... and 22 more: https://git.openjdk.org/jdk/compare/3e19bf88d5b51fe10c183f930b99bce961a368c1...master

Your commit was automatically rebased without conflicts.

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

openjdk bot commented Jan 15, 2024

@magicus Pushed as commit c84c0ab.

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

@magicus magicus deleted the gha-replay branch January 29, 2024 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build build-dev@openjdk.org integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

2 participants