pabloem commented on pull request #17063:
URL: https://github.com/apache/beam/pull/17063#issuecomment-1073167922
I was able, unfortunately, to make these tests flake after 5 tries, and then
again after 19 tries.
I added these three lines to
`sdks/java/io/google-cloud-platform/build.gradle`:
```
test {
outputs.upToDateWhen { false }
}
```
The purpose of these three lines is to avoid 'caching' test results, and
making sure that the tests will run every time even if the code did not change
(but artifacts won't be rebuilt).
Then I used these commands:
```
declare -i ITERATIONS=0
while ./gradlew :sdks:java:io:google-cloud-platform:test
--tests=*SpannerChangeStreamErrorTest*;
do
ITERATIONS=$ITERATIONS+1;
if [[ "$ITERATIONS" -eq 100 ]]; then break; fi;
done
```
The iterations stopped after `5` and `19` runs. So I think flakiness in the
tests is still high, unfortunately : /
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]