Skip to content

fix: attempt to have fewer transient errors in continuous integration#328

Merged
chrisrossi merged 1 commit intogoogleapis:masterfrom
chrisrossi:improve-system-tests
Feb 7, 2020
Merged

fix: attempt to have fewer transient errors in continuous integration#328
chrisrossi merged 1 commit intogoogleapis:masterfrom
chrisrossi:improve-system-tests

Conversation

@chrisrossi
Copy link
Contributor

We have been having more transient errors in the system tests run by
Kokoro. This patch:

  1. Increased timeout used by eventually fixture from 60 seconds to 120
    seconds.

  2. Randomizes "other namespace", like we were already doing with the
    primary namespace used by tests. This should make it vanishingly
    unlikely that a test can have its initial state polluted by a previously
    run test, as each test will be run in its own namespace.

  3. Relaxes the checks for undeleted entities during test cleanup.
    Instead of a failing assertion, now, we'll just log a warning if there
    are any leftover entities at the end of a test.

@chrisrossi chrisrossi requested a review from cguardia February 7, 2020 16:07
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 7, 2020
We have been having more transient errors in the system tests run by
Kokoro. This patch:

1) Increased timeout used by `eventually` fixture from 60 seconds to 120
seconds.

2) Randomizes "other namespace", like we were already doing with the
primary namespace used by tests. This should make it vanishingly
unlikely that a test can have its initial state polluted by a previously
run test, as each test will be run in its own namespace.

3) Relaxes the checks for undeleted entities during test cleanup.
Instead of a failing assertion, now, we'll just log a warning if there
are any leftover entities at the end of a test.
@chrisrossi chrisrossi force-pushed the improve-system-tests branch from 931efc1 to e5590e9 Compare February 7, 2020 16:09
Copy link
Contributor

@cguardia cguardia left a comment

Choose a reason for hiding this comment

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

Thanks! Using the random namespaces is a good idea.

@chrisrossi chrisrossi merged commit 0484c7a into googleapis:master Feb 7, 2020
@chrisrossi chrisrossi deleted the improve-system-tests branch February 7, 2020 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants