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

Allow keeping namespaces after running tests for investigation #1810

Merged

Conversation

chmouel
Copy link
Member

@chmouel chmouel commented Jan 6, 2020

Changes

When we have a failure, the tearDown function would delete the randomly created 'arendelle'
namespace with no way to investigate.

Add an environment variable TEST_KEEP_NAMESPACES to disable the namespace
deletion. This could be useful for successful run too, for further investigation
if needed.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

Reviewer Notes

NA

Release Notes

NA

When we have a failure, the tearDown function would delete the 'arendelle'
namespace with no way to investigate.

Add an environment variable TEST_KEEP_NAMESPACES to disable the namespace
deletion. This could be useful for successful run too, for further investigation
if needed.

Signed-off-by: Chmouel Boudjnah <[email protected]>
@tekton-robot tekton-robot requested review from afrittoli and a user January 6, 2020 17:34
@googlebot googlebot added the cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit label Jan 6, 2020
@tekton-robot tekton-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jan 6, 2020
Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

/lgtm
/cc @bobcatfish

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 6, 2020
@chmouel
Copy link
Member Author

chmouel commented Jan 7, 2020

/test pull-tekton-pipeline-integration-tests

@chmouel
Copy link
Member Author

chmouel commented Jan 7, 2020

I can make it to work with the -X define ie "'-X github.com/tektoncd/pipeline/test.keepNamespace=true'" but i think env are a bit user friendly (but really dont mind either)

@imjasonh
Copy link
Member

imjasonh commented Jan 8, 2020

/lgtm
/approve

@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ImJasonH

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:

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

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 8, 2020
@bobcatfish
Copy link
Collaborator

This is such a good idea!! 👍👍👍 Thanks @chmouel :D ❤️

@tekton-robot tekton-robot merged commit 74bf8b8 into tektoncd:master Jan 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants