Skip to content
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

releng(image-promoter): Add canary jobs for image promotion #19789

Merged
merged 1 commit into from
Nov 2, 2020

Conversation

justaugustus
Copy link
Member

@justaugustus justaugustus commented Oct 31, 2020

This is a step towards running the image promotion jobs on the
k8s-infra-prow-build-trusted instead of test-infra-trusted. (ref: kubernetes-sigs/promo-tools#269, kubernetes/k8s.io#157)

Differences from the prod jobs:

  • Runs in k8s-infra-prow-build-trusted
  • Uses -dry-run=true
  • Jobs renamed to include 'image-promo' for clarity
  • Job names are suffixed with '-canary'
  • Periodic runs every 2 hours (instead of every 4 hours)
  • Rerun enabled for Release Managers

Signed-off-by: Stephen Augustus [email protected]

/hold for @spiffxp or @dims review
cc: @listx @thockin @kubernetes/release-engineering

@k8s-ci-robot k8s-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 31, 2020
@k8s-ci-robot k8s-ci-robot added area/release-eng Issues or PRs related to the Release Engineering subproject sig/release Categorizes an issue or PR as relevant to SIG Release. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Oct 31, 2020
@justaugustus
Copy link
Member Author

/assign @spiffxp @dims

Copy link
Contributor

@hasheddan hasheddan left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 31, 2020
@justaugustus
Copy link
Member Author

/hold for adding service accts (

---
kind: ServiceAccount
apiVersion: v1
metadata:
annotations:
iam.gke.io/gcp-service-account: k8s-infra-gcr-promoter@k8s-artifacts-prod.iam.gserviceaccount.com
name: k8s-infra-gcr-promoter
namespace: test-pods
---
kind: ServiceAccount
apiVersion: v1
metadata:
annotations:
iam.gke.io/gcp-service-account: k8s-infra-gcr-promoter@k8s-artifacts-prod-bak.iam.gserviceaccount.com
name: k8s-infra-gcr-promoter-bak
namespace: test-pods
) to k8s-infra-prow-build-trusted.

@justaugustus
Copy link
Member Author

Opened the PR for adding the GCR promotion service accounts to k8s-infra-prow-build-trusted, here: kubernetes/k8s.io#1382

Copy link
Member

@saschagrunert saschagrunert left a comment

Choose a reason for hiding this comment

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

/lgtm

- -thin-manifest-dir=/home/prow/go/src/github.com/kubernetes/k8s.io/k8s.gcr.io
- -dry-run=true
annotations:
testgrid-dashboards: sig-release-releng-blocking, wg-k8s-infra-k8sio
Copy link
Member

Choose a reason for hiding this comment

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

if is a canary, can we move to the informing dashboard? when this is stable and we promote to official we move to the blocking dashboard. wdyt?

Copy link
Member Author

@justaugustus justaugustus Nov 2, 2020

Choose a reason for hiding this comment

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

I thought about that, but I consider this canaries to be "blocking" as well.

What I didn't want to happen is us to cut these over to the real jobs and have them missing from the blocking dashboard.

Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 2, 2020
@justaugustus
Copy link
Member Author

(Updated alert addresses to match #19797.)
/test pull-test-infra-bazel

@spiffxp
Copy link
Member

spiffxp commented Nov 2, 2020

Periodic runs every 30 minutes (instead of every 4 hours)

Is this going to exhaust rate limits?

@spiffxp
Copy link
Member

spiffxp commented Nov 2, 2020

I was thinking of #16727 which I found via https://github.com/kubernetes/test-infra/blame/master/config/jobs/kubernetes/test-infra/test-infra-trusted.yaml

At the time, that blew through quota at a 1h interval

This is a step towards running the image promotion jobs on the
k8s-infra-prow-build-trusted instead of test-infra-trusted.

Differences from the prod jobs:
- Runs in k8s-infra-prow-build-trusted
- Uses -dry-run=true
- Jobs renamed to include 'image-promo' for clarity
- Job names are suffixed with '-canary'
- Periodic runs every 2 hours (instead of every 4 hours)
- Rerun enabled for Release Managers

Signed-off-by: Stephen Augustus <[email protected]>
@justaugustus
Copy link
Member Author

/hold cancel

kubernetes/k8s.io#1382 has merged and I've updated the periodic interval to 2 hours, based on the convo with @spiffxp here: https://kubernetes.slack.com/archives/CJH2GBF7Y/p1604339284066200?thread_ts=1604327026.060900&cid=CJH2GBF7Y

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 2, 2020
Copy link
Member

@spiffxp spiffxp left a comment

Choose a reason for hiding this comment

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

/approve
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 2, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cpanato, hasheddan, justaugustus, saschagrunert, spiffxp

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit a3761ed into kubernetes:master Nov 2, 2020
@k8s-ci-robot k8s-ci-robot added this to the v1.20 milestone Nov 2, 2020
@k8s-ci-robot
Copy link
Contributor

@justaugustus: Updated the job-config configmap in namespace default at cluster test-infra-trusted using the following files:

  • key releng-trusted.yaml using file config/jobs/kubernetes/wg-k8s-infra/trusted/releng/releng-trusted.yaml

In response to this:

This is a step towards running the image promotion jobs on the
k8s-infra-prow-build-trusted instead of test-infra-trusted. (ref: kubernetes-sigs/promo-tools#269, kubernetes/k8s.io#157)

Differences from the prod jobs:

  • Runs in k8s-infra-prow-build-trusted
  • Uses -dry-run=true
  • Jobs renamed to include 'image-promo' for clarity
  • Job names are suffixed with '-canary'
  • Periodic runs every 2 hours (instead of every 4 hours)
  • Rerun enabled for Release Managers

Signed-off-by: Stephen Augustus [email protected]

/hold for @spiffxp or @dims review
cc: @listx @thockin @kubernetes/release-engineering

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. area/release-eng Issues or PRs related to the Release Engineering subproject cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/release Categorizes an issue or PR as relevant to SIG Release. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants