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

[BEAM-10556] Move rawtype error suppression to class level #13261

Merged
merged 2 commits into from Nov 5, 2020

Conversation

kennknowles
Copy link
Member

Previously rawtype errors were suppressed at the module level. This makes it more fine-grained so it is easier to fix a class and have it stay fixed.


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

Post-Commit Tests Status (on master branch)

Lang SDK Dataflow Flink Samza Spark Twister2
Go Build Status --- Build Status --- Build Status ---
Java Build Status Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status Build Status
Build Status
Build Status
Build Status
Python Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
--- Build Status ---
XLang Build Status --- Build Status --- Build Status ---

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website Whitespace Typescript
Non-portable Build Status Build Status
Build Status
Build Status
Build Status
Build Status Build Status Build Status Build Status
Portable --- Build Status --- --- --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests

See CI.md for more information about GitHub Actions CI.

@kennknowles
Copy link
Member Author

R: @tysonjh

I saw you fix a rawtype in your pull request and it reminded me. I was very happy with the result of doing this with nullness checks.

Copy link
Member Author

@kennknowles kennknowles left a comment

Choose a reason for hiding this comment

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

Probably a one commit at a time review makes sense. I could also merge the suppressions in a separate PR as I did with nullness suppressions.

@@ -22,7 +22,7 @@ plugins { id 'org.apache.beam.module' }
applyJavaNature(
automaticModuleName: 'org.apache.beam.runners.dataflow',
enableChecker: false,
ignoreRawtypeErrors: true)
)
Copy link
Member Author

Choose a reason for hiding this comment

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

Ideally, spotless would reformat this, but I guess it doesn't.

@@ -121,7 +121,9 @@
* <p>The example will try to cancel the pipelines on the signal to terminate the process (CTRL-C)
* and then exits.
*/
@SuppressWarnings("nullness") // TODO(https://issues.apache.org/jira/browse/BEAM-10402)
@SuppressWarnings({
"nullness" // TODO(https://issues.apache.org/jira/browse/BEAM-10402)
Copy link
Member Author

Choose a reason for hiding this comment

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

There are a number of changes like this that I did just to make it more sane to automatically add the rawtype warnings. I can revert if you like or separate into another commit.

Copy link
Contributor

Choose a reason for hiding this comment

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

SG. It's a mechanical change so no problem leaving it in this commit.

Copy link
Contributor

@tysonjh tysonjh left a comment

Choose a reason for hiding this comment

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

LGTM once tests pass.

@@ -121,7 +121,9 @@
* <p>The example will try to cancel the pipelines on the signal to terminate the process (CTRL-C)
* and then exits.
*/
@SuppressWarnings("nullness") // TODO(https://issues.apache.org/jira/browse/BEAM-10402)
@SuppressWarnings({
"nullness" // TODO(https://issues.apache.org/jira/browse/BEAM-10402)
Copy link
Contributor

Choose a reason for hiding this comment

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

SG. It's a mechanical change so no problem leaving it in this commit.

@kennknowles
Copy link
Member Author

Ooh Dataflow job 2020-11-04_10_26_53-711210068449461490 terminated in state UNRECOGNIZED but did not return a failure reason. is fun. We should probably make that state UNRECOGNIZED(<raw string>)

@kennknowles
Copy link
Member Author

Run Java_Examples_Dataflow_Java11 PreCommit

@kennknowles
Copy link
Member Author

Looks like GitHub Actions one job failed to upload logs after the tests passed. Is there a way to rerun just that action?

@tysonjh
Copy link
Contributor

tysonjh commented Nov 4, 2020

Looks like GitHub Actions one job failed to upload logs after the tests passed. Is there a way to rerun just that action?

There should be an option in the workflow list, I can't see it but always assumed it was because I'm not a committer:

https://github.com/apache/beam/actions/runs/346066613

@kennknowles
Copy link
Member Author

I only have "Re-run all jobs" which seems like overkill. Perhaps it is just about how the actions are grouped.

@kennknowles kennknowles merged commit 3bb232f into apache:master Nov 5, 2020
@kennknowles kennknowles deleted the rawtypes-classlevel branch November 5, 2020 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants