Closed avorima closed 1 year ago
Welcome @avorima!
It looks like this is your first PR to kubernetes-sigs/krew 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.
You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.
You can also check if kubernetes-sigs/krew has its own contribution guidelines.
You may want to refer to our testing guide if you run into trouble with your tests not passing.
If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!
Thank you, and welcome to Kubernetes. :smiley:
/retest
@avorima: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test
message.
@avorima CI issue has been fixed, could you rebase?
@JohnTitor done
I am -1 on this since it changes the behavior for the rest of the test suite by using os.Unsetenv
.
If only this particular test case is impacted, we should implement something that preserves the old value and whether it was set at all. Right now it just removes the env entry for all unit tests, which might cause trouble down the road.
New changes are detected. LGTM label has been removed.
@ahmetb I added a helper that sets and unsets KREW_ROOT, because the envOverride test case also modifies that value.
I'm still not entirely sure why you need this.
When KREW_ROOT is set one (1) test case fails, because it is not expected to be set which is why it must be unset. This is the only fix that I want to get through.
Another one (1) test case expects KREW_ROOT to have a value, so it must be set for that one (1) test case. So to ensure that the os.Unsetenv
is only active for one test case (like you asked), I added the helper which sets and restores the value of KREW_ROOT.
So the tests expect KREW_ROOT to have certain values at certain times and I'm just trying to make things work when it is set externally, i.e. by using export
in the shell instead of os.Setenv
.
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
/remove-lifecycle stale
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.
This bot triages PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the PR is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs.
This bot triages PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the PR is closedYou can:
/remove-lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the PR is closedYou can:
/reopen
/remove-lifecycle rotten
Please send feedback to sig-contributor-experience at kubernetes/community.
/close
@k8s-triage-robot: Closed this PR.
/reopen /lgtm /approve
@ahmetb: Reopened this PR.
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: ahmetb, avorima
The full list of commands accepted by this bot can be found here.
The pull request process is described here
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the PR is closedYou can:
/reopen
/remove-lifecycle rotten
Please send feedback to sig-contributor-experience at kubernetes/community.
/close
@k8s-triage-robot: Closed this PR.
I've noticed that updating the krew AUR package failed and after looking into it I saw that the tests failed because I had set
KREW_ROOT
. This patch unsetsKREW_ROOT
for the test case that asserts the default path.