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

Refactor nightly builds #714

Merged
merged 1 commit into from
Feb 11, 2021
Merged

Conversation

afrittoli
Copy link
Member

Changes

Refactor nightly builds to:

  • move nightly builds to an own namespace
  • use a single event listener for all nightly builds
  • use independent trigger CRDs for each project
  • make it easier to add new builds

Signed-off-by: Andrea Frittoli andrea.frittoli@uk.ibm.com

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

See the contribution guide
for more details.

/kind misc

@tekton-robot tekton-robot added the kind/misc Categorizes issue or PR as a miscellaneuous one. label Feb 5, 2021
@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 5, 2021
@afrittoli
Copy link
Member Author

I test this ok for pipeline in the tekton-nightly namespace.

@afrittoli
Copy link
Member Author

/test plumbing-golang-lint

@afrittoli
Copy link
Member Author

/test plumbing-yamllint

@afrittoli
Copy link
Member Author

A number of resources required for release purposes are deployed manually: secrets, the project specific task and pipelines, the tasks from the catalogue... this is also a chance to check what's missing, what we could automate further and what needs to be documented.

@afrittoli
Copy link
Member Author

/hold

@tekton-robot tekton-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 5, 2021
@afrittoli afrittoli force-pushed the nightly_builds branch 2 times, most recently from db12658 to 70cb633 Compare February 8, 2021 14:53
@afrittoli
Copy link
Member Author

Waiting for tektoncd/triggers#950

@afrittoli
Copy link
Member Author

/test plumbing-yamllint

@afrittoli
Copy link
Member Author

/test plumbing-golang-lint

apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: golang-build
Copy link
Contributor

Choose a reason for hiding this comment

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

not sure why we want to duplicate this here vs applying the version in the catalog?

Copy link
Member Author

Choose a reason for hiding this comment

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

I should have left a comment on this 🙏
The version in the catalogue is different, this one uses pipeline resources, and the only place it exists today is in the cluster :(
I do want to remove all pipeline resources from the release process, but that's a good sized chunk of work by itself, so I'll be working on that in another series of PRs.

Copy link
Member

Choose a reason for hiding this comment

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

Yep discussed with @afrittoli, the goal is to not have those anymore but for now, we should make sure all that is on the cluster is stored here. And then we can migrate to depend on the catalog version.

@afrittoli
Copy link
Member Author

/hold cancel

@tekton-robot tekton-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 8, 2021
@afrittoli
Copy link
Member Author

/test check-pr-has-kind-label

@afrittoli afrittoli force-pushed the nightly_builds branch 2 times, most recently from d334ea8 to 75ee76d Compare February 9, 2021 13:56
Refactor nightly builds to:
- move nightly builds to an own namespace
- use a single event listener for all nightly builds
- use independent trigger CRDs for each project
- make it easier to add new builds
- pull project specific resources from the project repos

The golang tasks where not defined anywhere, so adding them here.
Once we switch to release pipelines without pipeline resources, we
can start using the version of those tasks from the catalog.

Signed-off-by: Andrea Frittoli <andrea.frittoli@uk.ibm.com>
Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

/meoz

@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vdemeester

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

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 9, 2021
@afrittoli
Copy link
Member Author

/test plumbing-yamllint

@afrittoli
Copy link
Member Author

/test plumbing-kubectl-build

@afrittoli
Copy link
Member Author

/test check-pr-has-kind-label

@afrittoli
Copy link
Member Author

/code plumbing-yamllint

@afrittoli
Copy link
Member Author

/test plumbing-yamllint

@@ -4,9 +4,8 @@ commonLabels:
commonAnnotations:
release: nightly
resources:
- bindings.yaml
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we keep binding.yaml file here like template.yaml ?

Copy link
Member Author

Choose a reason for hiding this comment

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

bindings.yaml is not in the base folder anymore, it's now in the root folder, because with this change bindings are not project specific anymore. I'm try to reduce the number of files to be customised when adding a new project to nightly builds.

@@ -0,0 +1,22 @@
# Copyright 2020 The Tekton Authors
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
# Copyright 2020 The Tekton Authors
# Copyright 2021 The Tekton Authors

Copy link
Member Author

Choose a reason for hiding this comment

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

Nice catch, thank you.
I copied that from tekton/resources/nightly-release/base/kustomizeconfig/eventlistener.yaml which is why the copyright is 2020, I can update it if you prefer so.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah okok i got it
I though its added newly
If it's copied from other place then i am okay with 2020

Copy link
Contributor

@savitaashture savitaashture left a comment

Choose a reason for hiding this comment

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

/lgtm

Thank you 👍

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 11, 2021
@tekton-robot tekton-robot merged commit e5b3945 into tektoncd:main Feb 11, 2021
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. kind/misc Categorizes issue or PR as a miscellaneuous one. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants