Skip to content

Inject Serving images#1630

Merged
openshift-ci[bot] merged 4 commits into
openshift-knative:mainfrom
skonto:inject_serving_images
Jul 1, 2022
Merged

Inject Serving images#1630
openshift-ci[bot] merged 4 commits into
openshift-knative:mainfrom
skonto:inject_serving_images

Conversation

@skonto
Copy link
Copy Markdown
Collaborator

@skonto skonto commented Jun 20, 2022

  • Part of the work defined in SIG Release
  • Replaces Serving images with the ones built on CI via env vars
  • Gets manifests from the mid stream repo
  • Ingress will come as a next step

@skonto
Copy link
Copy Markdown
Collaborator Author

skonto commented Jun 20, 2022

Serving tests faiure:
AutoscaleSustainingTest
TestAutoscaleSustaining/aggregation-weighted-exponential

@skonto
Copy link
Copy Markdown
Collaborator Author

skonto commented Jun 20, 2022

/retest

@skonto
Copy link
Copy Markdown
Collaborator Author

skonto commented Jun 20, 2022

error: unable to recognize "STDIN": Get "https://api.ci-ocp-4-10-amd64-aws-us-east-1-dsbnd.hive.aws.ci.openshift.org:6443/api?timeout=32s": dial tcp: lookup api.ci-ocp-4-10-amd64-aws-us-east-1-dsbnd.hive.aws.ci.openshift.org on 172.30.0.10:53: no such host

@skonto
Copy link
Copy Markdown
Collaborator Author

skonto commented Jun 20, 2022

/retest

1 similar comment
@skonto
Copy link
Copy Markdown
Collaborator Author

skonto commented Jun 20, 2022

/retest

@skonto skonto changed the title [wip] Inject Serving images Inject Serving images Jun 22, 2022
@skonto skonto requested review from nak3 and pierDipi June 22, 2022 10:03
@skonto
Copy link
Copy Markdown
Collaborator Author

skonto commented Jun 22, 2022

/hold

wget --no-check-certificate "$url" -O "$target_file"

if [[ ${KNATIVE_SERVING_MANIFESTS_DIR} = "" ]]; then
url="https://raw.githubusercontent.com/skonto/serving/${branch}/openshift/release/artifacts/$index-$file"
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

After we merge the PR at the openshift/serving repo we can then change back to https://raw.githubusercontent.com/openshift/knative-serving/${branch}/openshift/release/artifacts/$index-$file

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1 we did same

Copy link
Copy Markdown
Member

@pierDipi pierDipi left a comment

Choose a reason for hiding this comment

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

Great, another little step!

Comment on lines +30 to +31
serving_artifacts_branch: image_injection_1.3

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: maybe group this with dependencies.serving as put them closer to each other?

wget --no-check-certificate "$url" -O "$target_file"

if [[ ${KNATIVE_SERVING_MANIFESTS_DIR} = "" ]]; then
url="https://raw.githubusercontent.com/skonto/serving/${branch}/openshift/release/artifacts/$index-$file"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: if we align the serving repo first we can point to the proper midstream branch instead of yours, meaning we can merge your branch in serving first, and then we can just use the final one here.

This would simplify the review of the deleted patches making sure that what we're removing here is added to the serving repo.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

or that way - yeah

git apply "$root/openshift-knative-operator/hack/001-serving-namespace-deletion.patch"
# When openshift-knative/serving uses this repo to run a job (eg. PR against openshift-knative/serving) it will use a minimum
# setup with net-kourier. Thus it will not use the release artifacts generated under openshift-knative-operator/cmd/kodata/knative-serving.
# Instead openshift-knative/serving uses its own generated ci manifests and sets KNATIVE_SERVING_TEST_MANIFESTS_DIR.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
# Instead openshift-knative/serving uses its own generated ci manifests and sets KNATIVE_SERVING_TEST_MANIFESTS_DIR.
# Instead openshift/knative-serving uses its own generated ci manifests and sets KNATIVE_SERVING_TEST_MANIFESTS_DIR.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Missing nit

Comment on lines -1 to -4
diff --git a/openshift-knative-operator/cmd/operator/kodata/knative-serving/1.3.0/2-serving-core.yaml b/openshift-knative-operator/cmd/operator/kodata/knative-serving/1.3.0/2-serving-core.yaml
index 4f7af33d..4a5ce15f 100644
--- a/openshift-knative-operator/cmd/operator/kodata/knative-serving/1.3.0/2-serving-core.yaml
+++ b/openshift-knative-operator/cmd/operator/kodata/knative-serving/1.3.0/2-serving-core.yaml
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Great! Another step to the removal of versioned directories!

@@ -1,31 +0,0 @@
diff --git a/openshift-knative-operator/cmd/operator/kodata/knative-serving/1.3.0/2-serving-core.yaml b/openshift-knative-operator/cmd/operator/kodata/knative-serving/1.3.0/2-serving-core.yaml
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't see this patch in https://github.com/skonto/serving/tree/image_injection_1.3/openshift/patches, maybe it's planned for later but I'd keep track of these removed patches.

Copy link
Copy Markdown
Collaborator Author

@skonto skonto Jun 23, 2022

Choose a reason for hiding this comment

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

It is here: https://github.com/skonto/serving/tree/image_injection_1.3/openshift/release/manifest-patches.
Reason is that https://github.com/skonto/serving/tree/image_injection_1.3/openshift/patches only contains the patches for the ci yaml files. The release ones are there. This is because the Serving setup for ci tests (eg. when a PR is done at the openshift/knative-serving) repo is minimal. It is not the same one we have at the S-O side eg. no istio is used only kourier. For now the release manifests are downloaded in that new dir until we unify the process of testing and releasing.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ok, thanks!

One note on patches:

Similar comment on other patches since basing them on the origin of the final manifests would benefit from future changes.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

But that's not really relevant for this PR, just a thought

Copy link
Copy Markdown
Collaborator Author

@skonto skonto Jun 24, 2022

Choose a reason for hiding this comment

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

Yeah we could do that I will take a note and do it when we merge the patches. As a side note https://github.com/skonto/serving/tree/image_injection_1.3/openshift/patches, contains also code patches in https://github.com/skonto/serving/blob/image_injection_1.3/openshift/release/manifest-patches it is only manifest patches as they are used in Serverless Operator.

Stavros Kontopoulos added 2 commits July 1, 2022 13:52
@skonto
Copy link
Copy Markdown
Collaborator Author

skonto commented Jul 1, 2022

/retest

@skonto
Copy link
Copy Markdown
Collaborator Author

skonto commented Jul 1, 2022

@matzew @pierDipi ready, gentle ping.

Copy link
Copy Markdown
Member

@pierDipi pierDipi left a comment

Choose a reason for hiding this comment

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

/hold
2 nits, they can be fixed later tho

/lgtm
/approve

# setup with net-kourier. Thus it will not use the release artifacts generated under openshift-knative-operator/cmd/kodata/knative-serving.
# Instead openshift-knative/serving uses its own generated ci manifests and sets KNATIVE_SERVING_TEST_MANIFESTS_DIR.
# Extensive Serving testing is done at this repo only. For the latter we do use manifests under openshift-knative-operator/cmd/kodata/knative-serving which are fetched from the midstream
# repo. TODO: unify the artifacts at the mid stream repo.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I guess TODO is done?

Suggested change
# repo. TODO: unify the artifacts at the mid stream repo.
# repo.

Copy link
Copy Markdown
Collaborator Author

@skonto skonto Jul 1, 2022

Choose a reason for hiding this comment

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

Nope this is not done. Unifying means using the manifests from one place. Check my comment: #1630 (comment).
But we can remove that.

git apply "$root/openshift-knative-operator/hack/001-serving-namespace-deletion.patch"
# When openshift-knative/serving uses this repo to run a job (eg. PR against openshift-knative/serving) it will use a minimum
# setup with net-kourier. Thus it will not use the release artifacts generated under openshift-knative-operator/cmd/kodata/knative-serving.
# Instead openshift-knative/serving uses its own generated ci manifests and sets KNATIVE_SERVING_TEST_MANIFESTS_DIR.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Missing nit

@openshift-ci openshift-ci Bot removed the lgtm label Jul 1, 2022
@skonto
Copy link
Copy Markdown
Collaborator Author

skonto commented Jul 1, 2022

/retest

1 similar comment
@skonto
Copy link
Copy Markdown
Collaborator Author

skonto commented Jul 1, 2022

/retest

@skonto
Copy link
Copy Markdown
Collaborator Author

skonto commented Jul 1, 2022

Nits done waiting for tests to pass.

@pierDipi
Copy link
Copy Markdown
Member

pierDipi commented Jul 1, 2022

/lgtm

@openshift-ci openshift-ci Bot added the lgtm label Jul 1, 2022
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Jul 1, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pierDipi, skonto

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

@skonto
Copy link
Copy Markdown
Collaborator Author

skonto commented Jul 1, 2022

/unhold

@openshift-ci openshift-ci Bot merged commit a352d77 into openshift-knative:main Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants