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

[fix][test] Make base test class method protected so that it passes ReportUnannotatedMethods validation #21976

Merged

Conversation

lhotari
Copy link
Member

@lhotari lhotari commented Jan 26, 2024

Motivation

  • PulsarSQL / Trino tests in branch-3.1 fail with this error log:
FATAL: io.trino.testng.services.ReportUnannotatedMethods: Test class org.apache.pulsar.sql.presto.TestPulsarAuth has methods which are public but not explicitly annotated. Are they missing @Test?
		public void org.apache.pulsar.broker.auth.MockedPulsarServiceBaseTest.reconnectAllConnections() throws java.lang.Exception
JVM will be terminated

Modifications

  • make reconnectAllConnections method protected and the static method private.

Documentation

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

…nfused as a test method

- PulsarSQL / Trino tests in branch-3.1 fail with this error log:
FATAL: io.trino.testng.services.ReportUnannotatedMethods: Test class org.apache.pulsar.sql.presto.TestPulsarAuth has methods which are public but not explicitly annotated. Are they missing @test?
    public void org.apache.pulsar.broker.auth.MockedPulsarServiceBaseTest.reconnectAllConnections() throws java.lang.Exception
JVM will be terminated
@lhotari
Copy link
Member Author

lhotari commented Jan 26, 2024

/pulsarbot rerun-failure-checks

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d37d31f) 73.61% compared to head (f5f15b5) 73.59%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #21976      +/-   ##
============================================
- Coverage     73.61%   73.59%   -0.02%     
- Complexity    32433    32450      +17     
============================================
  Files          1861     1861              
  Lines        138738   138738              
  Branches      15200    15200              
============================================
- Hits         102130   102109      -21     
- Misses        28704    28734      +30     
+ Partials       7904     7895       -9     
Flag Coverage Δ
inttests 24.09% <ø> (-0.03%) ⬇️
systests 23.64% <ø> (+<0.01%) ⬆️
unittests 72.89% <ø> (+<0.01%) ⬆️

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

see 61 files with indirect coverage changes

@lhotari lhotari merged commit 67354b1 into apache:master Jan 27, 2024
54 checks passed
lhotari added a commit that referenced this pull request Jan 27, 2024
…eportUnannotatedMethods validation (#21976)

(cherry picked from commit 67354b1)
lhotari added a commit that referenced this pull request Jan 27, 2024
…eportUnannotatedMethods validation (#21976)

(cherry picked from commit 67354b1)
lhotari added a commit that referenced this pull request Jan 27, 2024
…eportUnannotatedMethods validation (#21976)

(cherry picked from commit 67354b1)
@Technoboy- Technoboy- modified the milestones: 3.3.0, 3.2.0 Jan 27, 2024
mukesh-ctds pushed a commit to datastax/pulsar that referenced this pull request Mar 1, 2024
…eportUnannotatedMethods validation (apache#21976)

(cherry picked from commit 67354b1)
(cherry picked from commit c315c7b)
lhotari added a commit that referenced this pull request Mar 5, 2024
…eportUnannotatedMethods validation (#21976)

(cherry picked from commit 67354b1)
mukesh-ctds pushed a commit to datastax/pulsar that referenced this pull request Mar 6, 2024
…eportUnannotatedMethods validation (apache#21976)

(cherry picked from commit 67354b1)
(cherry picked from commit c315c7b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants