Skip to content

Add equals/hashcode to test data class to avoid direct runner coder warning - #32883

Merged
scwhittle merged 1 commit into
apache:masterfrom
scwhittle:fix_verify_consistent
Nov 7, 2024
Merged

Add equals/hashcode to test data class to avoid direct runner coder warning#32883
scwhittle merged 1 commit into
apache:masterfrom
scwhittle:fix_verify_consistent

Conversation

@scwhittle

@scwhittlescwhittle commented Oct 21, 2024

Copy link
Copy Markdown
Contributor

I can't find the presubmit I observed this but it was this log:
https://github.com/apache/beam/blob/master/sdks/java/core/src/main/java/org/apache/beam/sdk/util/MutationDetectors.java#L146

This Pojo uses SchemaCoder which is consistentWithEquals, meaning Coder.structuralValue returns the value itself. Since this Pojo didn't have equals method it woudl trigger the log on equivalent pojos with the same encoding but different objects.


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

  • Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
  • 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.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

@github-actions

Copy link
Copy Markdown
Contributor

Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment assign set of reviewers

@scwhittle
scwhittleforce-pushed the fix_verify_consistent branch 2 times, most recently from 2af7968 to 98209d1CompareOctober 23, 2024 09:10
@scwhittlescwhittle changed the title Add equals/hashcode to test data class to avoid direct runner warning logAdd equals/hashcode to test data class to avoid direct runner coder warningOct 23, 2024
@scwhittlescwhittle reopened this Oct 31, 2024
@scwhittle

Copy link
Copy Markdown
ContributorAuthor

R: @Abacn

@scwhittle

Copy link
Copy Markdown
ContributorAuthor

failures appear unrelated

@scwhittle
scwhittle requested a review from AbacnNovember 4, 2024 09:39
@github-actions

Copy link
Copy Markdown
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control. If you'd like to restart, comment assign set of reviewers

@scwhittle
scwhittleforce-pushed the fix_verify_consistent branch from 98209d1 to c1bddd2CompareNovember 6, 2024 08:53

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

thank you!

For JavaPrecommit failure, opened #33028 for fix

@scwhittle
scwhittle merged commit c7e4db7 into apache:masterNov 7, 2024
@scwhittle
scwhittle deleted the fix_verify_consistent branch November 7, 2024 17:14
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@scwhittle@Abacn