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

8266254: Update to use jtreg 6 #1241

Closed
wants to merge 1 commit into from
Closed

Conversation

gdams
Copy link
Member

@gdams gdams commented Jul 19, 2022

Backport required in order to bump to jtreg 6


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

Issues

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk11u-dev pull/1241/head:pull/1241
$ git checkout pull/1241

Update a local copy of the PR:
$ git checkout pull/1241
$ git pull https://git.openjdk.org/jdk11u-dev pull/1241/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 1241

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk11u-dev/pull/1241.diff

@bridgekeeper
Copy link

bridgekeeper bot commented Jul 19, 2022

👋 Welcome back gdams! 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 changed the title Backport 3482cb87fd94e6445ca243722851daa90c00a2c8 8266254: Update to use jtreg 6 Jul 19, 2022
@openjdk
Copy link

openjdk bot commented Jul 19, 2022

This backport pull request has now been updated with issues from the original commit.

@openjdk openjdk bot added backport rfr Pull request is ready for review labels Jul 19, 2022
@mlbridge
Copy link

mlbridge bot commented Jul 19, 2022

Webrevs

@gdams
Copy link
Member Author

gdams commented Jul 19, 2022

The failing windows CI tests will pass when we actually bump the jtreg version in #1239

@RealCLanger
Copy link
Contributor

RealCLanger commented Jul 20, 2022

@shipilev @ArnoZeller @GoeLin: What do you think about bumping jtreg in 11u? Good idea or not?

@shipilev
Copy link
Member

@shipilev @ArnoZeller @GoeLin: What do you think about bumping jtreg in 11u? Good idea or not?

I think we need to run the entirety of tier1..4 to verify all the tests in 11u work fine with new jtreg. The jtreg bump frequently comes with required test updates, and not all of them are linked to jtreg update bug, unfortunately.

@GoeLin
Copy link
Member

GoeLin commented Jul 20, 2022

I think at some point we will need this update. Be as said above we should be careful. I'll run it through our testing.

@ArnoZeller
Copy link
Contributor

I think we will also need:

@gdams
Copy link
Member Author

gdams commented Jul 21, 2022

@ArnoZeller thanks for your feedback. I’ll open backports for those 3 commits.

@GoeLin
Copy link
Member

GoeLin commented Jul 21, 2022

Hi,
our testing shows a row of problems with the change. Arno already spotted some of the fixes in head, thanks! In addition there is
test/nashorn/src/jdk/nashorn/api/scripting/test/ScriptObjectMirrorTest.java:285: error: reference to assertEquals is ambiguous
assertEquals(42.0, obj.to(Double.class));

@gdams
Copy link
Member Author

gdams commented Jul 21, 2022

@ArnoZeller I've raised the 3 backports as mentioned:

@GoeLin I'll look into that test failure, annoyingly the file was removed in JDK14u so will need some investigation.

@gdams
Copy link
Member Author

gdams commented Jul 21, 2022

I've raised https://bugs.openjdk.org/browse/JDK-8290813 to cover the additional nashorn test fix

@gdams
Copy link
Member Author

gdams commented Jul 21, 2022

nashorn test fix PR is here #1255. I've tested it locally and it passes on my machine.

@GoeLin
Copy link
Member

GoeLin commented Jul 22, 2022

