Skip to content

Fix Firestore POJO tests#281

Merged
mikelehen merged 1 commit intomasterfrom
mrschmidt-fixtests
Mar 14, 2019
Merged

Fix Firestore POJO tests#281
mikelehen merged 1 commit intomasterfrom
mrschmidt-fixtests

Conversation

@schmidt-sebastian
Copy link
Contributor

Looks like #272 broke the Firestore Integration Tests, which I noticed in the failures for #277.

@google-oss-bot
Copy link
Collaborator

google-oss-bot commented Mar 14, 2019

@schmidt-sebastian: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
smoke-tests-release 2a07e0a link /test smoke-tests-release
smoke-tests-debug 2a07e0a link /test smoke-tests-debug
Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@schmidt-sebastian
Copy link
Contributor Author

/test connected-check-changed

expectedErrorMessages.put(
pojo,
"Could not serialize object. BigInteger is not supported, please use an int, long, float or double (found in field 'bigIntegerValue')");
"Could not serialize object. Numbers of type BigInteger are not supported, please use an int, long, float or double (found in field 'bigIntegerValue')");
Copy link
Member

Choose a reason for hiding this comment

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

So remember in that other PR? Where I was talking about over-specified error message checking in tests? :)

(This is still fine; no action required.)

Copy link
Contributor

Choose a reason for hiding this comment

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

FWIW- As a reviewer, I actually like that I can just look at the tests to see the exact error message that comes out without worrying that we're missing a space somewhere or that some generated part of the message is coming out goofy.

Also, as a reviewer, I should actually check if the tests pass before merging PRs.
box_of_shame

(in any case, there's definitely a balance to be struck with these sorts of tests... if we feel they're too fragile, I don't mind revisiting)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I actually am a big fan of having at least one place that checks the full error message. A lot of our error messages are composed of different parts, and it is very easy to omit words/spaces or put extra spaces when we do this.

@mikelehen mikelehen removed their assignment Mar 14, 2019
@mikelehen
Copy link
Contributor

Since Sebastian is in a different timezone and tests are broken without this, I'm merging this on his behalf again (I haven't learned my lesson apparently). somke-tests are failing but I'm confident it's unrelated to this change.

@mikelehen mikelehen merged commit bd5fe33 into master Mar 14, 2019
@mikelehen mikelehen deleted the mrschmidt-fixtests branch March 14, 2019 16:32
@firebase firebase locked and limited conversation to collaborators Oct 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes Override cla size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants