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

Flaky: e2e namespace deletion #1666

Merged
merged 2 commits into from
Jul 1, 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:

This fixes the issue if the e2e test tries to delete namespace that is already in a Terminating state.

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

None

@markmandel markmandel added kind/bug These are bugs. area/tests Unit tests, e2e tests, anything to make sure things don't break labels Jun 30, 2020
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 55918f1e-7e29-45cc-8551-5155422db583

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/1666/head:pr_1666 && git checkout pr_1666
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.7.0-9eb68ea

@google-oss-robot
Copy link

New changes are detected. LGTM label has been removed.

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 95415ea1-c563-45b9-a9dc-5ba5263fc50d

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@markmandel
Copy link
Member Author

Wait, this is what this fix is supposed to fix:

time="2020-07-01 18:36:25.065" level=info msg="Starting e2e test(s)" featureGates="ContainerPortAllocation=true&Example=true&PlayerTracking=false&SDKWatchSendOnExecute=false" gameServerImage="gcr.io/agones-images/udp-server:0.21" namespace= perfOutputDir= pullSecret= stressTestLevel=0 version=
time="2020-07-01 18:36:25.180" level=error msg="failed to cleanup e2e namespaces" error="deleting namespace 1593628294 failed: Operation cannot be fulfilled on namespaces \"1593628294\": The system is ensuring all content is removed from this namespace.  Upon completion, this namespace will automatically be purged by the system."
FAIL	agones.dev/agones/test/e2e	0.182s

@roberthbailey
Copy link
Member

🤷

@markmandel
Copy link
Member Author

Think I worked it out. The errors from DeleteNamespace() was returning errors.Errorf(...) rather than errors.Wrapf(...), so the cause was lost.

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: markmandel, 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,roberthbailey]

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

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 8ce84cbc-42de-41ca-ab35-bdc247636be9

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

This fixes the issue if the e2e test tries to delete namespace
that is already in a Terminating state.
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 745ce57f-6c54-4f2d-81a5-fde03c5f50d9

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/1666/head:pr_1666 && git checkout pr_1666
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.7.0-11cc373

@markmandel markmandel added this to the 1.7.0 milestone Jul 1, 2020
@markmandel markmandel merged commit 4f54457 into googleforgames:master Jul 1, 2020
@markmandel markmandel deleted the flaky/e2e-delete branch July 1, 2020 21:51
ilkercelikyilmaz pushed a commit to ilkercelikyilmaz/agones that referenced this pull request Oct 23, 2020
This fixes the issue if the e2e test tries to delete namespace
that is already in a Terminating state.
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/bug These are bugs. size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants