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

Image builds should be tested in presubmit #1850

Closed
1 of 2 tasks
justaugustus opened this issue Jan 15, 2021 · 22 comments
Closed
1 of 2 tasks

Image builds should be tested in presubmit #1850

justaugustus opened this issue Jan 15, 2021 · 22 comments
Assignees
Labels
area/release-eng Issues or PRs related to the Release Engineering subproject kind/feature Categorizes issue or PR as related to a new feature. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. sig/release Categorizes an issue or PR as relevant to SIG Release.
Milestone

Comments

@justaugustus
Copy link
Member

justaugustus commented Jan 15, 2021

What would you like to be added:

Image builds should be tested in presubmit.

Rough expectations:

Why is this needed:

As we build critical images for core Kubernetes releases, failure to build those images should be blocking.

@kubernetes/release-engineering -- this is a good one to pick up.
/help
ref: #1849

@justaugustus justaugustus added kind/feature Categorizes issue or PR as related to a new feature. sig/release Categorizes an issue or PR as relevant to SIG Release. area/release-eng Issues or PRs related to the Release Engineering subproject labels Jan 15, 2021
@k8s-ci-robot k8s-ci-robot added help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. needs-priority labels Jan 15, 2021
@justaugustus justaugustus added this to the v1.21 milestone Jan 15, 2021
@justaugustus justaugustus added the priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. label Jan 15, 2021
@sladyn98
Copy link

Any way I can contribute to this ?

@cpanato
Copy link
Member

cpanato commented Jan 18, 2021

@sladyn98 I started over the weekend (forgot to remove the help wanted), but I think you can work on that if you want.

Need to check how to create the new GCP project

@sladyn98
Copy link

@cpanato So If I understand correctly this would involve creating the new gcp project and then mirroring the post submit steps in the release.yml right ?

@cpanato
Copy link
Member

cpanato commented Jan 18, 2021

@sladyn98
Copy link

sladyn98 commented Jan 18, 2021

Yeah :) however what about creating the new gcp project, is that something I need to take up or the team would do that for me

@cpanato
Copy link
Member

cpanato commented Jan 18, 2021

@sladyn98 this part i dont know either, we need to check in #test-infra or #wg-k8s-infra to see if there is a process or how to request that

@cpanato
Copy link
Member

cpanato commented Jan 18, 2021

/assign @sladyn98
/remove-help

@k8s-ci-robot k8s-ci-robot removed the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Jan 18, 2021
@ameukam
Copy link
Member

ameukam commented Jan 18, 2021

@sladyn98 @cpanato AFAIK the GCP projects related to the release process are managed here : https://github.com/kubernetes/k8s.io/blob/master/infra/gcp/ensure-release-projects.sh. However their access is limited to specific groups (https://github.com/kubernetes/k8s.io/blob/master/infra/gcp/ensure-release-projects.sh#L46-L48). The exiting project k8s-release-test-prod can also be used.

@cpanato
Copy link
Member

cpanato commented Jan 19, 2021

@ameukam maybe @justaugustus can comment on that

@sladyn98
Copy link

@ameukam So if i understand correctly I can add the steps without creating a new project.
CC cpanato

@cpanato
Copy link
Member

cpanato commented Jan 25, 2021

Checking the project creation over slack: https://kubernetes.slack.com/archives/CCK68P2Q2/p1611581520009100

@saschagrunert
Copy link
Member

saschagrunert commented Jan 27, 2021

I think we could achieve the test cases without adding an additional project. We could just add a set of tests which run make all-build within the image/* directories. This way we do not have to push anything out and could succeed if the builds work. Any thoughts on that?

This way we can not test the logic from cloudbuild.yaml, but we could at least test if the images are building correctly.

@cpanato
Copy link
Member

cpanato commented Jan 27, 2021

If that is enough for now we can move on this direction

@saschagrunert
Copy link
Member

Thought about the test approach and I think adding a new project might be the most clean way to test everything including the cloudbuild process.

@justaugustus
Copy link
Member Author

Some of the failures we've seen have been distinct to running in GCB, so while I think a "local" test build could be good, we should also test in GCB.

@justaugustus
Copy link
Member Author

@sladyn98 -- Unfortunately, this is going to require Release Manager access to configure and debug, so I need to unassign you.

/unassign @sladyn98

@kubernetes/release-engineering -- part of the intent for opening this issue was so that someone on the team (that wasn't me) could:

  • get up-to-speed with the project creation process
  • get more experience with the base image building
  • start working on fixing any gaps we have in documentation

Who would like to take this on?

@sladyn98
Copy link

@justaugustus No worries, I will pick up something else that I can work on. Thanks

@cpanato
Copy link
Member

cpanato commented Jan 27, 2021

@justaugustus I started the discussion I think I can take it over

@justaugustus
Copy link
Member Author

@justaugustus No worries, I will pick up something else that I can work on. Thanks

Thanks for being understanding! 💕

@justaugustus I started the discussion I think I can take it over

SGTM!
/assign @cpanato

@cpanato
Copy link
Member

cpanato commented Mar 14, 2021

I think we have all jobs in place 😄
will close this issue and if we need to do any followup we can open a fresh one!

/close

@k8s-ci-robot
Copy link
Contributor

@cpanato: Closing this issue.

In response to this:

I think we have all jobs in place 😄
will close this issue and if we need to do any followup we can open a fresh one!

/close

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
area/release-eng Issues or PRs related to the Release Engineering subproject kind/feature Categorizes issue or PR as related to a new feature. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. sig/release Categorizes an issue or PR as relevant to SIG Release.
Projects
None yet
Development

No branches or pull requests

6 participants