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

Cleanup e2e namespaces before test start #1655

Merged
merged 1 commit into from
Jun 26, 2020

Conversation

markmandel
Copy link
Member

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:

/kind breaking
/kind bug

/kind cleanup

/kind documentation
/kind feature
/kind hotfix

What this PR does / Why we need it:

When an e2e test panics, it can leave behind populated GameServer namespaces, that are never cleaned up!

This implements a fix in which the e2e test will search for e2e namespaces in the cluster, and delete them all before tests begin.

Which issue(s) this PR fixes:

Closes #1653

Special notes for your reviewer:

None.

When an e2e test panics, it can leave behind populated GameServer
namespaces, that are never cleaned up!

This implements a fix in which the e2e test will search for e2e
namespaces in the cluster, and delete them all before tests begin.

Closes googleforgames#1653
@markmandel markmandel added kind/cleanup Refactoring code, fixing up documentation, etc area/tests Unit tests, e2e tests, anything to make sure things don't break labels Jun 26, 2020
@markmandel markmandel requested review from aLekSer, pooneh-m and roberthbailey and removed request for EricFortin and dzlier-gcp June 26, 2020 20:28
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 9643cd68-7f85-4e88-ad76-f8da7bc4df6d

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/1655/head:pr_1655 && git checkout pr_1655
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.7.0-fccb843

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: markmandel, pooneh-m, roberthbailey

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [markmandel,pooneh-m,roberthbailey]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@pooneh-m pooneh-m merged commit c203a81 into googleforgames:master Jun 26, 2020
@markmandel markmandel deleted the test/namespace-cleanup branch June 26, 2020 22:14
@markmandel markmandel added this to the 1.7.0 milestone Jun 26, 2020
ilkercelikyilmaz pushed a commit to ilkercelikyilmaz/agones that referenced this pull request Oct 23, 2020
When an e2e test panics, it can leave behind populated GameServer
namespaces, that are never cleaned up!

This implements a fix in which the e2e test will search for e2e
namespaces in the cluster, and delete them all before tests begin.

Closes googleforgames#1653
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved area/tests Unit tests, e2e tests, anything to make sure things don't break cla: yes kind/cleanup Refactoring code, fixing up documentation, etc lgtm size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Better cleanup of namespace on e2e test failure
6 participants