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

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

Merged
merged 3 commits into from Jan 20, 2022

Conversation

equanz
Copy link
Contributor

@equanz equanz commented Jan 6, 2022

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
Copy link
Contributor Author

equanz commented Jan 7, 2022

/pulsarbot run-failure-checks

1 similar comment
@equanz
Copy link
Contributor Author

equanz commented Jan 7, 2022

/pulsarbot run-failure-checks

@equanz
Copy link
Contributor Author

equanz commented Jan 11, 2022

@lhotari Could you please review this PR?

@shoothzj
Copy link
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
Copy link
Contributor Author

equanz commented Jan 11, 2022

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
Copy link
Contributor Author

equanz commented Jan 13, 2022

/pulsarbot run-failure-checks

2 similar comments
@equanz
Copy link
Contributor Author

equanz commented Jan 14, 2022

/pulsarbot run-failure-checks

@equanz
Copy link
Contributor Author

equanz commented Jan 17, 2022

/pulsarbot run-failure-checks

@equanz
Copy link
Contributor Author

equanz commented Jan 19, 2022

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

Copy link
Contributor

@hrsakai hrsakai left a comment

Choose a reason for hiding this comment

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

LGTM

@BewareMyPower
Copy link
Contributor

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

@BewareMyPower
Copy link
Contributor

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

@mattisonchao
Copy link
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
Copy link
Contributor Author

equanz commented Aug 10, 2022

@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
Copy link
Member

mattisonchao commented Aug 11, 2022

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

@equanz
Copy link
Contributor Author

equanz commented Aug 15, 2022

@mattisonchao

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

@mattisonchao
Copy link
Member

@equanz
I will review it today. thanks!

@equanz
Copy link
Contributor Author

equanz commented Aug 16, 2022

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

@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.

None yet

5 participants