Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Sanitize Branch Names for Docker Containers #10372

Merged
merged 46 commits into from
May 18, 2021
Merged

Sanitize Branch Names for Docker Containers #10372

merged 46 commits into from
May 18, 2021

Conversation

kj4ezj
Copy link
Contributor

@kj4ezj kj4ezj commented May 17, 2021

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 the Docker - 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

Change Type

Select ONE:

  • Documentation
  • Stability bug fix
  • Other
  • Other - special case

Testing Changes

Select ANY that apply:

  • New Tests
  • Existing Tests
  • Test Framework
  • CI System
  • Other

Consensus Changes

  • Consensus Changes

None.

API Changes

  • API Changes

None.

Documentation Additions

  • Documentation Additions

None.

@kj4ezj kj4ezj merged commit dfe6909 into develop May 18, 2021
@kj4ezj kj4ezj deleted the zach-_=+#/@&#Ω branch May 18, 2021 17:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants