Skip to content

8339524: Clean up a few ExtendedRobot tests #20846

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

Closed
wants to merge 15 commits into from

Conversation

alisenchung
Copy link
Contributor

@alisenchung alisenchung commented Sep 4, 2024

Cleaning up tests building ExtendedRobot that shouldn't be.


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-8339524: Clean up a few ExtendedRobot tests (Bug - P4)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 20846

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

Using diff file

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

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Sep 4, 2024

👋 Welcome back achung! 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 Sep 4, 2024

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

8339524: Clean up a few ExtendedRobot tests

Reviewed-by: honkar, aivanov, prr

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

  • 4d898aa: 8344896: Remove obsolete checks for AWTPermission accessClipboard
  • 08dfc4a: 8344213: Cleanup OpaqueLoop*Node verification code for Assertion Predicates
  • 593a589: 8344319: SM cleanup in jdk.dynalink module
  • 15ae8d0: 8319993: Update Unicode Data Files to 16.0.0
  • a032de2: 8344577: Virtual thread tests are timing out on some macOS systems
  • 4110d39: 8344865: SM cleanup in sun/reflect/annotation
  • 1334191: 8334474: RISC-V: verify perf of ExpandBits/CompressBits (rvv)
  • e29b0ed: 8344181: Remove SecurityManager and related calls from jdk.management and jdk.management.agent
  • cb1c736: 8344363: FullGCForwarding::initialize_flags is called after ObjLayout::initialize
  • c6b14c6: 8344841: ClassPrinter prints confusing value for null
  • ... and 2222 more: https://git.openjdk.org/jdk/compare/6238bc8da2abe7a1f0cdd98c0af01e9ba1869ec3...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
Copy link

openjdk bot commented Sep 4, 2024

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

  • client

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.

@alisenchung alisenchung marked this pull request as ready for review September 5, 2024 15:09
@openjdk openjdk bot added the rfr Pull request is ready for review label Sep 5, 2024
@mlbridge
Copy link

mlbridge bot commented Sep 5, 2024

Copy link
Contributor

@honkar-jdk honkar-jdk left a comment

Choose a reason for hiding this comment

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

Are these the only two tests being changed as part of this PR?
Please update copyright years and expand import statements.

@aivanov-jdk
Copy link
Member

Cleaning up tests building ExtendedRobot that shouldn't be.

The title suggest a larger amount of clean-up. “Clean up a few tests” could be better. (Git recommends the use of imperative mood in titles: “Clean up” instead of “Cleaning up”, and it's shorter.

@bridgekeeper
Copy link

bridgekeeper bot commented Oct 18, 2024

@alisenchung 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!

@alisenchung alisenchung changed the title 8339524: Clean up ExtendedRobot tests 8339524: Clean up a few ExtendedRobot tests Oct 18, 2024
@alisenchung
Copy link
Contributor Author

@aivanov-jdk @honkar-jdk I've verified that these 2 tests are the only ones currently building ExtendedRobot unnecessarily. I will migrate some ExtendedRobot methods to Robot after this but I would like to clean these tests up first to make it simpler. Can you take another look at these 2 tests?

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Oct 22, 2024
@aivanov-jdk
Copy link
Member

I will migrate some ExtendedRobot methods to Robot

Are you saying you'll add new public methods to java.awt.Robot?

@openjdk openjdk bot removed the ready Pull request is ready to be integrated label Nov 14, 2024
@alisenchung
Copy link
Contributor Author

I will migrate some ExtendedRobot methods to Robot

Are you saying you'll add new public methods to java.awt.Robot?

Yes, I will be adding new public methods to Robot in this PR #20846
@aivanov-jdk Can you take another look at these tests?

@aivanov-jdk
Copy link
Member

I will migrate some ExtendedRobot methods to Robot

Are you saying you'll add new public methods to java.awt.Robot?

Yes, I will be adding new public methods to Robot in this PR #20846

You referenced this same PR.

Is it really the intention? What kind of methods are you planning to add to the Robot class?

Robot is a public API, adding new public methods to it requires a CSR.

@aivanov-jdk Can you take another look at these tests?

I will. If I understand correctly, you updated the PR less than 10 minutes ago.

@honkar-jdk
Copy link
Contributor

honkar-jdk commented Nov 14, 2024

@aivanov-jdk

Is it really the intention? What kind of methods are you planning to add to the Robot class?

Robot is a public API, adding new public methods to it requires a CSR.

This seems to be the correct PR: #22044

Copy link
Contributor

@honkar-jdk honkar-jdk left a comment

Choose a reason for hiding this comment

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

LGTM apart from the following minor inline comments.

Since @aivanov-jdk reviewed previously please wait to see in case he wants to add anything additional.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Nov 15, 2024
@openjdk openjdk bot removed the ready Pull request is ready to be integrated label Nov 18, 2024
Copy link
Contributor

@honkar-jdk honkar-jdk left a comment

Choose a reason for hiding this comment

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

Updated changes LGTM

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Nov 18, 2024
@alisenchung
Copy link
Contributor Author

imports were fixed, test is passing on windows now

@openjdk openjdk bot removed the ready Pull request is ready to be integrated label Nov 19, 2024
Copy link
Member

@aivanov-jdk aivanov-jdk 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 except for adding robot.delay(500).

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Nov 22, 2024
@alisenchung
Copy link
Contributor Author

All comments resolved, can I get a re-approval for the new changes

@openjdk
Copy link

openjdk bot commented Nov 25, 2024

⚠️ @alisenchung This pull request contains merges that bring in commits not present in the target repository. Since this is not a "merge style" pull request, these changes will be squashed when this pull request in integrated. If this is your intention, then please ignore this message. If you want to preserve the commit structure, you must change the title of this pull request to Merge <project>:<branch> where <project> is the name of another project in the OpenJDK organization (for example Merge jdk:master).

@openjdk openjdk bot removed the ready Pull request is ready to be integrated label Nov 25, 2024
Copy link
Contributor

@honkar-jdk honkar-jdk left a comment

Choose a reason for hiding this comment

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

Updated changes LGTM.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Nov 25, 2024
@alisenchung
Copy link
Contributor Author

/integrate

@openjdk
Copy link

openjdk bot commented Nov 25, 2024

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

  • 0276079: 8344667: Remove most uses of AWT Permissions from the desktop module
  • 8de158a: 8339134: Callers of Exceptions::fthrow should ensure exception message lengths avoid the INT_MAX limits of os::vsnprintf
  • df2d4c1: 8344898: SM cleanup of java.base sun/util calendar, locale, cldr, and resources
  • 4d898aa: 8344896: Remove obsolete checks for AWTPermission accessClipboard
  • 08dfc4a: 8344213: Cleanup OpaqueLoop*Node verification code for Assertion Predicates
  • 593a589: 8344319: SM cleanup in jdk.dynalink module
  • 15ae8d0: 8319993: Update Unicode Data Files to 16.0.0
  • a032de2: 8344577: Virtual thread tests are timing out on some macOS systems
  • 4110d39: 8344865: SM cleanup in sun/reflect/annotation
  • 1334191: 8334474: RISC-V: verify perf of ExpandBits/CompressBits (rvv)
  • ... and 2225 more: https://git.openjdk.org/jdk/compare/6238bc8da2abe7a1f0cdd98c0af01e9ba1869ec3...master

Your commit was automatically rebased without conflicts.

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

openjdk bot commented Nov 25, 2024

@alisenchung Pushed as commit 1623257.

💡 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
client [email protected] integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

5 participants