Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

internal: test reliability improvements #2780

Merged
merged 1 commit into from
Aug 11, 2020

Conversation

jpeach
Copy link
Contributor

@jpeach jpeach commented Aug 11, 2020

  • Switch from shutting down gRPC server with Stop() to GracefulStop().
    which waits for current requests to drain before returning. This
    means that tests which log to the test runner won't ever attempt to
    log after the test has completed.

  • Hoist test loggers into the fixtures package and use them from there.

  • Add a workgroup context cancellation test.

This updates #2775.

Signed-off-by: James Peach jpeach@vmware.com

* Switch from shutting down gRPC server with `Stop()` to `GracefulStop()`.
  which waits for current requests to drain before returning. This
  means that tests which log to the test runner won't ever attempt to
  log after the test has completed.

* Hoist test loggers into the fixtures package and use them from there.

* Add a workgroup context cancellation test.

This updates projectcontour#2775.

Signed-off-by: James Peach <jpeach@vmware.com>
@jpeach jpeach requested a review from youngnick August 11, 2020 03:00
Copy link
Member

@youngnick youngnick left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov
Copy link

codecov bot commented Aug 11, 2020

Codecov Report

Merging #2780 into master will decrease coverage by 0.08%.
The diff coverage is 70.83%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2780      +/-   ##
==========================================
- Coverage   76.67%   76.58%   -0.09%     
==========================================
  Files          72       73       +1     
  Lines        5792     5788       -4     
==========================================
- Hits         4441     4433       -8     
- Misses       1259     1264       +5     
+ Partials       92       91       -1     
Impacted Files Coverage Δ
cmd/contour/serve.go 2.56% <0.00%> (ø)
internal/fixture/log.go 53.84% <53.84%> (ø)
internal/e2e/e2e.go 84.80% <100.00%> (-1.13%) ⬇️
internal/featuretests/featuretests.go 91.09% <100.00%> (-0.32%) ⬇️
internal/dag/cache.go 99.08% <0.00%> (+0.91%) ⬆️

@jpeach jpeach merged commit 93af394 into projectcontour:master Aug 11, 2020
@jpeach jpeach deleted the test-reliability branch August 11, 2020 03:31
jpeach added a commit to jpeach/contour that referenced this pull request Aug 17, 2020
Fix a regression from projectcontour#2780, where the Contour xDS server would fail
to stop because it is waiting for xDS connections to drain (they won't
drain).

This updates projectcontour#2780.

Signed-off-by: James Peach <jpeach@vmware.com>
jpeach added a commit that referenced this pull request Aug 17, 2020
Fix a regression from #2780, where the Contour xDS server would fail
to stop because it is waiting for xDS connections to drain (they won't
drain).

This updates #2780.

Signed-off-by: James Peach <jpeach@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants