Skip to content

Rename test file name from *Test2.java to *Test.java to run all tests correctly#13644

Merged
hrsakai merged 3 commits into
apache:masterfrom
equanz:fix_to_run_all_tests
Jan 20, 2022
Merged

Rename test file name from *Test2.java to *Test.java to run all tests correctly#13644
hrsakai merged 3 commits into
apache:masterfrom
equanz:fix_to_run_all_tests

Conversation

@equanz

@equanz equanz commented Jan 6, 2022

Copy link
Copy Markdown
Contributor

Motivation

It seems some test cases like **/*Test2.java aren't run on the default test lifecycle.
This issue is caused by #10148. I'd like to fix it.

Modifications

Verifying this change

  • Make sure that the change passes the CI checks.

This change is a trivial rework / code cleanup without any test coverage.

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (no)
  • The public API: (no)
  • The schema: (no)
  • The default values of configurations: (no)
  • The wire protocol: (no)
  • The rest endpoints: (no)
  • The admin cli options: (no)
  • Anything that affects deployment: (no)

Documentation

  • no-need-doc

@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Jan 6, 2022
@equanz
equanz force-pushed the fix_to_run_all_tests branch from 4516e32 to 2da21db Compare January 6, 2022 09:09
@equanz

equanz commented Jan 7, 2022

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

1 similar comment
@equanz

equanz commented Jan 7, 2022

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@equanz

equanz commented Jan 11, 2022

Copy link
Copy Markdown
Contributor Author

@lhotari Could you please review this PR?

@hezhangjian

Copy link
Copy Markdown
Member

I am a bit confused. It looks like your change code out of test scope, could you please explain why change NamespaceBases and delete method testDistinguishTopicTypeWhenForceDeleteNamespace? Thanks :)

@equanz

equanz commented Jan 11, 2022

Copy link
Copy Markdown
Contributor Author

why change NamespacesBase

After enabling *Test2.java cases, I found some bugs. This PR includes these fixes.

why delete method testDistinguishTopicTypeWhenForceDeleteNamespace

For #12663 changes, can't put invalid path like

// insert an invalid topic name
pulsar.getLocalMetadataStore().put(
"/managed-ledgers/" + exNs + "/persistent/", "".getBytes(), Optional.empty()).join();
.
I wasn't sure this case was still needed, so I deleted it.
If we should run testDistinguishTopicTypeWhenForceDeleteNamespace case, use some method instead of put.

@equanz
equanz force-pushed the fix_to_run_all_tests branch from 2da21db to f7a8a10 Compare January 12, 2022 08:44
@equanz

equanz commented Jan 13, 2022

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

2 similar comments
@equanz

equanz commented Jan 14, 2022

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@equanz

equanz commented Jan 17, 2022

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@equanz
equanz force-pushed the fix_to_run_all_tests branch from f7a8a10 to 446ef2b Compare January 19, 2022 02:47
@equanz

equanz commented Jan 19, 2022

Copy link
Copy Markdown
Contributor Author

@shoothzj Could you check the comment #13644 (comment) please?

@hrsakai hrsakai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@BewareMyPower

Copy link
Copy Markdown
Contributor

Add release/2.9.4 and release/2.10.2 labels for this PR, see #16854.

@BewareMyPower

Copy link
Copy Markdown
Contributor

Remove the release/2.10.2 label because it's already cherry-picked into branch-2.10

@mattisonchao

Copy link
Copy Markdown
Member

Hi @equanz

It looks like we have many conflicts with branch-2.9. Could you help cherry-pick this PR to branch-2.9?

@equanz

equanz commented Aug 10, 2022

Copy link
Copy Markdown
Contributor Author

@mattisonchao
Okay. I'll check it.
So, what should I do? (create a new PR to branch-2.9, check some PRs, etc.)

equanz added a commit to equanz/pulsar that referenced this pull request Aug 10, 2022
…ests correctly (apache#13644)

* test: rename test class

* fix: fix to follow existing test cases

* test: fix to follow existing production codes
@mattisonchao

mattisonchao commented Aug 11, 2022

Copy link
Copy Markdown
Member

Hi @equanz
I've got your new PR, thank you a lot!

@equanz

equanz commented Aug 15, 2022

Copy link
Copy Markdown
Contributor Author

@mattisonchao

How is it going? As you know, I created the new PR #17048 .

@mattisonchao

Copy link
Copy Markdown
Member

@equanz
I will review it today. thanks!

@equanz

equanz commented Aug 16, 2022

Copy link
Copy Markdown
Contributor Author

I got it. Thank you for maintaining branches.

@mattisonchao mattisonchao added the cherry-picked/branch-2.9 Archived: 2.9 is end of life label Sep 13, 2022
@github-actions github-actions Bot added doc-label-missing and removed doc-not-needed Your PR changes do not impact docs labels Sep 13, 2022
@github-actions

Copy link
Copy Markdown

@equanz Please provide a correct documentation label for your PR.
Instructions see Pulsar Documentation Label Guide.

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.

5 participants