Skip to content

Fix SpannerChangeStreamErrorTest.java and stop disabling tests - #28751

Merged
damccorm merged 4 commits into
apache:masterfrom
nancyxu123:FixErrorTest
Oct 4, 2023
Merged

damccorm merged 4 commits into
apache:masterfrom
nancyxu123:FixErrorTest

Conversation

@nancyxu123

Copy link
Copy Markdown
Contributor

Fix error expectations in SpannerChangeStreamErrorTest.

UNAVAILABLE / ABORTED codes are always retried, so they should have the short retry settings only. Otherwise, if you use the default timeout (i.e. 2 hours), the test will timeout.

@kennknowles kennknowles left a comment

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.

I don't have enough context on this to know what the best outcome for these tests is. Since you have more knowledge I trust it. I have done a basic code review. I will check the test results and whatnot.

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 would be fine to make this a flexible match, perhaps just DEADLINE_EXCEEDED. The correctness of SpannerChangeStream does not depend on the details. And same comment for all error message matching.

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.

Sure thing, done.

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.

Positive comment - inlining the config also makes the test better, as the setup should be inline with the result. Great.

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.

This is a behavior change from expecting 0 to expecting great than 0. Just noting this. I don't have a strong opinion about it.

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 think the behavior change is fine, since previously this test was disabled, so I'm not exactly sure which part was broken.

@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

@kennknowles

Copy link
Copy Markdown
Member

We disabled the troublesome tests but I think you need to rebase or merge in master branch to get those changes.

@nancyxu123

Copy link
Copy Markdown
Contributor Author

We disabled the troublesome tests but I think you need to rebase or merge in master branch to get those changes.

Done!

@kennknowles

Copy link
Copy Markdown
Member

Everything succeeded but it failed to publish the JUnit test results. Actually I don't know if that means the tests succeeded, just that running the tests succeeded.

@nancyxu123

Copy link
Copy Markdown
Contributor Author

Everything succeeded but it failed to publish the JUnit test results. Actually I don't know if that means the tests succeeded, just that running the tests succeeded.

Hi, I tried rerunning the SpannerChangeStreamErrorTest locally and it passes. Do you know what could cause the failure to publish the Junit test results?

@kennknowles

Copy link
Copy Markdown
Member

I figured it was transient, so I re-ran the failed job. If it is failing all the time it is probably a GHA bug (in our configs I would guess)

@kennknowles

Copy link
Copy Markdown
Member

I'm re-running it one more time and pinging @damccorm who is our resident GHA expert :-)

@damccorm

damccorm commented Oct 4, 2023

Copy link
Copy Markdown
Contributor

Not sure about the cause of the publishing failures, but the build did succeed and ran the tests (see build scan - https://ge.apache.org/s/e7yiokl4fbixq/tests/overview). Lets see if the publishing issues are transient, if not we can dig in independently from this PR

@kennknowles

Copy link
Copy Markdown
Member

Noting that the publishing did fail in two consecutive runs on this PR. So the current run would represent 3 consecutive failures so hopefully we can then isolate the problem. I mean hopefully it was transient and all fixed and never happens again, but... :-)

@kennknowles

Copy link
Copy Markdown
Member

yea same issue

@damccorm

damccorm commented Oct 4, 2023

Copy link
Copy Markdown
Contributor

Ah, this is already fixed on master - https://github.com/apache/beam/actions/workflows/beam_PreCommit_Java_GCP_IO_Direct.yml?query=event%3Aschedule - we're just seeing it on retries because retries grab the same merge commit

@damccorm

damccorm commented Oct 4, 2023

Copy link
Copy Markdown
Contributor

This is safe to merge

@damccorm
damccorm merged commit 9efdf6b into apache:master Oct 4, 2023
@nancyxu123

Copy link
Copy Markdown
Contributor Author

This is safe to merge

Thank you!

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