-
-
Notifications
You must be signed in to change notification settings - Fork 278
cz check range sometimes failed in GitLab CI #593
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
Comments
Is it possible that the git repo doesn't setup remote 🤔 |
I run command |
Hmmm... As I'm not able to reproduce it, I don't have any clue on how we could fix it. But we can keep it open till you or someone encounter this issue again with more detail |
Actually,this issue has come up again. |
Do you mean after merging back to the master branch? If that's the case, your |
@SsuperL Please try https://commitizen-tools.github.io/commitizen/bump/#easy-way |
I'll try it.Thank you! |
@SsuperL did you try to |
|
do you have remote |
yes. |
What would be the output of |
Oh,it didn't show anything of |
@SsuperL One of the stuff I can think of is shallow clone. Maybe you could take a look at this direction as well :) |
Okay, I'll check it out. |
Hi, I am having the same issue outside of CI. When I
Whereas if I skip the verification everything works fine. Unfortunately the repo is private and I can't share the url, but the configs are: default_install_hook_types:
- pre-commit
- pre-push
default_language_version:
python: python3.9
repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.42.1
hooks:
- id: commitizen-branch
stages: [ push ] And the hook (which should not matter) is: #!/usr/bin/env bash
# File generated by pre-commit: https://pre-commit.com
# ID: 138fd403232d2ddd5efb44317e38bf03
# start templated
INSTALL_PYTHON=/Users/lucabaggi/.local/share/pipx/venvs/pre-commit/bin/python
ARGS=(hook-impl --config=.pre-commit-config.yaml --hook-type=pre-push)
# end templated
HERE="$(cd "$(dirname "$0")" && pwd)"
ARGS+=(--hook-dir "$HERE" -- "$@")
if [ -x "$INSTALL_PYTHON" ]; then
exec "$INSTALL_PYTHON" -mpre_commit "${ARGS[@]}"
elif command -v pre-commit > /dev/null; then
exec pre-commit "${ARGS[@]}"
else
echo '`pre-commit` not found. Did you forget to activate your virtualenv?' 1>&2
exit 1
fi |
Have you tried |
Does not for me... Perhaps it can mess up if I have |
Hello, if I run |
The following fixed it for me: git remote set-head origin -a Eventually found a semi-good explanation at: https://learnku.com/articles/71493 (My issue is actually when I'm trying to run |
Checking older or related issues to access the tool's status.
|
Having the same issue as new user in 2025; git fetch did not help |
Hey could you please provide an example so that we could try to reproduce and see what's happening? Thanks! |
Description
Run
cz check --range origin/master..HEAD
to check commits in CI occasionally fails.And it worked after I retried the job.But sometimes it didn't work after retrying multiple times.
I couldn't find out the reason ,
Steps to reproduce
lint:
retry: 1
script:
- cz version
- cz check --rev-range origin/master..HEAD
Current behavior
cz check --rev-range origin/master..HEAD
failed. Outputs attached below:Desired behavior
cz check --rev-range
can run successfully in gitlab CI.Screenshots
Environment
commitizen version: 2.34.0
python version: 3.7.5
operating system: Linux
The text was updated successfully, but these errors were encountered: