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

openshift-ci[bot] merged 4 commits into
openshift-knative:mainfrom
skonto:inject_serving_images

Conversation

@skonto

@skonto skonto commented Jun 20, 2022 •

Copy link
Copy Markdown
Collaborator
  • 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

skonto commented Jun 20, 2022

Copy link
Copy Markdown
Collaborator Author

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

@skonto

skonto commented Jun 20, 2022

Copy link
Copy Markdown
Collaborator Author

/retest

@skonto

skonto commented Jun 20, 2022

Copy link
Copy Markdown
Collaborator Author
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

skonto commented Jun 20, 2022

Copy link
Copy Markdown
Collaborator Author

/retest

1 similar comment
@skonto

skonto commented Jun 20, 2022

Copy link
Copy Markdown
Collaborator Author

/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

skonto commented Jun 22, 2022

Copy link
Copy Markdown
Collaborator Author

/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

@pierDipi pierDipi left a comment

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 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.

@skonto skonto Jun 23, 2022 •

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.

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

@skonto skonto Jun 24, 2022 •

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.

Stavros Kontopoulos added 2 commits July 1, 2022 13:52
@skonto

skonto commented Jul 1, 2022

Copy link
Copy Markdown
Collaborator Author

/retest

@skonto

skonto commented Jul 1, 2022

Copy link
Copy Markdown
Collaborator Author

@matzew @pierDipi ready, gentle ping.

@pierDipi pierDipi left a comment

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.

/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.

@skonto skonto Jul 1, 2022 •

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.

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

skonto commented Jul 1, 2022

Copy link
Copy Markdown
Collaborator Author

/retest

1 similar comment
@skonto

skonto commented Jul 1, 2022

Copy link
Copy Markdown
Collaborator Author

/retest

@skonto

skonto commented Jul 1, 2022

Copy link
Copy Markdown
Collaborator Author

Nits done waiting for tests to pass.

@pierDipi

pierDipi commented Jul 1, 2022

Copy link
Copy Markdown
Member

/lgtm

@openshift-ci openshift-ci Bot added the lgtm label Jul 1, 2022
@openshift-ci

openshift-ci Bot commented Jul 1, 2022

Copy link
Copy Markdown
Contributor

[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

skonto commented Jul 1, 2022

Copy link
Copy Markdown
Collaborator Author

/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