You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this a BUG REPORT or FEATURE REQUEST? (choose one): FEATURE REQUEST
Version of Helm and Kubernetes: helm 3.4.0
What happened:
When running ct list-changed with the default target-branch (master) - if master does not exist (i.e. GitHub now defaults to main), then you get the following in GitHub Actions (via the chart-testing-action):
Error: Error running process: exit status 128
This is very tricky to debug without a dev environment that mirrors the GitHub Action (unfortunately I had a master branch locally so things would not fail locally). Mirroring the GitHub Action environment is not trivial - a bit of logging or a cleaner error would go a long ways to making this easier to debug!
I eventually figured this out by reasoning from this issue: #186
What you expected to happen:
ERROR: `--target-branch=master` does not exist
(Or infer which branch should be referenced from the git repository)
How to reproduce it (as minimally and precisely as possible):
# in a git repo with no master branch
ct list-changed
Anything else we need to know:
The text was updated successfully, but these errors were encountered:
* feat: verify if targetBranch is present in git repo
If a targetBranch is not present in the git repository the `ct list-changed` command will fail.
The error message for this is not really meaningful.
This commit will validate if the branch exists and throw a error message which the user will understand.
closes#330
Signed-off-by: Marco Lecheler <marco@task.media>
* chore(test): mocking test for chart.BranchExists()
Signed-off-by: Marco Lecheler <marco@task.media>
* fix(lint): use fmt.Errorf for error msg
Signed-off-by: Marco Lecheler <marco@task.media>
---------
Signed-off-by: Marco Lecheler <marco@task.media>
Is this a request for help?: no
Is this a BUG REPORT or FEATURE REQUEST? (choose one): FEATURE REQUEST
Version of Helm and Kubernetes:
helm 3.4.0
What happened:
When running
ct list-changed
with the default target-branch (master
) - ifmaster
does not exist (i.e. GitHub now defaults tomain
), then you get the following in GitHub Actions (via the chart-testing-action):This is very tricky to debug without a dev environment that mirrors the GitHub Action (unfortunately I had a
master
branch locally so things would not fail locally). Mirroring the GitHub Action environment is not trivial - a bit of logging or a cleaner error would go a long ways to making this easier to debug!I eventually figured this out by reasoning from this issue: #186
What you expected to happen:
(Or infer which branch should be referenced from the git repository)
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know:
The text was updated successfully, but these errors were encountered: