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

Bug 2065661: pin-latest.py should allow a custom tag to be set #3507

Merged
merged 1 commit into from
Mar 18, 2022

Conversation

omertuc
Copy link
Contributor

@omertuc omertuc commented Mar 18, 2022

When publishing the Infrastructure Operator bundle and catalog to quay
for the master branch, we scan the operator's manifests
(clusterserviceversion in particular) for the "latest" tag and pin it to
a particular image manifest digest. This is done using the pin-latest.py
script and the choice of "latest" tag is hardcoded in that script.

We would like to use the same script for doing similar pinning but for
our release branches. In those release branches, the CSV manifest
doesn't have :latest tags, it has, for example, ocm-2.5 tags.

The script should be modified to accept, through an environment
variable, a different tag that needs to be pinned, so it can be used in
release branch catalog/bundle quay publishing CI jobs.

List all the issues related to this PR

  • New Feature
  • Enhancement
  • Bug fix
  • Tests
  • Documentation
  • CI/CD

What environments does this code impact?

  • Automation (CI, tools, etc)
  • Cloud
  • Operator Managed Deployments
  • None

How was this code tested?

  • assisted-test-infra environment
  • dev-scripts environment
  • Reviewer's test appreciated
  • Waiting for CI to do a full test run
  • Manual (Elaborate on how it was tested)
  • No tests needed

Assignees

/cc @adriengentil

Checklist

  • Title and description added to both, commit and PR.
  • Relevant issues have been associated (see CONTRIBUTING guide)
  • Reviewers have been listed
  • This change does not require a documentation update (docstring, docs, README, etc)
  • Does this change include unit-tests (note that code changes require unit-tests)

Reviewers Checklist

  • Are the title and description (in both PR and commit) meaningful and clear?
  • Is there a bug required (and linked) for this change?
  • Should this PR be backported?

When publishing the Infrastructure Operator bundle and catalog to quay
for the master branch, we scan the operator's manifests
(clusterserviceversion in particular) for the "latest" tag and pin it to
a particular image manifest digest. This is done using the pin-latest.py
script and the choice of "latest" tag is hardcoded in that script.

We would like to use the same script for doing similar pinning but for
our release branches. In those release branches, the CSV manifest
doesn't have :latest tags, it has, for example, ocm-2.5 tags.

The script should be modified to accept, through an environment
variable, a different tag that needs to be pinned, so it can be used in
release branch catalog/bundle quay publishing CI jobs.
@openshift-ci openshift-ci bot added the bugzilla/severity-low Referenced Bugzilla bug's severity is low for the branch this PR is targeting. label Mar 18, 2022
@openshift-ci openshift-ci bot added the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Mar 18, 2022
@openshift-ci
Copy link

openshift-ci bot commented Mar 18, 2022

@omertuc: This pull request references Bugzilla bug 2065661, which is invalid:

  • expected the bug to target the "rhacm-2.5" release, but it targets "---" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

Bug 2065661: pin-latest.py should allow a custom tag to be set

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.

@openshift-ci openshift-ci bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Mar 18, 2022
@openshift-ci
Copy link

openshift-ci bot commented Mar 18, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: omertuc

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 18, 2022
@codecov
Copy link

codecov bot commented Mar 18, 2022

Codecov Report

Merging #3507 (75911f3) into master (96eaedb) will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3507   +/-   ##
=======================================
  Coverage   67.12%   67.13%           
=======================================
  Files         171      171           
  Lines       24190    24190           
=======================================
+ Hits        16237    16239    +2     
+ Misses       6393     6392    -1     
+ Partials     1560     1559    -1     
Impacted Files Coverage Δ
internal/cluster/validations/validations.go 60.88% <0.00%> (+0.73%) ⬆️

@adriengentil
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 18, 2022
@omertuc
Copy link
Contributor Author

omertuc commented Mar 18, 2022

Waiting for openshift/release#27102 to merge to get rid of invalid invalid-bug

@omertuc
Copy link
Contributor Author

omertuc commented Mar 18, 2022

/bugzilla refresh

@openshift-ci
Copy link

openshift-ci bot commented Mar 18, 2022

@omertuc: This pull request references Bugzilla bug 2065661, which is invalid:

  • expected the bug to target the "rhacm-2.5" release, but it targets "---" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

/bugzilla refresh

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.

@omertuc
Copy link
Contributor Author

omertuc commented Mar 18, 2022

/bugzilla refresh

@openshift-ci
Copy link

openshift-ci bot commented Mar 18, 2022

@omertuc: This pull request references Bugzilla bug 2065661, which is invalid:

  • expected the bug to target the "rhacm-2.6" release, but it targets "---" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

/bugzilla refresh

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.

@omertuc
Copy link
Contributor Author

omertuc commented Mar 18, 2022

/bugzilla refresh

@openshift-ci openshift-ci bot added bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. and removed bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels Mar 18, 2022
@openshift-ci
Copy link

openshift-ci bot commented Mar 18, 2022

@omertuc: This pull request references Bugzilla bug 2065661, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (rhacm-2.6) matches configured target release for branch (rhacm-2.6)
  • bug is in the state NEW, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact:
/cc @bjacot

In response to this:

/bugzilla refresh

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.

@openshift-ci
Copy link

openshift-ci bot commented Mar 18, 2022

@omertuc: All pull requests linked via external trackers have merged:

Bugzilla bug 2065661 has been moved to the MODIFIED state.

In response to this:

Bug 2065661: pin-latest.py should allow a custom tag to be set

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.

@openshift-ci
Copy link

openshift-ci bot commented Mar 18, 2022

@omertuc: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-ai-operator-ztp-ipv4v6-sno-ocp-49 75911f3 link false /test e2e-ai-operator-ztp-ipv4v6-sno-ocp-49

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

@omertuc
Copy link
Contributor Author

omertuc commented Mar 18, 2022

/cherry-pick ocm-2.5

@omertuc
Copy link
Contributor Author

omertuc commented Mar 18, 2022

/cherry-pick release-ocm-2.5

@openshift-cherrypick-robot

@omertuc: cannot checkout ocm-2.5: error checking out ocm-2.5: exit status 1. output: error: pathspec 'ocm-2.5' did not match any file(s) known to git

In response to this:

/cherry-pick ocm-2.5

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.

@openshift-cherrypick-robot

@omertuc: new pull request created: #3509

In response to this:

/cherry-pick release-ocm-2.5

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.

flaper87 pushed a commit to flaper87/assisted-service that referenced this pull request Sep 21, 2022
…nshift#3507)

When publishing the Infrastructure Operator bundle and catalog to quay
for the master branch, we scan the operator's manifests
(clusterserviceversion in particular) for the "latest" tag and pin it to
a particular image manifest digest. This is done using the pin-latest.py
script and the choice of "latest" tag is hardcoded in that script.

We would like to use the same script for doing similar pinning but for
our release branches. In those release branches, the CSV manifest
doesn't have :latest tags, it has, for example, ocm-2.5 tags.

The script should be modified to accept, through an environment
variable, a different tag that needs to be pinned, so it can be used in
release branch catalog/bundle quay publishing CI jobs.
danielerez pushed a commit to danielerez/assisted-service that referenced this pull request Oct 15, 2023
…nshift#3507)

When publishing the Infrastructure Operator bundle and catalog to quay
for the master branch, we scan the operator's manifests
(clusterserviceversion in particular) for the "latest" tag and pin it to
a particular image manifest digest. This is done using the pin-latest.py
script and the choice of "latest" tag is hardcoded in that script.

We would like to use the same script for doing similar pinning but for
our release branches. In those release branches, the CSV manifest
doesn't have :latest tags, it has, for example, ocm-2.5 tags.

The script should be modified to accept, through an environment
variable, a different tag that needs to be pinned, so it can be used in
release branch catalog/bundle quay publishing CI jobs.
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. bugzilla/severity-low Referenced Bugzilla bug's severity is low for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants