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

[improve][test] Bump TestNG to 7.6.1 #18521

Merged
merged 1 commit into from
Nov 18, 2022
Merged

Conversation

nodece
Copy link
Member

@nodece nodece commented Nov 17, 2022

Motivation

Bump TestNG to 7.6.1

Modifications

  • Bump TestNG to 7.6.1
  • Fix build

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository: nodece#14

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Nov 17, 2022
@nodece nodece added this to the 2.12.0 milestone Nov 17, 2022
@nodece
Copy link
Member Author

nodece commented Nov 17, 2022

/pulsarbot rerun-failure-checks

@nodece nodece changed the title [improve][test] Bump TestNg to 7.5 [improve][test] Bump TestNG to 7.5 Nov 17, 2022
Copy link
Member

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

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

Comments inline.

Comment on lines +111 to +115
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
<scope>test</scope>
</dependency>
Copy link
Member

Choose a reason for hiding this comment

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

Interesting. Why do we need this dependency explicitly now?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't know why ~, maybe the old testNG includes this library?

pom.xml Outdated
@@ -241,7 +241,7 @@ flexible messaging model and an intuitive client API.</description>
<!-- Set docker-java.version to the version of docker-java used in Testcontainers -->
<docker-java.version>3.2.13</docker-java.version>
<kerby.version>1.1.1</kerby.version>
<testng.version>7.3.0</testng.version>
<testng.version>7.5</testng.version>
Copy link
Member

Choose a reason for hiding this comment

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

I learn the latest version is 7.6.1. Why do we use 7.5 here? Also, 7.5 is not of a full semantic version format.

Copy link
Member Author

Choose a reason for hiding this comment

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

7.6.1 requires JDK 11 or higher. The Pulsar-CI have a JDK 8 test.

Copy link
Member

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

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

+1 as long as no regression.

@Technoboy- Technoboy- added the area/dependency Pull requests that update a dependency file label Nov 18, 2022
@nodece
Copy link
Member Author

nodece commented Nov 18, 2022

Try to bump TestNG to 7.6.1.

@nodece nodece marked this pull request as draft November 18, 2022 03:53
Signed-off-by: Zixuan Liu <nodeces@gmail.com>
@nodece nodece changed the title [improve][test] Bump TestNG to 7.5 [improve][test] Bump TestNG to 7.6.1 Nov 18, 2022
@nodece nodece marked this pull request as ready for review November 18, 2022 10:27
@nodece nodece requested a review from tisonkun November 18, 2022 10:27
@codecov-commenter
Copy link

codecov-commenter commented Nov 18, 2022

Codecov Report

Merging #18521 (86c60bb) into master (7975023) will decrease coverage by 0.33%.
The diff coverage is 59.37%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #18521      +/-   ##
============================================
- Coverage     45.62%   45.28%   -0.34%     
- Complexity    10075    10693     +618     
============================================
  Files           697      757      +60     
  Lines         68024    72781    +4757     
  Branches       7293     7817     +524     
============================================
+ Hits          31033    32961    +1928     
- Misses        33413    36154    +2741     
- Partials       3578     3666      +88     
Flag Coverage Δ
unittests 45.28% <59.37%> (-0.34%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...nt/impl/PulsarClientImplementationBindingImpl.java 72.41% <ø> (-0.47%) ⬇️
...ar/client/impl/conf/ConsumerConfigurationData.java 92.55% <ø> (+2.12%) ⬆️
...he/pulsar/client/impl/TypedMessageBuilderImpl.java 30.76% <59.37%> (+3.56%) ⬆️
...he/pulsar/client/impl/PartitionedProducerImpl.java 30.34% <0.00%> (-5.13%) ⬇️
...apache/pulsar/client/impl/AutoClusterFailover.java 73.33% <0.00%> (-2.78%) ⬇️
...sar/broker/service/schema/SchemaRegistryStats.java 72.50% <0.00%> (-2.50%) ⬇️
...roker/loadbalance/impl/ModularLoadManagerImpl.java 64.38% <0.00%> (-1.34%) ⬇️
...va/org/apache/pulsar/client/impl/ProducerImpl.java 15.84% <0.00%> (-1.17%) ⬇️
...rg/apache/pulsar/broker/web/PulsarWebResource.java 57.36% <0.00%> (-0.94%) ⬇️
.../pulsar/client/impl/ProducerStatsRecorderImpl.java 84.04% <0.00%> (-0.62%) ⬇️
... and 129 more

@tisonkun
Copy link
Member

All tests passed. Merging...

@tisonkun tisonkun merged commit 8b404d4 into apache:master Nov 18, 2022
lifepuzzlefun pushed a commit to lifepuzzlefun/pulsar that referenced this pull request Dec 9, 2022
Signed-off-by: Zixuan Liu <nodeces@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dependency Pull requests that update a dependency file area/test doc-not-needed Your PR changes do not impact docs ready-to-test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants