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

Upgrade dependencies, Upgrade to JDK17 #2747

Merged
merged 14 commits into from Apr 29, 2022
Merged

Upgrade dependencies, Upgrade to JDK17 #2747

merged 14 commits into from Apr 29, 2022

Conversation

hduerkop
Copy link
Contributor

@hduerkop hduerkop commented Apr 7, 2022

Fixes # .

Did you remember to?

  • Add test case(s)
  • Update CHANGES.txt
  • Auto applied styling via ./gradlew autostyleApply

We encourage pull requests that:

  • Add new features to TestNG (or)
  • Fix bugs in TestNG

If your pull request involves fixing SonarQube issues then we would suggest that you please discuss this with the
TestNG-dev before you spend time working on it.

Note: For more information on contribution guidelines please make sure you refer our Contributing section for detailed set of steps.

@krmahadevan
Copy link
Member

@hduerkop - the minimum JDK version of TestNG cannot yet be more than 11.

We havent yet released one version that uses jdk11 as default minimum version.

So please exclude the JDK bump from your changeset and update this PR.

Copy link
Member

@juherr juherr left a comment

Choose a reason for hiding this comment

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

LGTM except the jdk target (we want to support the previous and the current LTS : 11 + 17)

import org.testng.IReporter;
import org.testng.ITestNGListener;
import org.testng.TestNG;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import org.testng.reporters.EmailableReporter;
import org.testng.reporters.EmailableReporter2;
import test.SimpleBaseTest;

public class EmailableReporterTest extends SimpleBaseTest {
Copy link
Member

Choose a reason for hiding this comment

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

Same goes for this as well. Any specific reason behind us removing off this test that works with a custom security manager?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed it because of https://openjdk.java.net/jeps/411 .

Copy link
Member

Choose a reason for hiding this comment

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

@hduerkop - Please revert it back since we are still saying that we are going to be JDK11 as the minimum JDK but the security manager has been deprecated in JDK17. So we should perhaps leave it there as is until TestNG moves into JDK17 or above as its minimum JDK.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have to disagree here since JDK17 is the current LTS and is or soon will be dominant on build platforms

Copy link
Member

Choose a reason for hiding this comment

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

@hduerkop - if testng has jdk11 as its minimum jdk then we will need to have everything that exists in jdk11 including tests that test features which are relevant for jdk11 as well.

I agree that build systems atleast on the open source world may move forward but we need to be cognizant of user needs and cannot enforce this upon our users.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is not an enforcement, but an option to use JDK17 this way - 11 and 17 work this way.

Copy link
Member

Choose a reason for hiding this comment

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

What was the initial objective of the test? Is it another way to test it?

Copy link
Member

@juherr juherr left a comment

Choose a reason for hiding this comment

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

LGTM but need a major release. Maybe we need to make a new release before merging.


tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "11"
Copy link
Member

Choose a reason for hiding this comment

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

Is it possible to manage this version in the gradle properties file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think so, but feel free to improve it

@juherr
Copy link
Member

juherr commented Apr 27, 2022

@krmahadevan do you plan a release soon ?

@krmahadevan
Copy link
Member

@hduerkop - Can you please help fix the merge conflicts so that this PR can be merged ?

@krmahadevan
Copy link
Member

@krmahadevan do you plan a release soon ?

@juherr - We can do that. 7.5 was released in Jan and we do have some bug fixes that can be released along with the JDK11 requirements as well. I will wait for this PR to be mergeable (after conflicts have been resolved) and then maybe we can go through with a release.

@hduerkop
Copy link
Contributor Author

@krmahadevan it looks mergeable to me.

@krmahadevan krmahadevan merged commit e3fe52a into testng-team:master Apr 29, 2022
@hduerkop hduerkop deleted the feature/update-dependencies branch May 3, 2022 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants