Skip to content

[feat][ci] check style for all source code - #18142

Merged
nicoloboschi merged 4 commits into
apache:masterfrom
tisonkun:patch-3
Oct 21, 2022
Merged

nicoloboschi merged 4 commits into
apache:masterfrom
tisonkun:patch-3

Conversation

@tisonkun

@tisonkun tisonkun commented Oct 21, 2022 •

Copy link
Copy Markdown
Member

This closes #18131.

Documentation

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

Matching PR in the forked repository

PR in forked repository: tisonkun#7

@RobertIndie

Copy link
Copy Markdown
Member

Looks good to me. Need to fix all the check styles issues to pass the CI.

@tisonkun

Copy link
Copy Markdown
Member Author

@RobertIndie all violations fixed. Please help with triggering CI on the main repo.

@lhotari @codelipenghui I hope that this patch can get reviewed timely so that we don't conflict with incoming PRs - it touches a bunch of files.

Signed-off-by: tison <[email protected]>
Signed-off-by: tison <[email protected]>
@tisonkun

tisonkun commented Oct 21, 2022 •

Copy link
Copy Markdown
Member Author

Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.1.2:check (default-cli) on project pulsar: Execution default-cli of goal org.apache.maven.plugins:maven-checkstyle-plugin:3.1.2:check failed: Plugin org.apache.maven.plugins:maven-checkstyle-plugin:3.1.2 or one of its dependencies could not be resolved: org.apache.pulsar:buildtools:jar:2.11.0-SNAPSHOT was not found in https://repository.apache.org/snapshots during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of apache.snapshots has elapsed or updates are forced

Dirty environment issue?

@tisonkun

Copy link
Copy Markdown
Member Author

0eda68e remove mysterious dependency. I don't know whether it means some tricky logics.

@codecov-commenter

codecov-commenter commented Oct 21, 2022 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 45.97%. Comparing base (6c65ca0) to head (0eda68e).
⚠️ Report is 3516 commits behind head on master.

Files with missing lines Patch % Lines
...s/management/core/impl/PackagesManagementImpl.java 50.00% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##             master   #18142       +/-   ##
=============================================
+ Coverage     34.91%   45.97%   +11.05%     
- Complexity     5707    17663    +11956     
=============================================
  Files           607     1574      +967     
  Lines         53396   128545    +75149     
  Branches       5712    14152     +8440     
=============================================
+ Hits          18644    59095    +40451     
- Misses        32119    63335    +31216     
- Partials       2633     6115     +3482     
Flag Coverage Δ
unittests 45.97% <50.00%> (+11.05%) ⬆️

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

Files with missing lines Coverage Δ
...va/org/apache/pulsar/io/jdbc/JdbcAbstractSink.java 3.22% <ø> (-0.97%) ⬇️
...s/management/core/impl/PackagesManagementImpl.java 73.57% <50.00%> (ø)

... and 1118 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment on lines +336 to +341
private void internalFlushBatch(
Deque<Record<T>> swapList,
PreparedStatement currentBatch,
int count,
long start
) throws SQLException {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It seems to be repeated with #18146.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@coderzc I think we should proceed with this patch since it adds a CI task to prevent regression.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

But it's OK I do some rebases.

@tisonkun tisonkun mentioned this pull request Oct 21, 2022
1 of 4 tasks
@tisonkun

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-not-needed Your PR changes do not impact docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add CI for checking code style of pulsar connectors

8 participants