-
Notifications
You must be signed in to change notification settings - Fork 635
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
CI: only push tar instead of also container image #925
Conversation
looks like all NPD CI jobs is running NPD in standalone mode. /lgtm |
/lgtm @DigitalVeer Can you revert kubernetes/test-infra#32893 now since we have accumulated enough failure signals? |
test/build.sh
Outdated
@@ -138,7 +138,7 @@ function build-ci() { | |||
export REGISTRY="${NPD_STAGING_REGISTRY}/ci" | |||
export VERSION="$(get-version)-$(date +%Y%m%d.%H%M)" | |||
export TAG="${VERSION}" | |||
make push | |||
make push-tar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/hold
instead of reverting the test-infra change, let's switch to only push-tar
here but add building but not pushing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM
@@ -128,7 +128,7 @@ function build-pr() { | |||
export REGISTRY="${NPD_STAGING_REGISTRY}/pr/${PR}" | |||
export VERSION=$(get-version) | |||
export TAG="${VERSION}" | |||
make push | |||
make push-tar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOTE: pull-npd-build
already runs make build
which includes build-container
, so there's no reason to build it in PR e2e runs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(specifically it runs ./test/build.sh install-lib && make build
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment here to explain that this is only used by presubmit e2e? The build job is using make build
which covers container build already?
/hold cancel |
/hold Actually, we don't need it here either do we? What we really want is:
|
Yes
Yes. And no need to build container either.
This uses pre-uploaded tarball from postsubmit/periodic build.
We use github file upload for release. We need to build both container and tar file. We only need to push tar file. |
So right now Periodic e2e seem to do: Presubmit e2e do: So "CI" mode is only used for |
@@ -128,7 +128,7 @@ function build-pr() { | |||
export REGISTRY="${NPD_STAGING_REGISTRY}/pr/${PR}" | |||
export VERSION=$(get-version) | |||
export TAG="${VERSION}" | |||
make push | |||
make push-tar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment here to explain that this is only used by presubmit e2e? The build job is using make build
which covers container build already?
@@ -138,7 +138,7 @@ function build-ci() { | |||
export REGISTRY="${NPD_STAGING_REGISTRY}/ci" | |||
export VERSION="$(get-version)-$(date +%Y%m%d.%H%M)" | |||
export TAG="${VERSION}" | |||
make push | |||
make push-tar build-container |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a comment to explain that we do not need to push container here for CI tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
So let's try this as-is, right now the ci-npd-build failure logs just point to the GCR push which we're dropping |
We only need the tar to run CI tests, but we should also test building the container. We release the container and binaries independently of this, this script is for e2e tests.
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: AnishShah, BenTheElder, wangzhen127 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 |
related to #920
AFAICT we don't need to push the image, and it will be tricker to enable pushing to a container registry with GC enabled, instead we can only push the tarball for e2e builds and leave container image pushing to release