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

Fix flaky test of api renewer by moving away from legacy api. #8265

Merged
merged 1 commit into from
Jan 30, 2020

Conversation

ncabatoff
Copy link
Collaborator

I wasn't able to reproduce this, so it's a speculative fix. An example failure from https://circleci.com/gh/hashicorp/vault/37790?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link looks like

        --- FAIL: TestRenewer_Renew/group/auth (10.93s)
            renewer_integration_test.go:203: renewal failed with an error: Error making API request.
                
                URL: PUT https://127.0.0.1:44085/v1/auth/token/renew-self
                Code: 400. Errors:
                
                * lease expired

What I think happened is that we renewed successfully at least once, and then due to a slow VM didn't reach https://github.com/hashicorp/vault/blob/master/api/lifetime_watcher.go#L337 (where we'd have exited cleanly) before it encountered a renewal failure here: https://github.com/hashicorp/vault/blob/master/api/lifetime_watcher.go#L286. The newer API doesn't enter that if statement so shouldn't fail this way. I converted the other tests in this file to use the newer API as well because I think it makes more sense to exercise the non-legacy API.

@ncabatoff ncabatoff merged commit 492ae16 into master Jan 30, 2020
@ncabatoff ncabatoff deleted the fix-flaky-renewer-test branch January 30, 2020 20:12
catsby added a commit that referenced this pull request Feb 4, 2020
…nto b-fix-mysql-lock-panic

* 'b-fix-mysql-lock-panic' of github.com:hashicorp/vault: (52 commits)
  Fix minor typo in doc string (#8277)
  Update gen_openapi.sh (#8273)
  update dependencies (#8271)
  docs: update vault k8s to 0.2.0 (#8269)
  Fix flaky test of api renewer by moving away from legacy api. (#8265)
  Clean AlibabaCloud physical backend code (#8186)
  Update GH issue template to point to forum (#8226)
  Fix default max_open_connections for db plugins (#8262)
  Fix broken link (#8259)
  Removing timing-dependent aspects of test. (#8261)
  Changelog++
  Added flag to disable X-Vault-Token header proxy if client passes the token (#8101)
  changelog++
  changelog++
  test: fix TestAgent_Template_Basic (#8257)
  docs: fix api path for merge entity identity doc (#8258)
  Bump etcd client API dep (#8037)
  Add Consul TLS options to access API endpoint (#8253)
  Docs: Add nomad TLS options (#8254)
  Update CHANGELOG.md
  ...
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