Skip to content

Conversation

@stevekuznetsov
Copy link
Contributor

@stevekuznetsov stevekuznetsov commented Oct 13, 2020

Signed-off-by: Steve Kuznetsov [email protected]

This implements DPTP-1242

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 13, 2020
@stevekuznetsov
Copy link
Contributor Author

/test e2e

@stevekuznetsov stevekuznetsov force-pushed the skuznets/inject-oc branch 2 times, most recently from ae1dca4 to 0811a74 Compare October 13, 2020 18:18
@openshift-ci-robot
Copy link
Contributor

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

Test name Commit Details Rerun command
ci/prow/e2e 0811a74 link /test e2e

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.

@stevekuznetsov
Copy link
Contributor Author

 /bin/bash: line 2: oc: command not found 

:(

@stevekuznetsov
Copy link
Contributor Author

This should now be ready.

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 14, 2020
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alvaroaleman, stevekuznetsov

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:
  • OWNERS [alvaroaleman,stevekuznetsov]

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

@openshift-merge-robot openshift-merge-robot merged commit 304a65e into openshift:master Oct 14, 2020
wking added a commit to wking/openshift-release that referenced this pull request Oct 23, 2020
…o multi-step

Using the openshift-e2e-gcp workflow and overriding the test step per
[1] to run our operator tests instead of the usual e2e suite.

I've dropped "cincinnati" from the job name, because this presubmit
only runs in the cincinnati-operator repository.  The fact that it is
operator-e2e is sufficient to distinguish from other presubmits in
that repository.

I've dropped "aws" from the job name, because we are platform-agnostic
(see ci-operator/platform-balance).

The 'cli: initial' property injects 'oc' into the step container
[2,3], because we need 'oc', a Go toolchain, and our source checkout
to run the CI suite.

The dependencies avoid [4]:

  $ curl -s https://storage.googleapis.com/origin-ci-test/pr-logs/pull/openshift_release/12486/rehearse-12486-pull-ci-openshift-cincinnati-operator-master-operator-e2e/1318745953997426688/build-log.txt | grep -1 'into stable\|panic'
  2020/10/21 02:51:30 Build cincinnati-graph-data-container succeeded after 1m28s
  2020/10/21 02:51:30 Tagging cincinnati-graph-data-container into stable
  2020/10/21 02:51:49 Build cincinnati-operator succeeded after 1m47s
  2020/10/21 02:51:49 Tagging cincinnati-operator into stable
  2020/10/21 02:51:50 Create release image registry.build01.ci.openshift.org/ci-op-qwfkx85i/release:latest
  --
  I1021 03:29:37.177795    4880 utils.go:121] Waiting for full availability of cincinnati-operator deployment (0/1)
  panic: test timed out after 10m0s

because of:

  $ curl -s https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/origin-ci-test/pr-logs/pull/openshift_release/12486/rehearse-12486-pull-ci-openshift-cincinnati-operator-master-operator-e2e/1318745953997426688/artifacts/operator-e2e/gather-extra/pods.json | jq -r '.items[] | select(.metadata.name | startswith("cincinnati-operator-")).status.containerStatuses[].state.waiting.message'
  Back-off pulling image "registry.svc.ci.openshift.org/ci-op-qwfkx85i/stable:cincinnati-operator"

The failure is because the operator-repo-hard-coded
registry.svc.ci.openshift.org default does not match the
registry.build01.ci.openshift.org where the CI operator was injecting
the images.  By using explicit dependency images, we drop our reliance
on the unreliable operator-repo-hard-coded values.

I'm also setting OPERAND_IMAGE to the most recent published image:

  $ skopeo inspect docker://quay.io/app-sre/cincinnati@sha256:d1d2f881bce1a1375ec8470133ee0a912164b8a7ecce19aac24d24e623aef59b | jq -r .Created
  2020-10-12T17:08:41.179845937Z

In a future pivot we'll pull the operand image out of CI too, instead
of hard-coding.  But with this change we at least move the hard-coding
into the CI repository.

And I'm clearing OPENSHIFT_BUILD_NAMESPACE, because hack/deploy.sh
uses it to clobber both OPERATOR_IMAGE and GRAPH_DATA_IMAGE [4], and
we don't want those clobbered anymore.  Once we have green CI, we can
update the operator repo to simplify the logic.

Generated by editing ci-operator/config and then running:

  $ make update

[1]: https://steps.ci.openshift.org/help#config
[2]: openshift/ci-tools#1296
[3]: https://docs.ci.openshift.org/docs/architecture/step-registry/#injecting-the-oc-cli
[4]: https://github.com/openshift/cincinnati-operator/blob/8fce9de9dfe004249b9b19a83d1cbec3c4095965/hack/deploy.sh#L11
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. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants