This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Sanitize Branch Names for Docker Containers #10366
Closed
The head ref may contain hidden characters: "zach-_=+#/@&$#\u03A9"
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…IO_REGISTRY accidentally
kj4ezj
changed the title
Sanitize Branch Names for Docker Container Names
Sanitize Branch Names for Docker Containers
May 15, 2021
Closed in favor of pull request 10372 because - label: ":chains: Sync from Genesis Test"
trigger: "eosio-sync-from-genesis"
async: false
if: build.env("BUILDKITE_TAG") == null
build:
message: "Triggered by eosio build 28443"
commit: "53323023b0707fdd5bd26947781b92251af77f95"
branch: "zach-_=+#/@&$#Ω"
env:
BUILDKITE_TRIGGERED_FROM_BUILD_URL: "https://buildkite.com/EOSIO/eosio/builds/28443"
SKIP_JUNGLE: "true"
SKIP_KYLIN: ""
SKIP_MAIN: ""
TIMEOUT: ""
- label: ":outbox_tray: Resume from State Test"
trigger: "eosio-resume-from-state"
async: false
if: build.env("BUILDKITE_TAG") == null
build:
message: "Triggered by eosio build 28443"
commit: "53323023b0707fdd5bd26947781b92251af77f95"
branch: "zach-_=+#/@&$#Ω"
env:
BUILDKITE_TRIGGERED_FROM_BUILD_URL: "https://buildkite.com/EOSIO/eosio/builds/28443"
SKIP_JUNGLE: "true"
SKIP_KYLIN: ""
SKIP_MAIN: ""
TIMEOUT: ""
- wait:
continue_on_failure: true This is, in my opinion, a bug on Buildkite's end because valid branch names can apparently contain a |
This was referenced May 17, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change Description
From #help-automation and AUTO-848, a developer created an eos branch name with a hash tag
#
character (e.g. "pr#125"). This broke theDocker - Build and Install
step because it requires branch names to be valid URIs, currently only transforming forward-slashes/
into underscores_
to support branch names with forward-slashes.This pull request adds a series of transforms to turn forward-slashes
/
into underscores_
, turn all other invalid characters for a docker container name into dashes-
, then minimize sequences of these replacement characters and ensure they are not the beginning or end of the string.I have also added log folding groups and improved the patterns in
/.cicd/create-docker-from-binary.sh
, and updated the pipeline readme.See Also
eos:develop
eos:release/2.1.x
eos:release/2.0.x
Change Type
Select ONE:
Testing Changes
Select ANY that apply:
Consensus Changes
None.
API Changes
None.
Documentation Additions
None.