Skip to content

GH-43962: [Java] Consider warnings as errors for Adapter Module - #43963

Merged
lidavidm merged 7 commits into
apache:mainfrom
vibhatha:feat-errorprone-warnings-adapter
Sep 11, 2024
Merged

lidavidm merged 7 commits into
apache:mainfrom
vibhatha:feat-errorprone-warnings-adapter

Conversation

@vibhatha

@vibhatha vibhatha commented Sep 5, 2024 •

Copy link
Copy Markdown
Contributor

Rationale for this change

This PR configs the build such that warnings are considered as errors in the Adapter module. And corresponding code changes have also been made.

What changes are included in this PR?

Adding flags to consider warnings as errors in javac and fixing the corresponding errors.

Are these changes tested?

Tested by existing test cases.

Are there any user-facing changes?

N/A

@vibhatha
vibhatha marked this pull request as ready for review September 6, 2024 01:59
@vibhatha
vibhatha requested a review from lidavidm as a code owner September 6, 2024 01:59
@vibhatha

vibhatha commented Sep 6, 2024

Copy link
Copy Markdown
Contributor Author

@lidavidm I am planning to fix the warnings to errors per module at the moment and finally move the flag to the parent pom as we covered the code formatting. Is this approach okay?

@vibhatha

vibhatha commented Sep 9, 2024

Copy link
Copy Markdown
Contributor Author

@lidavidm this is ready for review.

Comment thread java/adapter/orc/pom.xml Outdated

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.

can we possibly simplify this with combine.children="append"?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Right, let me check.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I updated, lets check the CIs (locally passing)

@github-actions github-actions Bot added awaiting changes Awaiting changes and removed awaiting review Awaiting review labels Sep 9, 2024
@vibhatha
vibhatha force-pushed the feat-errorprone-warnings-adapter branch from f50fac1 to f083330 Compare September 9, 2024 06:47
@github-actions github-actions Bot added awaiting change review Awaiting change review and removed awaiting changes Awaiting changes labels Sep 9, 2024
Comment thread java/adapter/avro/pom.xml Outdated

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.

Append should mean that none of these other arguments are required, right? Only compilerArgs?

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.

Also should it be combine.self or combine.children?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, it seems to be the best. I updated, let's wait for the CIs to make sure.

@github-actions github-actions Bot added awaiting changes Awaiting changes awaiting change review Awaiting change review and removed awaiting change review Awaiting change review awaiting changes Awaiting changes labels Sep 9, 2024
Comment thread java/adapter/jdbc/pom.xml Outdated
@vibhatha
vibhatha force-pushed the feat-errorprone-warnings-adapter branch from 8ce47a4 to edf6a87 Compare September 10, 2024 14:08
@github-actions github-actions Bot added awaiting merge Awaiting merge and removed awaiting change review Awaiting change review labels Sep 11, 2024
@lidavidm
lidavidm merged commit 2a793d6 into apache:main Sep 11, 2024
@conbench-apache-arrow

Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 2a793d6.

There were 4 benchmark results indicating a performance regression:

The full Conbench report has more details. It also includes information about 15 possible false positives for unstable benchmarks that are known to sometimes produce them.

khwilson pushed a commit to khwilson/arrow that referenced this pull request Sep 14, 2024
…apache#43963)

### Rationale for this change

This PR configs the build such that warnings are considered as errors in the Adapter module. And corresponding code changes have also been made. 

### What changes are included in this PR?

Adding flags to consider warnings as errors in javac and fixing the corresponding errors. 

### Are these changes tested?

Tested by existing test cases. 

### Are there any user-facing changes?

N/A
* GitHub Issue: apache#43962

Authored-by: Vibhatha Lakmal Abeykoon <vibhatha@gmail.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
pribor pushed a commit to GlobalWebIndex/arrow that referenced this pull request Oct 24, 2025
…apache#43963)

### Rationale for this change

This PR configs the build such that warnings are considered as errors in the Adapter module. And corresponding code changes have also been made. 

### What changes are included in this PR?

Adding flags to consider warnings as errors in javac and fixing the corresponding errors. 

### Are these changes tested?

Tested by existing test cases. 

### Are there any user-facing changes?

N/A
* GitHub Issue: apache#43962

Authored-by: Vibhatha Lakmal Abeykoon <vibhatha@gmail.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
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.

3 participants