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

Hotfix branches are not matched to release states #116

Open
gnadaban opened this issue Jan 11, 2022 · 0 comments
Open

Hotfix branches are not matched to release states #116

gnadaban opened this issue Jan 11, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@gnadaban
Copy link

Describe the bug
Tried to do deployment from a hotfix/ branch and got an error:

Unable to match git reference to any release id, refs/heads/hotfix/gee/domain-name-collision
Traceback (most recent call last):
  File "/Users/george/.virtualenvs/egms-deploy/lib/python3.9/site-packages/foodx_devops_tools/release_flow/_cd_release_id.py", line 57, in identify_release_id
    state = identify_release_state(git_ref)
  File "/Users/george/.virtualenvs/egms-deploy/lib/python3.9/site-packages/foodx_devops_tools/release_flow/_cd_release_state.py", line 45, in identify_release_state
    raise ReleaseStateError(
foodx_devops_tools.release_flow._exceptions.ReleaseStateError: Unable to match git reference to any release state, refs/heads/hotfix/gee/domain-name-collision

To Reproduce
Steps to reproduce the behavior:

  1. Create branch with hotfix/gee/ prefix as in egms-fdx deployments.yml
  2. Do make fdx-deploy from branch
  3. See error

Expected behavior
The deployment should be matched to a feature branch as described in deployments.yml:

        egms_fdx_devg:
          gitref_patterns:
            - "^refs/heads/feature/gee/.*"
            - "^refs/heads/hotfix/gee/.*"
          locations:
            - primary: North Central US
          root_fqdn: foodx.green
@blueskyjunkie blueskyjunkie added the enhancement New feature or request label Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants