-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Feature]: Handling the git hooks errors while committing could be improved. #251
Labels
p4
unimportant, but tracked
Comments
example git output: Task exited ok
time="2024-04-02T09:23:36+02:00" level=warning msg="/home/luttkule/git/paf23/build/docker-compose.yml: `version` is obsolete"
time="2024-04-02T09:23:36+02:00" level=warning msg="/home/luttkule/git/paf23/build/docker-compose.nvidia.yml: `version` is obsolete"
README.md:16:301 MD013/line-length Line length [Expected: 300; Actual: 315]
Error: '"$@"' exited with status 1
b5 exiting with status 1
�[00;31mTask failed, see error above�[0m
Error: '( export COMPOSE_PROJECT_NAME=paf23; export DOCKER_HOST_SYSTEM=linux; export DOCKER_HOST_USERNAME=luttkule; export DOCKER_HOST_UNIX_UID=1000; export DOCKER_HOST_UNIX_GID=1000; "$@" )' exited with status 1
b5 exiting with status 1
�[00;31mTask failed, see error above�[0m
Error: '( cd /home/luttkule/git/paf23/build && docker:run docker compose -f docker-compose.yml -f docker-compose.nvidia.yml "$@" )' exited with status 1
b5 exiting with status 1
�[00;31mTask failed, see error above�[0m
Error: '( cd /home/luttkule/git/paf23/build || return 1; if [ $command_strategy == 'exec' ]; then
docker:compose exec "${options[@]}" "${exec_options[@]}" "$container" "$@";
else
docker:compose run "${options[@]}" "${run_options[@]}" "$container" "$@";
fi )' exited with status 1
b5 exiting with status 1
�[00;31mTask failed, see error above�[0m
b5 1.4.1
Found project path (/home/luttkule/git/paf23)
Found Taskfile (Taskfile)
Found config (config.yml, config.local.yml)
Config files ending in ".yml" are deprecated, please use ".yaml" instead
Executing task markdown:lint
Task execution failed, see above
Error: 'b5 markdown:lint' exited with status 1
b5 exiting with status 1
�[00;31mTask failed, see error above�[0m
b5 1.4.1
Found project path (/home/luttkule/git/paf23)
Found Taskfile (Taskfile)
Found config (config.yml, config.local.yml)
Config files ending in ".yml" are deprecated, please use ".yaml" instead
Executing task lint
Task execution failed, see above
2024-04-02 09:23:37.136 [info] > git config --get-all user.name [2ms]
2024-04-02 09:23:37.170 [info] > git config --get-all user.email [2ms]
2024-04-02 09:23:37.204 [info] > git config --get commit.template [3ms]
2024-04-02 09:23:37.235 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/250-feature-review-paf23-final-repository refs/remotes/250-feature-review-paf23-final-repository [2ms]
2024-04-02 09:23:37.268 [info] > git status -z -uall [6ms]
2024-04-02 09:23:37.301 [info] > git show -s --format=%H%n%aN%n%aE%n%at%n%ct%n%P%n%D%n%B -z 0e3d7700ce390e06868a84beaa8b728f5d558897 [3ms]
2024-04-02 09:23:54.248 [info] > git show --textconv :README.md [56ms]
2024-04-02 09:23:54.248 [info] > git ls-files --stage -- /home/luttkule/git/paf23/README.md [29ms]
2024-04-02 09:23:54.306 [info] > git cat-file -s 5535ead851319f62c3ca49329eaa3070fd3c6727 [31ms]
2024-04-02 09:24:01.017 [info] > git config --get commit.template [29ms]
2024-04-02 09:24:01.019 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/250-feature-review-paf23-final-repository refs/remotes/250-feature-review-paf23-final-repository [2ms]
2024-04-02 09:24:01.052 [info] > git status -z -uall [6ms]
2024-04-02 09:24:10.666 [info] > git config --get commit.template [29ms]
2024-04-02 09:24:10.696 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/250-feature-review-paf23-final-repository refs/remotes/250-feature-review-paf23-final-repository [2ms]
2024-04-02 09:24:10.729 [info] > git status -z -uall [5ms]
2024-04-02 09:24:39.245 [info] > git fetch [394ms]
2024-04-02 09:24:39.275 [info] > git config --get commit.template [1ms]
2024-04-02 09:24:39.306 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/250-feature-review-paf23-final-repository refs/remotes/250-feature-review-paf23-final-repository [3ms]
2024-04-02 09:24:39.339 [info] > git status -z -uall [6ms]
2024-04-02 09:24:40.397 [info] > git config --get commit.template [29ms]
2024-04-02 09:24:40.398 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/250-feature-review-paf23-final-repository refs/remotes/250-feature-review-paf23-final-repository [3ms]
2024-04-02 09:24:40.431 [info] > git status -z -uall [5ms]
2024-04-02 09:24:40.470 [info] > git ls-files --stage -- /home/luttkule/git/paf23/README.md [2ms]
2024-04-02 09:24:40.499 [info] > git cat-file -s 5535ead851319f62c3ca49329eaa3070fd3c6727 [2ms]
2024-04-02 09:24:40.529 [info] > git show --textconv :README.md [2ms]
2024-04-02 09:24:45.177 [info] > git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file - [3396ms]
2024-04-02 09:24:45.178 [info]
Starting git hooks
No python files in commit, skip python linting
time="2024-04-02T09:24:42+02:00" level=warning msg="/home/luttkule/git/paf23/build/docker-compose.yml: `version` is obsolete"
time="2024-04-02T09:24:42+02:00" level=warning msg="/home/luttkule/git/paf23/build/docker-compose.nvidia.yml: `version` is obsolete"
b5 1.4.1
Found project path (/home/luttkule/git/paf23)
Found Taskfile (Taskfile)
Found config (config.yml, config.local.yml)
Config files ending in ".yml" are deprecated, please use ".yaml" instead
Executing task python:lint
Task exited ok
time="2024-04-02T09:24:43+02:00" level=warning msg="/home/luttkule/git/paf23/build/docker-compose.yml: `version` is obsolete"
time="2024-04-02T09:24:43+02:00" level=warning msg="/home/luttkule/git/paf23/build/docker-compose.nvidia.yml: `version` is obsolete"
b5 1.4.1
Found project path (/home/luttkule/git/paf23)
Found Taskfile (Taskfile)
Found config (config.yml, config.local.yml)
Config files ending in ".yml" are deprecated, please use ".yaml" instead
Executing task markdown:lint
Task exited ok
b5 1.4.1
Found project path (/home/luttkule/git/paf23)
Found Taskfile (Taskfile)
Found config (config.yml, config.local.yml)
Config files ending in ".yml" are deprecated, please use ".yaml" instead
Executing task lint
Task exited ok
Finished git hooks
time="2024-04-02T09:24:44+02:00" level=warning msg="/home/luttkule/git/paf23/build/docker-compose.yml: `version` is obsolete"
time="2024-04-02T09:24:44+02:00" level=warning msg="/home/luttkule/git/paf23/build/docker-compose.nvidia.yml: `version` is obsolete"
⧗ input: doc: Update README.md
⚠ footer must have leading blank line [footer-leading-blank]
⚠ scope may not be empty [scope-empty]
✖ type must be one of [docs, feat, fix, other] [type-enum]
✖ found 1 problems, 2 warnings
ⓘ Help: https://github.com/ll7/paf22/blob/main/doc/developement/commit.md
Error: '"$@"' exited with status 1
b5 exiting with status 1
�[00;31mTask failed, see error above�[0m
Error: '( export COMPOSE_PROJECT_NAME=paf23; export DOCKER_HOST_SYSTEM=linux; export DOCKER_HOST_USERNAME=luttkule; export DOCKER_HOST_UNIX_UID=1000; export DOCKER_HOST_UNIX_GID=1000; "$@" )' exited with status 1
b5 exiting with status 1
�[00;31mTask failed, see error above�[0m
Error: '( cd /home/luttkule/git/paf23/build && docker:run docker compose -f docker-compose.yml -f docker-compose.nvidia.yml "$@" )' exited with status 1
b5 exiting with status 1
�[00;31mTask failed, see error above�[0m
Error: '( cd /home/luttkule/git/paf23/build || return 1; if [ $command_strategy == 'exec' ]; then
docker:compose exec "${options[@]}" "${exec_options[@]}" "$container" "$@";
else
docker:compose run "${options[@]}" "${run_options[@]}" "$container" "$@";
fi )' exited with status 1
b5 exiting with status 1
�[00;31mTask failed, see error above�[0m
b5 1.4.1
Found project path (/home/luttkule/git/paf23)
Found Taskfile (Taskfile)
Found config (config.yml, config.local.yml)
Config files ending in ".yml" are deprecated, please use ".yaml" instead
Executing task comlipy
Task execution failed, see above
2024-04-02 09:24:45.208 [info] > git config --get-all user.name [3ms]
2024-04-02 09:24:45.237 [info] > git config --get-all user.email [2ms]
2024-04-02 09:24:45.266 [info] > git config --get commit.template [1ms]
2024-04-02 09:24:45.296 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/250-feature-review-paf23-final-repository refs/remotes/250-feature-review-paf23-final-repository [3ms]
2024-04-02 09:24:45.329 [info] > git status -z -uall [5ms]
2024-04-02 09:24:45.388 [info] > git show -s --format=%H%n%aN%n%aE%n%at%n%ct%n%P%n%D%n%B -z 0e3d7700ce390e06868a84beaa8b728f5d558897 [30ms]
2024-04-02 09:24:48.677 [info] > git ls-files --stage -- /home/luttkule/git/paf23/README.md [2ms]
2024-04-02 09:24:48.706 [info] > git cat-file -s 5535ead851319f62c3ca49329eaa3070fd3c6727 [2ms]
2024-04-02 09:24:48.737 [info] > git show --textconv :README.md [2ms]
2024-04-02 09:25:18.931 [info] > git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file - [3366ms]
2024-04-02 09:25:18.931 [info]
Starting git hooks
No python files in commit, skip python linting
time="2024-04-02T09:25:15+02:00" level=warning msg="/home/luttkule/git/paf23/build/docker-compose.yml: `version` is obsolete"
time="2024-04-02T09:25:15+02:00" level=warning msg="/home/luttkule/git/paf23/build/docker-compose.nvidia.yml: `version` is obsolete"
b5 1.4.1
Found project path (/home/luttkule/git/paf23)
Found Taskfile (Taskfile)
Found config (config.yml, config.local.yml)
Config files ending in ".yml" are deprecated, please use ".yaml" instead
Executing task python:lint
Task exited ok
time="2024-04-02T09:25:16+02:00" level=warning msg="/home/luttkule/git/paf23/build/docker-compose.yml: `version` is obsolete"
time="2024-04-02T09:25:16+02:00" level=warning msg="/home/luttkule/git/paf23/build/docker-compose.nvidia.yml: `version` is obsolete"
b5 1.4.1
Found project path (/home/luttkule/git/paf23)
Found Taskfile (Taskfile)
Found config (config.yml, config.local.yml)
Config files ending in ".yml" are deprecated, please use ".yaml" instead
Executing task markdown:lint
Task exited ok
b5 1.4.1
Found project path (/home/luttkule/git/paf23)
Found Taskfile (Taskfile)
Found config (config.yml, config.local.yml)
Config files ending in ".yml" are deprecated, please use ".yaml" instead
Executing task lint
Task exited ok
Finished git hooks
time="2024-04-02T09:25:18+02:00" level=warning msg="/home/luttkule/git/paf23/build/docker-compose.yml: `version` is obsolete"
time="2024-04-02T09:25:18+02:00" level=warning msg="/home/luttkule/git/paf23/build/docker-compose.nvidia.yml: `version` is obsolete"
⧗ input: docs: Update README.md
⚠ footer must have leading blank line [footer-leading-blank]
⚠ scope may not be empty [scope-empty]
⚠ found 0 problems, 2 warnings
ⓘ Help: https://github.com/ll7/paf22/blob/main/doc/developement/commit.md
b5 1.4.1
Found project path (/home/luttkule/git/paf23)
Found Taskfile (Taskfile)
Found config (config.yml, config.local.yml)
Config files ending in ".yml" are deprecated, please use ".yaml" instead
Executing task comlipy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Originally posted by @ll7 in #250 (comment)
The text was updated successfully, but these errors were encountered: