jdk icon indicating copy to clipboard operation
jdk copied to clipboard

8292309 : Fix java/awt/PrintJob/ConstrainedPrintingTest/ConstrainedPrintingTest.java test

Open lawrence-andrew opened this issue 3 years ago • 3 comments
trafficstars

  1. Fixed Parse Exception by removing yesno test result: Error. Parse Exception: Arguments to `manual' option not supported: yesno
  2. Throw jtreg.SkippedException when printer is not configured on the test host
  3. Replaced Sysout & TestDialog with ManualTestFrame, which allows to the user to better decide test results and to take screen shot if test fails.

@shurymury


Progress

  • [ ] Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • [x] Change must not contain extraneous whitespace
  • [x] Commit message must refer to an issue

Issue

  • JDK-8292309: Fix java/awt/PrintJob/ConstrainedPrintingTest/ConstrainedPrintingTest.java test

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 9865

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

Using diff file

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

lawrence-andrew avatar Aug 12 '22 23:08 lawrence-andrew

:wave: Welcome back lawrence-andrew! 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.

bridgekeeper[bot] avatar Aug 12 '22 23:08 bridgekeeper[bot]

@lawrence-andrew 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.

openjdk[bot] avatar Aug 12 '22 23:08 openjdk[bot]

Webrevs

mlbridge[bot] avatar Aug 12 '22 23:08 mlbridge[bot]

LGTM

shurymury avatar Sep 08 '22 15:09 shurymury

I still not sure about the case when we start to throw the "SkippedException" if the printer is not found and the "printer" keyword is set, especially for the manual test case. Is it expected that the user will run the "printer" related test and it will pass automcatically, how we will force to actually run the test in proper envirement?

mrserb avatar Sep 08 '22 23:09 mrserb

Removed @key printer since its a label on the test that used to filter the test & since its a manual test we dn't need the label. We can use SkippedException if printer on available we can throw the exception.

lawrence-andrew avatar Sep 20 '22 21:09 lawrence-andrew

@lawrence-andrew 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:

8292309: Fix java/awt/PrintJob/ConstrainedPrintingTest/ConstrainedPrintingTest.java test

Reviewed-by: jdv

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

  • 3644e26cef71c00e1a2638d2b8bed9c1bda965ca: 8294673: JFR: Add SecurityProviderService#threshold to TestActiveSettingEvent.java
  • 085949a117f1d9c1c6caf7d1755a85cb02fb924b: 8294712: G1: Use index-base iteration for G1FlushHumongousCandidateRemSets
  • b850f052d88bdc012ae91893fd1b63cfce601a8e: 8294758: JFR: Docs build fails after changes to RecordedObject and Timespan
  • 2dbedf0e9326d8b3d79206787528d18e9fef25bd: 8294406: Test runtime/handshake/HandshakeDirectTest.java failed: JVMTI_ERROR_WRONG_PHASE
  • 4d6668e7ee492de828bc36afea7daa535532a2b1: 8294242: JFR: jfr print doesn't handle infinite duration well
  • 5a9cd33632862aa2249794902d4168a7fe143054: 8294509: The sign extension bug applies to 'public static int[] convertSeedBytesToInts(byte[] seed, int n, int z)' in RandomSupport
  • f03934e270aa86de3c6832f9754caba05726726b: 8294578: [PPC64] C2: Missing is_oop information when using disjoint compressed oops mode
  • 3b476a1758cb35a688d70f9518531510666541d6: 8292847: Zero: Allow ergonomics to select the GC
  • 16047e8308a845436f7003e09e604a88bb370632: 8292780: misc tests failed "assert(false) failed: graph should be schedulable"
  • bf39b184ca8aabcc51dc6ea4eee046c69b278710: 8288302: Shenandoah: SIGSEGV in vm maybe related to jit compiling xerces
  • ... and 603 more: https://git.openjdk.org/jdk/compare/e70747b4e9bd9c161b95c88ff0d58609f0b08d42...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.

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 (@jayathirthrao) 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[bot] avatar Oct 03 '22 17:10 openjdk[bot]

/integrate

lawrence-andrew avatar Oct 04 '22 14:10 lawrence-andrew

@lawrence-andrew Your change (at version f9e40ce1a2b2205686e6408427f7e94e28700e1e) is now ready to be sponsored by a Committer.

openjdk[bot] avatar Oct 04 '22 14:10 openjdk[bot]

/sponsor

jayathirthrao avatar Oct 04 '22 18:10 jayathirthrao

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

  • 121d4a5119f98adf30fa759563eec843a6e37d61: 8293579: tools/jpackage/share/jdk/jpackage/tests/UnicodeArgsTest.java fails on Japanese Windows platform
  • 1166a8abd2e5fba16b5cd29431de2628a52a8e08: 8292214: Memory leak in getAllConfigs of awt_GraphicsEnv.c:386
  • 3644e26cef71c00e1a2638d2b8bed9c1bda965ca: 8294673: JFR: Add SecurityProviderService#threshold to TestActiveSettingEvent.java
  • 085949a117f1d9c1c6caf7d1755a85cb02fb924b: 8294712: G1: Use index-base iteration for G1FlushHumongousCandidateRemSets
  • b850f052d88bdc012ae91893fd1b63cfce601a8e: 8294758: JFR: Docs build fails after changes to RecordedObject and Timespan
  • 2dbedf0e9326d8b3d79206787528d18e9fef25bd: 8294406: Test runtime/handshake/HandshakeDirectTest.java failed: JVMTI_ERROR_WRONG_PHASE
  • 4d6668e7ee492de828bc36afea7daa535532a2b1: 8294242: JFR: jfr print doesn't handle infinite duration well
  • 5a9cd33632862aa2249794902d4168a7fe143054: 8294509: The sign extension bug applies to 'public static int[] convertSeedBytesToInts(byte[] seed, int n, int z)' in RandomSupport
  • f03934e270aa86de3c6832f9754caba05726726b: 8294578: [PPC64] C2: Missing is_oop information when using disjoint compressed oops mode
  • 3b476a1758cb35a688d70f9518531510666541d6: 8292847: Zero: Allow ergonomics to select the GC
  • ... and 605 more: https://git.openjdk.org/jdk/compare/e70747b4e9bd9c161b95c88ff0d58609f0b08d42...master

Your commit was automatically rebased without conflicts.

openjdk[bot] avatar Oct 04 '22 18:10 openjdk[bot]

@jayathirthrao @lawrence-andrew Pushed as commit b22a38dedb06199f2cba3b6f8962ddf2f9f4f16d.

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

openjdk[bot] avatar Oct 04 '22 18:10 openjdk[bot]