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

update testng to 7.3.0 #21992

Merged
merged 14 commits into from
Jul 30, 2021
Merged

update testng to 7.3.0 #21992

merged 14 commits into from
Jul 30, 2021

Conversation

xinlian12
Copy link
Member

@xinlian12 xinlian12 commented Jun 1, 2021

Fix issue: #21777

The JCommander:1.72 is a dependency for org.testng:testing:6.14.3: https://mvnrepository.com/artifact/org.testng/testng/6.14.3

image

Testing 7.3 and Testing 7.4 both have dependency on JCommander 1.78. But can not upgrade to 7.4 for now, because of bug in testing 7.4:
https://github.com/cbeust/testng/blob/master/CHANGES.txt
Fixed: GITHUB-2493: Avoid NPE from TextReporter execution when a dataprovider method provides null

Also need to update to use https to load testing did due to:testng-team/testng#2023

Note: After upgrading to 7.3, you might experience the following exception when running tests with Intellij: "TestNG by default disables loading DTD from unsecure Urls".
Two ways to solve this issue:

  1. Add the following VM option: -Dtestng.dtd.http=true
  2. Upgrade IntelliJ to a newer version, tested working version: https://www.jetbrains.com/idea/whatsnew/#section=mac

@xinlian12
Copy link
Member Author

/azp run java - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@moderakh moderakh left a comment

Choose a reason for hiding this comment

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

this is a major version upgrade on testng.

testng is deeply used for running all integration tests. If we are upgrading testng version we should run the full test CI and make sure we have a clean Ci result. before merging.

@@ -128,7 +128,7 @@ Licensed under the MIT License.
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.14.3</version> <!-- {x-version-update;org.testng:testng;external_dependency} -->
<version>7.4.0</version> <!-- {x-version-update;org.testng:testng;external_dependency} -->
Copy link
Contributor

@moderakh moderakh Jun 2, 2021

Choose a reason for hiding this comment

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

this is a major version upgrade on testng.

testng is deeply used for running all integration tests. If we are upgrading testng version we should run the full test CI and make sure we have a clean Ci result. before merging.


@Retention(java.lang.annotation.RetentionPolicy.RUNTIME)
@Target({METHOD})
@interface Tag {
Copy link
Member

Choose a reason for hiding this comment

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

Where is this used ?

Copy link
Member Author

Choose a reason for hiding this comment

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

in the changeFeedTest.java

Copy link
Member Author

Choose a reason for hiding this comment

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

@Test(groups = { "emulator" }, enabled = false, timeOut = TIMEOUT)
@Tag(name = "EnableFullFidelity")
public void changeFeed_fullFidelity_fromNow() throws Exception {
    changeFeed_withUpdatesAndDelete(true);
}

Copy link
Member

@FabianMeiswinkel FabianMeiswinkel left a comment

Choose a reason for hiding this comment

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

LGTM - thanks

@xinlian12
Copy link
Member Author

/azp run java - cosmos - tests

@xinlian12
Copy link
Member Author

/azp run java - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xinlian12
Copy link
Member Author

/azp run java - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xinlian12
Copy link
Member Author

/azp run java - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xinlian12
Copy link
Member Author

/azp run java - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@moderakh moderakh self-requested a review June 23, 2021 00:01
Copy link
Contributor

@moderakh moderakh left a comment

Choose a reason for hiding this comment

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

LGTM. thanks

@xinlian12 xinlian12 requested a review from benbp as a code owner July 15, 2021 20:58
@xinlian12
Copy link
Member Author

/azp run java - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xinlian12
Copy link
Member Author

/azp run java - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xinlian12
Copy link
Member Author

/azp run java - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xinlian12
Copy link
Member Author

/azp run java - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xinlian12
Copy link
Member Author

/azp run java - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xinlian12
Copy link
Member Author

/check-enforcer override

@xinlian12 xinlian12 merged commit 522b097 into Azure:main Jul 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants