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 1878972: pkg/cli/admin/release: Use '-', not '=', for untranslated arches #680

Merged

Conversation

wking
Copy link
Member

@wking wking commented Dec 21, 2020

Fixing a bug from e575833 (#646), where untranslated architectures would fail with:

error: unable to push manifest to local-registry.apps.pravind.redhat.com:5000/ocp4/openshift4:4.7.0-0.nightly-ppc64le-2020-12-21-131639=ppc64le-prometheus: invalid tag format

because tags are usually restricted to [\w][\w.-]{0,127}, and \w is [0-9A-Za-z_]. That means = is not a valid character.

Fixing a bug from e575833 (adm release mirror: add architecture
information, 2020-11-20, openshift#646), where untranslated architectures would
fail with [1]:

  error: unable to push manifest to local-registry.apps.pravind.redhat.com:5000/ocp4/openshift4:4.7.0-0.nightly-ppc64le-2020-12-21-131639=ppc64le-prometheus: invalid tag format

because tags are usually restricted to [2]:

  [\w][\w.-]{0,127}

And \w is '[0-9A-Za-z_]' [3].  That means '=' is not a valid character.

[1]: https://bugzilla.redhat.com/show_bug.cgi?id=1878972#c14
[2]: https://github.com/containers/image/blob/a5061e5a5f00333ea3a92e7103effd11c6e2f51d/docker/reference/regexp.go#L36-L37
[3]: https://github.com/google/re2/wiki/Syntax
@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 21, 2020
@pravin-dsilva
Copy link

pravin-dsilva commented Dec 21, 2020

/LGTM

@pravin-dsilva
Copy link

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 21, 2020
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pravin-dsilva, wking

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

@wking wking changed the title 1878972: pkg/cli/admin/release: Use '-', not '=', for untranslated arches Bug 1878972: pkg/cli/admin/release: Use '-', not '=', for untranslated arches Dec 21, 2020
@openshift-ci-robot
Copy link

@wking: This pull request references Bugzilla bug 1878972, 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 (4.7.0) matches configured target release for branch (4.7.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

Bug 1878972: pkg/cli/admin/release: Use '-', not '=', for untranslated arches

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-robot openshift-ci-robot added bugzilla/severity-medium Referenced Bugzilla bug's severity is medium 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. labels Dec 21, 2020
@openshift-merge-robot openshift-merge-robot merged commit 8fbc95f into openshift:master Dec 21, 2020
@openshift-ci-robot
Copy link

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

Bugzilla bug 1878972 has been moved to the MODIFIED state.

In response to this:

Bug 1878972: pkg/cli/admin/release: Use '-', not '=', for untranslated arches

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.

@wking wking deleted the equal-not-valid-tag-character branch December 21, 2020 23:50
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-medium Referenced Bugzilla bug's severity is medium 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants