Skip to content

8344316: security/auth/callback/TextCallbackHandler/Password.java make runnable with JTReg and add the UI #22951

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 11 commits into from

Conversation

myankelev
Copy link
Member

@myankelev myankelev commented Jan 7, 2025

  • Changed security/auth/callback/TextCallbackHandler/Password.java to run with JTReg, now the dialog box with instructions will appear as a ui

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-8344316: security/auth/callback/TextCallbackHandler/Password.java make runnable with JTReg and add the UI (Bug - P4)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 22951

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

Using diff file

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

Using Webrev

Link to Webrev Comment

… fail if run with JTReg

test path security/auth/callback/TextCallbackHandler/Password.java
@bridgekeeper bridgekeeper bot added the oca Needs verification of OCA signatory status label Jan 7, 2025
@bridgekeeper
Copy link

bridgekeeper bot commented Jan 7, 2025

Hi @myankelev, welcome to this OpenJDK project and thanks for contributing!

We do not recognize you as Contributor and need to ensure you have signed the Oracle Contributor Agreement (OCA). If you have not signed the OCA, please follow the instructions. Please fill in your GitHub username in the "Username" field of the application. Once you have signed the OCA, please let us know by writing /signed in a comment in this pull request.

If you already are an OpenJDK Author, Committer or Reviewer, please click here to open a new issue so that we can record that fact. Please use "Add GitHub user myankelev" as summary for the issue.

If you are contributing this work on behalf of your employer and your employer has signed the OCA, please let us know by writing /covered in a comment in this pull request.

@openjdk
Copy link

openjdk bot commented Jan 7, 2025

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

8344316: security/auth/callback/TextCallbackHandler/Password.java make runnable with JTReg and add the UI

Reviewed-by: weijun

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

  • 2f2f7cf: 8349084: Update vectors used in several PQC benchmarks
  • b9b62a0: 8346792: serviceability/jvmti/vthread/GetThreadState/GetThreadState.java testObjectWaitMillis failed
  • 6b994cd: 8333697: C2: Hit MemLimit in PhaseCFG::global_code_motion
  • 2ff8440: 8349344: Clarify documentation of Arena.ofConfined
  • 19399d2: 8348572: C2 compilation asserts due to unexpected irreducible loop
  • 6146588: 8348190: Framework for tracing makefile inclusion and parsing
  • 66a3898: 8348659: AArch64: IR rule failure with compiler/loopopts/superword/TestSplitPacks.java
  • 40603a5: 8349214: Improve size optimization flags for MSVC builds
  • 0926949: 8347629: Test FailOverDirectExecutionControlTest.java fails with -Xcomp
  • a51e669: 8349200: [JMH] time.format.ZonedDateTimeFormatterBenchmark fails
  • ... and 417 more: https://git.openjdk.org/jdk/compare/f1196638b347c9a2e7d7dc1795c6c24ea7efe711...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 (@wangweij) 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
Copy link

openjdk bot commented Jan 7, 2025

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

  • security

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 security security-dev@openjdk.org label Jan 7, 2025
@myankelev
Copy link
Member Author

/covered

@bridgekeeper bridgekeeper bot added the oca-verify Needs verification of OCA signatory status label Jan 7, 2025
@bridgekeeper
Copy link

bridgekeeper bot commented Jan 7, 2025

Thank you! Please allow for a few business days to verify that your employer has signed the OCA. Also, please note that pull requests that are pending an OCA check will not usually be evaluated, so your patience is appreciated!

@@ -45,6 +48,11 @@

public class Password {
public static void main(String args[]) throws Exception {

if (System.getProperty("java.class.path").contains("jtreg")){
throw new RuntimeException("This is a manual testing, it shouldn't be run with jtreg.");
Copy link
Member

Choose a reason for hiding this comment

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

Was a crash necessary ? Can't we bail out ?

Choose a reason for hiding this comment

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

I think it is good to put. As this the manual test and ran by IMT. They are raising issue if the test is failing and actually not going inside the test and checking the steps how to run. As they run all the test using jtreg they will just trigger in bunch. So if we give proper message that "this test will failing while running jtreg , please go and see the steps inside the test to run" will be good

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you, I'll leave it in order to raise an issue. I will also change the wording a bit, to fix the grammar a bit

Choose a reason for hiding this comment

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

Thanks looking good now.

@offamitkumar
Copy link
Member

Also please enable GHA on your repo.

@bridgekeeper bridgekeeper bot removed oca Needs verification of OCA signatory status oca-verify Needs verification of OCA signatory status labels Jan 8, 2025
@openjdk openjdk bot added the rfr Pull request is ready for review label Jan 8, 2025
@mlbridge
Copy link

mlbridge bot commented Jan 8, 2025

@myankelev
Copy link
Member Author

myankelev commented Jan 10, 2025

Also please enable GHA on your repo.

It run once the OCA was confirmed

@wangweij
Copy link
Contributor

Since you have a different fix now, please update the bug title.

@myankelev myankelev changed the title 8344316: Add extra line in security/auth/callback/TextCallbackHandler/Password.java to make clear it is not a JTReg test 8344316: security/auth/callback/TextCallbackHandler/Password.java make runnable with JTReg and add the UI Jan 24, 2025
@openjdk openjdk bot added the ready Pull request is ready to be integrated label Feb 5, 2025
@myankelev
Copy link
Member Author

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Feb 5, 2025
@openjdk
Copy link

openjdk bot commented Feb 5, 2025

@myankelev
Your change (at version 56d1d3e) is now ready to be sponsored by a Committer.

@wangweij
Copy link
Contributor

wangweij commented Feb 5, 2025

/sponsor

@openjdk
Copy link

openjdk bot commented Feb 5, 2025

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

  • 2f2f7cf: 8349084: Update vectors used in several PQC benchmarks
  • b9b62a0: 8346792: serviceability/jvmti/vthread/GetThreadState/GetThreadState.java testObjectWaitMillis failed
  • 6b994cd: 8333697: C2: Hit MemLimit in PhaseCFG::global_code_motion
  • 2ff8440: 8349344: Clarify documentation of Arena.ofConfined
  • 19399d2: 8348572: C2 compilation asserts due to unexpected irreducible loop
  • 6146588: 8348190: Framework for tracing makefile inclusion and parsing
  • 66a3898: 8348659: AArch64: IR rule failure with compiler/loopopts/superword/TestSplitPacks.java
  • 40603a5: 8349214: Improve size optimization flags for MSVC builds
  • 0926949: 8347629: Test FailOverDirectExecutionControlTest.java fails with -Xcomp
  • a51e669: 8349200: [JMH] time.format.ZonedDateTimeFormatterBenchmark fails
  • ... and 417 more: https://git.openjdk.org/jdk/compare/f1196638b347c9a2e7d7dc1795c6c24ea7efe711...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Feb 5, 2025
@openjdk openjdk bot closed this Feb 5, 2025
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review sponsor Pull request is ready to be sponsored labels Feb 5, 2025
@openjdk
Copy link

openjdk bot commented Feb 5, 2025

@wangweij @myankelev Pushed as commit 82bc0a7.

💡 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
integrated Pull request has been integrated security security-dev@openjdk.org
Development

Successfully merging this pull request may close these issues.

4 participants