Skip to content

Test timing of SA pull secret creation#24776

Closed
adambkaplan wants to merge 1 commit intoopenshift:masterfrom
adambkaplan:test-sa-secret-creation
Closed

Test timing of SA pull secret creation#24776
adambkaplan wants to merge 1 commit intoopenshift:masterfrom
adambkaplan:test-sa-secret-creation

Conversation

@adambkaplan
Copy link
Copy Markdown
Contributor

@adambkaplan adambkaplan commented Mar 26, 2020

Ensure service account pull secrets are created in 2 seconds or less.

@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 26, 2020
sa, err := clusterAdminKubeClient.CoreV1().ServiceAccounts(sa.Namespace).Create(sa)
o.Expect(err).NotTo(o.HaveOccurred())
g.By("waiting for service account's pull secret to be created")
_, _, err = waitForServiceAccountPullSecret(clusterAdminKubeClient, sa.Namespace, sa.Name, 5, time.Second)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@mfojtik @smarterclayton Is 5 seconds a reasonable maximum to fail on?

@openshift-ci-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adambkaplan

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

The pull request process is described here

Details 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

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 26, 2020
@adambkaplan adambkaplan force-pushed the test-sa-secret-creation branch from 91f9cc5 to fb06fd5 Compare April 1, 2020 14:43
@adambkaplan adambkaplan changed the title WIP - Test timing of service account pull secrets Bug 1765294: Test timing of SA pull secret creation Apr 1, 2020
@openshift-ci-robot openshift-ci-robot added bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. and removed do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Apr 1, 2020
@openshift-ci-robot
Copy link
Copy Markdown

@adambkaplan: This pull request references Bugzilla bug 1765294, which is valid. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.5.0) matches configured target release for branch (4.5.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)
Details

In response to this:

Bug 1765294: Test timing of SA pull secret creation

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.

@adambkaplan adambkaplan force-pushed the test-sa-secret-creation branch from fb06fd5 to 4922f6b Compare April 1, 2020 17:06
@adambkaplan adambkaplan changed the title Bug 1765294: Test timing of SA pull secret creation Bug 1785023: Test timing of SA pull secret creation Apr 1, 2020
@openshift-ci-robot
Copy link
Copy Markdown

@adambkaplan: This pull request references Bugzilla bug 1785023, which is valid. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.5.0) matches configured target release for branch (4.5.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)
Details

In response to this:

Bug 1785023: Test timing of SA pull secret creation

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.

@adambkaplan adambkaplan force-pushed the test-sa-secret-creation branch from 4922f6b to 5b5d7b0 Compare April 2, 2020 14:49
@adambkaplan
Copy link
Copy Markdown
Contributor Author

/retest

/assign @bparees
/cc @smarterclayton

Copy link
Copy Markdown
Contributor

@bparees bparees left a comment

Choose a reason for hiding this comment

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

minor nit.

also please run the tests on this PR 4-5 times before merging to confirm we're not introducing a flaky test (i don't know how reliable the 2s timing will be)

Comment thread test/extended/controller_manager/pull_secret.go Outdated
@adambkaplan adambkaplan changed the title Bug 1785023: Test timing of SA pull secret creation Test timing of SA pull secret creation Apr 9, 2020
@openshift-ci-robot
Copy link
Copy Markdown

@adambkaplan: No Bugzilla bug is referenced in the title of this pull request.
To reference a bug, add 'Bug XXX:' to the title of this pull request and request another bug refresh with /bugzilla refresh.

Details

In response to this:

Test timing of SA pull secret creation

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.

@openshift-ci-robot openshift-ci-robot removed the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Apr 9, 2020
@bparees
Copy link
Copy Markdown
Contributor

bparees commented Apr 9, 2020

@adambkaplan please squash and let me know when you've seen 4-5 passing runs and i'll lgtm.

@adambkaplan adambkaplan force-pushed the test-sa-secret-creation branch from b4fcc85 to a7481aa Compare April 9, 2020 14:56
@adambkaplan adambkaplan force-pushed the test-sa-secret-creation branch from a7481aa to ffbed34 Compare April 17, 2020 17:38
@adambkaplan
Copy link
Copy Markdown
Contributor Author

/retest

@adambkaplan
Copy link
Copy Markdown
Contributor Author

/retest

hit by CI issues

@adambkaplan adambkaplan force-pushed the test-sa-secret-creation branch from ffbed34 to 2733ba2 Compare April 20, 2020 17:56
@danehans
Copy link
Copy Markdown
Contributor

@adambkaplan does this PR need to be linked to BZ 1819849?

* Ensure service account pull secrets are created in 2 seconds or less.
* Dump secrets instead of ocm logs for pull secret controller e2e tests.
@adambkaplan adambkaplan force-pushed the test-sa-secret-creation branch from 2733ba2 to 11ec288 Compare April 21, 2020 01:01
@adambkaplan
Copy link
Copy Markdown
Contributor Author

/retest

@adambkaplan
Copy link
Copy Markdown
Contributor Author

/retest

/test e2e-gcp

/test e2e-aws-fips

@adambkaplan
Copy link
Copy Markdown
Contributor Author

/test e2e-gcp

/test e2e-aws-fips

@adambkaplan
Copy link
Copy Markdown
Contributor Author

/retest

@adambkaplan
Copy link
Copy Markdown
Contributor Author

/test e2e-aws

/test e2e-gcp

/test e2e-gcp-builds

@adambkaplan
Copy link
Copy Markdown
Contributor Author

/test e2e-gcp

/test e2e-aws-fips

/test e2e-aws-serial

@openshift-ci-robot
Copy link
Copy Markdown

openshift-ci-robot commented Jun 22, 2020

@adambkaplan: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/e2e-aws-fips 11ec288 link /test e2e-aws-fips

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

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. I understand the commands that are listed here.

@openshift-bot
Copy link
Copy Markdown
Contributor

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

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

/lifecycle stale

@openshift-ci-robot openshift-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 22, 2020
@openshift-merge-robot
Copy link
Copy Markdown
Contributor

@adambkaplan: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/e2e-agnostic-cmd 11ec288 link /test e2e-agnostic-cmd

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

@adambkaplan
Copy link
Copy Markdown
Contributor Author

/close

No longer relevant

@openshift-ci-robot
Copy link
Copy Markdown

@adambkaplan: Closed this PR.

Details

In response to this:

/close

No longer relevant

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

approved Indicates a PR has been approved by an approver from all required OWNERS files. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants