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

Fix apiserver container_env generation in configure-helper.sh #67919

Closed

Conversation

Katharine
Copy link
Member

What this PR does / why we need it: The construction of container_env in configure-helper.sh is broken such that ENABLE_CACHE_MUTATION_DETECTOR and ENABLE_PATCH_CONVERSION_DETECTOR are mutually exclusive, due to multiple issues in the construction of the string.

This PR fixes the logic such that the array is correctly constructed, and adds unit tests verifying that it is correct.

Release note:

NONE

The construction of container_env is broken such that
KUBE_CACHE_MUTATION_DETECTOR and ENABLE_PATCH_CONVERSION_DETECTOR are
mutually exclusive, due to multiple issues in the construction of the
string.
@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Aug 28, 2018
@Katharine Katharine changed the title Env concatenation is busted Fix container_env generation in configure-helper.sh Aug 28, 2018
@k8s-ci-robot k8s-ci-robot added the sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. label Aug 28, 2018
@BenTheElder
Copy link
Member

/ok-to-test

@k8s-ci-robot k8s-ci-robot removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Aug 28, 2018
@Katharine Katharine changed the title Fix container_env generation in configure-helper.sh Fix apiserver container_env generation in configure-helper.sh Aug 28, 2018
@BenTheElder
Copy link
Member

/retest

2 similar comments
@Katharine
Copy link
Member Author

/retest

@Katharine
Copy link
Member Author

/retest

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 29, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Katharine
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: gmarek

If they are not already assigned, you can assign the PR to them by writing /assign @gmarek in a comment when ready.

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

Katharine added a commit to Katharine/test-infra that referenced this pull request Aug 29, 2018
`ENABLE_CACHE_MUTATION_DETECTOR` has been set for over a year, but due
to a bug in the script parsing it, has not actually run. Fixing the bug
such that it can run makes the tests time out. Since an hour is already
a long time for presubmit tests, let's not make them longer and instead
just stop enabling this.

Note that this will have no effect due to a _another_ bug in the default
configuration, which sets `ENABLE_CACHE_MUTATION_DETECTOR=false`,
which is of course a non-empty string and will cause it to be enabled
anyway.

See kubernetes/kubernetes#67919 for more context.
Katharine added a commit to Katharine/test-infra that referenced this pull request Aug 29, 2018
`ENABLE_CACHE_MUTATION_DETECTOR` has been set for over a year, but due
to a bug in the script parsing it, has not actually run. Fixing the bug
such that it can run makes the tests time out. Since an hour is already
a long time for presubmit tests, let's not make them longer and instead
just stop enabling this.

See kubernetes/kubernetes#67919 for more context.
@krzyzacy
Copy link
Member

/retest

1 similar comment
@BenTheElder
Copy link
Member

/retest

@Katharine
Copy link
Member Author

/retest

I do not understand how this can possibly actually be breaking kops on AWS when it only changes GCE configuration.

@BenTheElder
Copy link
Member

finally passed 😐, raising the flakiness issue to sig-release

@krzyzacy
Copy link
Member

/this-is-fine

@krzyzacy
Copy link
Member

one day I'll write a this-is-fine plugin

@BenTheElder
Copy link
Member

/sig gcp

@BenTheElder
Copy link
Member

/assign vishh

yutongz pushed a commit to yutongz/k8s-test-infra that referenced this pull request Sep 12, 2018
`ENABLE_CACHE_MUTATION_DETECTOR` has been set for over a year, but due
to a bug in the script parsing it, has not actually run. Fixing the bug
such that it can run makes the tests time out. Since an hour is already
a long time for presubmit tests, let's not make them longer and instead
just stop enabling this.

See kubernetes/kubernetes#67919 for more context.
yutongz pushed a commit to yutongz/k8s-test-infra that referenced this pull request Sep 12, 2018
`ENABLE_CACHE_MUTATION_DETECTOR` has been set for over a year, but due
to a bug in the script parsing it, has not actually run. Fixing the bug
such that it can run makes the tests time out. Since an hour is already
a long time for presubmit tests, let's not make them longer and instead
just stop enabling this.

See kubernetes/kubernetes#67919 for more context.
@k8s-ci-robot
Copy link
Contributor

@Katharine: PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 7, 2018
@ixdy
Copy link
Member

ixdy commented Oct 17, 2018

/this-is-fine

@k8s-ci-robot
Copy link
Contributor

@ixdy: dog image

In response to this:

/this-is-fine

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@spiffxp
Copy link
Member

spiffxp commented Oct 18, 2018

/meow space

@k8s-ci-robot
Copy link
Contributor

@spiffxp: cat image

In response to this:

/meow space

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 16, 2019
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Feb 15, 2019
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closed this PR.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. release-note-none Denotes a PR that doesn't merit a release note. sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants