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

Generate CI supports patch versions #2641

Merged
merged 2 commits into from May 10, 2024

Conversation

pierDipi
Copy link
Member

@pierDipi pierDipi commented May 9, 2024

When creating a new branch or updating a patch version for a release branch, we will run the automation to regenarate the CI config and update the promotion tag according to project.yaml version

Depends on openshift-knative/hack#153

When creating a new branch or updating a patch version for a
release branch, we will run the automation to regenarate the
CI config and update the promotion tag according to `project.yaml`
version

Depends on openshift-knative/hack#153

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@pierDipi
Copy link
Member Author

pierDipi commented May 9, 2024

/cc @mgencur

@openshift-ci openshift-ci bot requested a review from mgencur May 9, 2024 09:46
@@ -51,12 +54,17 @@ jobs:
- name: Generate CI (on workflow dispatch)
if: github.event_name == 'workflow_dispatch'
working-directory: ./src/github.com/openshift-knative/hack
run: go run ./cmd/prowcopy --branch ${{ inputs.branch }} --tag ${{ inputs.branch }} --config config/serverless-operator.yaml
run: go run ./cmd/prowcopy --branch ${{ inputs.branch }} --tag ${{ inputs.tag }} --config config/serverless-operator.yaml
Copy link
Member

Choose a reason for hiding this comment

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

Why not call it with:

go run github.com/openshift-knative/hack/cmd/prowcopy

(or with @main if we don't keep track of the github.com/openshift-knative/hack/cmd/prowcopy in go.mod)

Copy link
Member Author

@pierDipi pierDipi May 9, 2024

Choose a reason for hiding this comment

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

This is the same as before, I don't think it's related to this change and can be "improved" as a follow up?


- name: Generate CI (on branch created)
if: github.event.created
working-directory: ./src/github.com/openshift-knative/hack
run: go run ./cmd/prowcopy --branch ${{ github.ref_name }} --tag ${{ github.ref_name }} --config config/serverless-operator.yaml
run: go run ./cmd/prowcopy --branch ${{ github.ref_name }} --tag "release-$(yq read ../serverless-operator/olm-catalog/serverless-operator/project.yaml 'project.version') --config config/serverless-operator.yaml
Copy link
Member

Choose a reason for hiding this comment

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

Do we have yq installed at this point?
Just wondering, because here we "download" it:

if [[ "$(GOFLAGS='' go run github.com/mikefarah/yq/v3@latest read "$csv" spec.replaces)" == "" || \

Copy link
Member Author

Choose a reason for hiding this comment

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

Added a step

Copy link
Member

Choose a reason for hiding this comment

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

Awesome 🎉

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Copy link
Member

@creydr creydr left a comment

Choose a reason for hiding this comment

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

/lgtm

Copy link
Contributor

openshift-ci bot commented May 10, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: creydr, pierDipi

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

@pierDipi pierDipi merged commit 2cc132d into openshift-knative:main May 10, 2024
4 of 12 checks passed
@pierDipi
Copy link
Member Author

/cherry-pick release-1.33

@openshift-cherrypick-robot
Copy link
Contributor

@pierDipi: new pull request created: #2644

In response to this:

/cherry-pick release-1.33

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-sigs/prow repository.

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.

None yet

4 participants