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

test: Simplify E2E test tear-down #3749

Merged
merged 14 commits into from
Aug 17, 2020
Merged

test: Simplify E2E test tear-down #3749

merged 14 commits into from
Aug 17, 2020

Conversation

alexec
Copy link
Contributor

@alexec alexec commented Aug 12, 2020

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
  • The title of the PR is (a) conventional, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
  • I've signed the CLA.
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My builds are green. Try syncing with master if they are not.
  • My organization is added to USERS.md.

Changes

  • Re-write TestWorkflowLevelSemaphore and TestTemplateLevelSemaphore
  • Re-write DeleteResources to use dynamic informer and wait for resource deletion.
  • Move CreateConfigMap/DeleteConfigMap to Given.

@alexec alexec changed the title test: Simplify test-e2e clean-up test: Simplify E2e test tear-down Aug 13, 2020
serverUnavailable := os.Getenv("ARGO_SERVER") == ""
if s.Persistence.IsEnabled() && serverUnavailable {
if !serverUnavailable {
s.T().Skip("test needs offloading, but the Argo Server is unavailable - if `testNeedsOffloading()` is the first line of your test test, you should move your test to `CliWithServerSuite`?")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

additional help for people writing tests

@alexec alexec marked this pull request as ready for review August 13, 2020 15:48
@alexec alexec linked an issue Aug 13, 2020 that may be closed by this pull request
@alexec alexec changed the title test: Simplify E2e test tear-down test: Simplify E2E test tear-down Aug 13, 2020
Copy link
Member

@simster7 simster7 left a comment

Choose a reason for hiding this comment

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

Rubber stamp

@alexec alexec merged commit dc75ee8 into argoproj:master Aug 17, 2020
@alexec alexec deleted the test-delete branch August 17, 2020 17:09
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.

Is TestWorkflowLevelSemaphore flakey?
3 participants