Hi, we still see the WebSocket tests failing. Did you test the patch with jtreg 6 in place?
Things like this:
test/jdk/java/net/httpclient/websocket/WebSocketProxyTest.java:155: error: ';' expected
public boolean equals(Object o) {

@gdams
Copy link
Member Author

gdams commented Jul 22, 2022

Hi, we still see the WebSocket tests failing. Did you test the patch with jtreg 6 in place?
Things like this:
test/jdk/java/net/httpclient/websocket/WebSocketProxyTest.java:155: error: ';' expected
public boolean equals(Object o) {

I did test the patch but assumed that I was running the tests incorrectly when I saw that. I also noted that the same failure occurs in jdk17u?

@ArnoZeller
Copy link
Contributor

Hi, we still see the WebSocket tests failing. Did you test the patch with jtreg 6 in place? Things like this: test/jdk/java/net/httpclient/websocket/WebSocketProxyTest.java:155: error: ';' expected public boolean equals(Object o) {

Hi GoeLin,
line 155 says:

record bytes(byte[] bytes) {
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o instanceof bytes other) {
            return Arrays.equals(bytes(), other.bytes());
        }
        return false;
    }
    @Override
    public int hashCode() { return Arrays.hashCode(bytes()); }
    public String toString() {
        return "0x" + HexFormat.of()
                .withUpperCase()
                .formatHex(bytes());
    }
}

record was added with JDK14 I guess. We might have to adopt this to 11.

@gdams
Copy link
Member Author

gdams commented Jul 22, 2022

record was added with JDK14 I guess. We might have to adopt this to 11.

@ArnoZeller how many patches would be involved in this process?

@ArnoZeller
Copy link
Contributor

ArnoZeller commented Jul 22, 2022

record was added with JDK14 I guess. We might have to adopt this to 11.

@ArnoZeller how many patches would be involved in this process?

@gdams I do not mean to downport record - that would break the java spec. You just have to change the test coding to not use record.
I see that the backport is already pushed? Then the test has to be fixed, because this coding does not compile with JDK11.

@gdams
Copy link
Member Author

gdams commented Jul 22, 2022

@gdams I do not mean to downport record - that would break the java spec. You just have to change the test coding to not use record.
I see that the backport is already pushed? Then the test has to be fixed, because this coding does not compile with JDK11.

Understood - I'll see what I can do

@gdams
Copy link
Member Author

gdams commented Jul 22, 2022

@GoeLin I've got a fix for the WebSocket test failures. Take a look at #1265

Copy link
Contributor

@RealCLanger RealCLanger 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 now. SAP nightlies show no regressions together with the other fixes.

@openjdk
Copy link

openjdk bot commented Jul 25, 2022

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

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

8266254: Update to use jtreg 6
8265020: tests must be updated for new TestNG module name

Reviewed-by: clanger

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 52 new commits pushed to 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 (@RealCLanger) 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 ready Pull request is ready to be integrated label Jul 25, 2022
@GoeLin
Copy link
Member

GoeLin commented Jul 25, 2022

Hi @gdams,
The SAP testing is green now with this change.
We run all the tests excluding a small set of shaky tests, but also excluding the headful tests.
This is quite a bunch of tests. Can you somehow make sure these work with jtreg 6?

@gdams
Copy link
Member Author

gdams commented Jul 25, 2022

@GoeLin I'll run the headful tests now to confirm that there are no broken ones.

@gdams
Copy link
Member Author

gdams commented Jul 25, 2022

@GoeLin I've run a full test run and saw one test failure on macos which also fails with jtreg5 so is unrelated

@GoeLin
Copy link
Member

GoeLin commented Jul 28, 2022

I'm a bit concerned about the windows tests. You say "The failing windows CI tests will pass when we actually bump the jtreg version in #1239". If this is the case, only integrate this change if 1239 is ready for integration, too. You may not break the pre-submit tests for others by this.

@gdams
Copy link
Member Author

gdams commented Jul 28, 2022

I'm a bit concerned about the windows tests. You say "The failing windows CI tests will pass when we actually bump the jtreg version in #1239". If this is the case, only integrate this change if 1239 is ready for integration, too. You may not break the pre-submit tests for others by this.

@GoeLin #1239 is ready for integration. I've switched it from draft and set it up as a dependant PR so it should be good to go now.

@gdams
Copy link
Member Author

gdams commented Jul 28, 2022

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Jul 28, 2022
@openjdk
Copy link

openjdk bot commented Jul 28, 2022

@gdams
Your change (at version 3d19dec) is now ready to be sponsored by a Committer.

@gdams
Copy link
Member Author

gdams commented Jul 28, 2022

@GoeLin could you sponsor please?

@RealCLanger
Copy link
Contributor

/sponsor

@openjdk
Copy link

openjdk bot commented Jul 28, 2022

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

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Jul 28, 2022
@openjdk openjdk bot closed this Jul 28, 2022
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Jul 28, 2022
@gdams gdams deleted the jtreg6_ng branch July 28, 2022 12:24
@openjdk openjdk bot removed the sponsor Pull request is ready to be sponsored label Jul 28, 2022
@openjdk
Copy link

openjdk bot commented Jul 28, 2022

@RealCLanger @gdams Pushed as commit 00d9483.

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

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