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

Fix GitHub Actions Failure Due to Missing go-gitlint Tool #135

Closed
wants to merge 1 commit into from

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Dec 29, 2023

PR Feedback (click)

  • 👍 Sweep Did Well
  • 👎 Sweep Needs Improvement
    I created this PR to fix the failing GitHub Actions.## Description
    This PR addresses the issue of GitHub Actions failing due to the go-gitlint tool not being found. The go-gitlint tool is used in the commit-msg git hook script to enforce coding standards on commit messages. The error message suggests running 'make tools' OR 'make tools.verify.go-gitlint' to install it.

To solve this issue, a new step has been added in the GitHub Actions workflow to install the go-gitlint tool before the git hooks are run. This ensures that the go-gitlint tool is available when the git hooks are executed, preventing the error from occurring.

Summary of Changes

  • Modified .github/workflows/main.yml to add a new step that runs the command make tools.verify.go-gitlint to install the go-gitlint tool. This step is added before the step where the git hooks are run.

@sweep-ai sweep-ai bot requested review from cubxxw and kubbot as code owners December 29, 2023 01:41
Copy link
Contributor Author

sweep-ai bot commented Dec 29, 2023

Rollback Files For Sweep

  • Rollback changes to .github/workflows/main.yml

Copy link
Contributor Author

sweep-ai bot commented Dec 29, 2023

Sandbox Executions

@sweep-ai sweep-ai bot added the sweep label Dec 29, 2023
@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Dec 29, 2023
@kubbot
Copy link
Member

kubbot commented Dec 29, 2023

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Sandbox Executions

Copy link
Contributor Author

sweep-ai bot commented Dec 29, 2023

Sweeping

Fixing PR: track the progress here.

I'm currently fixing this PR to address the following:

[Sweep GHA Fix] The GitHub Actions run failed with the following error logs:

The command:
Run ./tools/typos ./CONTRIBUTING.md ./README.md
yielded the following error:
##[error]Process completed with exit code 127.

Here are the logs:
/home/runner/work/_temp/19a833af-e493-4bb2-b591-e365e562a1ad.sh: line 1: ./tools/typos: No such file or directory

Making changes according to plan... (step 3/3)

Copy link
Contributor Author

sweep-ai bot commented Dec 29, 2023

Sweeping

Fixing PR: track the progress here.

I'm currently fixing this PR to address the following:

[Sweep GHA Fix] The GitHub Actions run failed with the following error logs:

The command:
Run git add .
yielded the following error:
##[error]Process completed with exit code 1.

Here are the logs:
�[93mkubecub : Running local kubecub pre-commit hook.�[0m
�[93mkubecub : Running the kubecub commit-msg hook.�[0m
.git/hooks/commit-msg: line 55: ./_output/tools/go-gitlint: No such file or directory
�[31mkubecub : ./_output/tools/go-gitlint not found. Please run 'make tools' OR 'make tools.verify.go-gitlint' make verto install it.�[0m
�[31mkubecub : Please fix your commit message to match kubecub coding standards�[0m
�[31mkubecub : https://gist.github.com/cubxxw/126b72104ac0b0ca484c9db09c3e5694#file-githook-md�[0m

Copy link
Contributor Author

sweep-ai bot commented Dec 29, 2023

Sweeping

Fixing PR: track the progress here.

I'm currently fixing this PR to address the following:

[Sweep GHA Fix] The GitHub Actions run failed with the following error logs:

The command:
Run git config --global user.email "[email protected]"
yielded the following error:
##[error]Process completed with exit code 1.

Here are the logs:
�[93mkubecub : Running local kubecub pre-commit hook.�[0m
�[93mkubecub : Running the kubecub commit-msg hook.�[0m
.git/hooks/commit-msg: line 55: ./_output/tools/go-gitlint: No such file or directory
�[31mkubecub : ./_output/tools/go-gitlint not found. Please run 'make tools' OR 'make tools.verify.go-gitlint' make verto install it.�[0m
�[31mkubecub : Please fix your commit message to match kubecub coding standards�[0m
�[31mkubecub : https://gist.github.com/cubxxw/126b72104ac0b0ca484c9db09c3e5694#file-githook-md�[0m

Copy link
Contributor Author

sweep-ai bot commented Dec 29, 2023

Sweeping

Fixing PR: track the progress here.

I'm currently fixing this PR to address the following:

[Sweep GHA Fix] The GitHub Actions run failed with the following error logs:

The command:
Run git config --global user.email "[email protected]"
yielded the following error:
##[error]Process completed with exit code 1.

Here are the logs:
�[93mkubecub : Running local kubecub pre-commit hook.�[0m
�[93mkubecub : Running the kubecub commit-msg hook.�[0m
.git/hooks/commit-msg: line 55: ./_output/tools/go-gitlint: No such file or directory
�[31mkubecub : ./_output/tools/go-gitlint not found. Please run 'make tools' OR 'make tools.verify.go-gitlint' make verto install it.�[0m
�[31mkubecub : Please fix your commit message to match kubecub coding standards�[0m
�[31mkubecub : https://gist.github.com/cubxxw/126b72104ac0b0ca484c9db09c3e5694#file-githook-md�[0m

Copy link
Contributor Author

sweep-ai bot commented Dec 29, 2023

Sweeping

Fixing PR: track the progress here.

I'm currently fixing this PR to address the following:

[Sweep GHA Fix] The GitHub Actions run failed with the following error logs:

The command:
Run git add .
yielded the following error:
##[error]Process completed with exit code 1.

Here are the logs:
�[93mkubecub : Running local kubecub pre-commit hook.�[0m
�[93mkubecub : Running the kubecub commit-msg hook.�[0m
.git/hooks/commit-msg: line 55: ./_output/tools/go-gitlint: No such file or directory
�[31mkubecub : ./_output/tools/go-gitlint not found. Please run 'make tools' OR 'make tools.verify.go-gitlint' make verto install it.�[0m
�[31mkubecub : Please fix your commit message to match kubecub coding standards�[0m
�[31mkubecub : https://gist.github.com/cubxxw/126b72104ac0b0ca484c9db09c3e5694#file-githook-md�[0m

Copy link
Contributor Author

sweep-ai bot commented Dec 29, 2023

Sweeping

Fixing PR: track the progress here.

I'm currently fixing this PR to address the following:

[Sweep GHA Fix] The GitHub Actions run failed with the following error logs:

The command:
Run git add .
yielded the following error:
##[error]Process completed with exit code 1.

Here are the logs:
�[93mkubecub : Running local kubecub pre-commit hook.�[0m
�[93mkubecub : Running the kubecub commit-msg hook.�[0m
.git/hooks/commit-msg: line 55: ./_output/tools/go-gitlint: No such file or directory
�[31mkubecub : ./_output/tools/go-gitlint not found. Please run 'make tools' OR 'make tools.verify.go-gitlint' make verto install it.�[0m
�[31mkubecub : Please fix your commit message to match kubecub coding standards�[0m
�[31mkubecub : https://gist.github.com/cubxxw/126b72104ac0b0ca484c9db09c3e5694#file-githook-md�[0m

Copy link
Contributor Author

sweep-ai bot commented Dec 29, 2023

Sweeping

Fixing PR: track the progress here.

I'm currently fixing this PR to address the following:

[Sweep GHA Fix] The GitHub Actions run failed with the following error logs:

The command:
Run ./tools/typos ./CONTRIBUTING.md ./README.md
yielded the following error:
##[error]Process completed with exit code 127.

Here are the logs:
/home/runner/work/_temp/a45c4458-07e0-42f2-b85a-2b68d7a9d68e.sh: line 1: ./tools/typos: No such file or directory

Copy link
Contributor Author

sweep-ai bot commented Dec 29, 2023

Sweeping

Fixing PR: track the progress here.

I'm currently fixing this PR to address the following:

[Sweep GHA Fix] The GitHub Actions run failed with the following error logs:

The command:
Run crate-ci/typos@master
yielded the following error:
##[error]Process completed with exit code 64.

Here are the logs:
##[group]Run $GITHUB_ACTION_PATH/action/entrypoint.sh
�[36;1m$GITHUB_ACTION_PATH/action/entrypoint.sh�[0m
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
env:
INSTALL_DIR: .
INPUT_FILES: ./CONTIRIBUTING.md ./README.md
INPUT_EXTEND_IDENTIFIERS:
INPUT_EXTEND_WORDS:
INPUT_ISOLATED: false
INPUT_WRITE_CHANGES: false
INPUT_CONFIG:
##[endgroup]
--2023-12-29 01:42:10--  https://github.com/crate-ci/typos/releases/download/v1.16.26/typos-v1.16.26-x86_64-unknown-linux-musl.tar.gz
Resolving github.com (github.com)... 140.82.113.4
Connecting to github.com (github.com)|140.82.113.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/181782286/a483f245-d4c3-4214-b98c-2b33e8793015?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20231229%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231229T014210Z&X-Amz-Expires=300&X-Amz-Signature=17c01f885a7912441a42c4635260953739a56c6c1998ceff5d23bd3f2d367f0f&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=181782286&response-content-disposition=attachment%3B%20filename%3Dtypos-v1.16.26-x86_64-unknown-linux-musl.tar.gz&response-content-type=application%2Foctet-stream [following]
--2023-12-29 01:42:10--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/181782286/a483f245-d4c3-4214-b98c-2b33e8793015?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20231229%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231229T014210Z&X-Amz-Expires=300&X-Amz-Signature=17c01f885a7912441a42c4635260953739a56c6c1998ceff5d23bd3f2d367f0f&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=181782286&response-content-disposition=attachment%3B%20filename%3Dtypos-v1.16.26-x86_64-unknown-linux-musl.tar.gz&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.110.133, 185.199.109.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6542857 (6.2M) [application/octet-stream]
Saving to: ‘typos-v1.16.26-x86_64-unknown-linux-musl.tar.gz’

0K ........ ........ ........ ........ ........ ........ 48%  183M 0s
3072K ........ ........ ........ ........ ........ ........ 96%  303M 0s
6144K ...                                                  100%  371M=0.03s

2023-12-29 01:42:10 (232 MB/s) - ‘typos-v1.16.26-x86_64-unknown-linux-musl.tar.gz’ saved [6542857/6542857]

./typos
jq: jq-1.6
$ ./typos ./CONTIRIBUTING.md ./README.md
argument `./CONTIRIBUTING.md` is not found
argument `./CONTIRIBUTING.md` is not found

Copy link
Contributor Author

sweep-ai bot commented Dec 29, 2023

Sweeping

Fixing PR: track the progress here.

I'm currently fixing this PR to address the following:

[Sweep GHA Fix] The GitHub Actions run failed with the following error logs:

The command:
Run anchore/scan-action@v3
yielded the following error:
##[error]Failed minimum severity level. Found vulnerabilities with level 'medium' or higher

Here are the logs:
[command]/usr/bin/chmod +x /home/runner/work/_temp/1acf9859-7aa9-4694-8e5c-1c04a2495076
[command]/home/runner/work/_temp/1acf9859-7aa9-4694-8e5c-1c04a2495076 -b /home/runner/work/_temp/1acf9859-7aa9-4694-8e5c-1c04a2495076_grype v0.73.4
[info] checking github for release tag='v0.73.4'
[info] fetching release script for tag='v0.73.4'
[info] checking github for release tag='v0.73.4'
[info] using release tag='v0.73.4' version='0.73.4' os='linux' arch='amd64'
[info] installed /home/runner/work/_temp/1acf9859-7aa9-4694-8e5c-1c04a2495076_grype/grype
##[group]grype output...
Executing: grype -o sarif --fail-on medium dir:.
1 error occurred:
* discovered vulnerabilities at or above the severity threshold

##[endgroup]

Copy link
Contributor Author

sweep-ai bot commented Dec 29, 2023

Sweeping

Fixing PR: track the progress here.

I'm currently fixing this PR to address the following:

[Sweep GHA Fix] The GitHub Actions run failed with the following error logs:

The command:
Run chmod +x scripts/githooks/*
yielded the following error:
##[error]Process completed with exit code 1.

Here are the logs:
�[93mkubecub : Running local kubecub pre-commit hook.�[0m
�[93mkubecub : Running the kubecub commit-msg hook.�[0m
grep: : No such file or directory
panic: object not found

goroutine 1 [running]:
github.com/marmotedu/go-gitlint/internal/commits.In.func1()
/root/go/pkg/mod/github.com/marmotedu/[email protected]/internal/commits/commits.go:118 +0x194
github.com/marmotedu/go-gitlint/internal/commits.filtered.func1()
/root/go/pkg/mod/github.com/marmotedu/[email protected]/internal/commits/commits.go:210 +0x5b
github.com/marmotedu/go-gitlint/internal/commits.filtered.func1()
/root/go/pkg/mod/github.com/marmotedu/[email protected]/internal/commits/commits.go:210 +0x5b
github.com/marmotedu/go-gitlint/internal/commits.filtered.func1()
/root/go/pkg/mod/github.com/marmotedu/[email protected]/internal/commits/commits.go:210 +0x5b
github.com/marmotedu/go-gitlint/internal/commits.filtered.func1()
/root/go/pkg/mod/github.com/marmotedu/[email protected]/internal/commits/commits.go:210 +0x5b
github.com/marmotedu/go-gitlint/internal/issues.Collected.func1()
/root/go/pkg/mod/github.com/marmotedu/[email protected]/internal/issues/issues.go:39 +0x70
github.com/marmotedu/go-gitlint/internal/issues.Printed.func1()
/root/go/pkg/mod/github.com/marmotedu/[email protected]/internal/issues/issues.go:54 +0x59
main.main()
/root/go/pkg/mod/github.com/marmotedu/[email protected]/cmd/go-gitlint/main.go:90 +0x1b4
�[31mkubecub : Please fix your commit message to match kubecub coding standards�[0m
�[31mkubecub : https://gist.github.com/cubxxw/126b72104ac0b0ca484c9db09c3e5694#file-githook-md�[0m

Copy link
Contributor Author

sweep-ai bot commented Dec 29, 2023

Sweeping

Fixing PR: track the progress here.

I'm currently fixing this PR to address the following:

[Sweep GHA Fix] The GitHub Actions run failed with the following error logs:

The command:
Run chmod +x scripts/githooks/*
yielded the following error:
##[error]Process completed with exit code 1.

Here are the logs:
�[93mkubecub : Running local kubecub pre-commit hook.�[0m
�[93mkubecub : Running the kubecub commit-msg hook.�[0m
grep: : No such file or directory
panic: object not found

goroutine 1 [running]:
github.com/marmotedu/go-gitlint/internal/commits.In.func1()
/root/go/pkg/mod/github.com/marmotedu/[email protected]/internal/commits/commits.go:118 +0x194
github.com/marmotedu/go-gitlint/internal/commits.filtered.func1()
/root/go/pkg/mod/github.com/marmotedu/[email protected]/internal/commits/commits.go:210 +0x5b
github.com/marmotedu/go-gitlint/internal/commits.filtered.func1()
/root/go/pkg/mod/github.com/marmotedu/[email protected]/internal/commits/commits.go:210 +0x5b
github.com/marmotedu/go-gitlint/internal/commits.filtered.func1()
/root/go/pkg/mod/github.com/marmotedu/[email protected]/internal/commits/commits.go:210 +0x5b
github.com/marmotedu/go-gitlint/internal/commits.filtered.func1()
/root/go/pkg/mod/github.com/marmotedu/[email protected]/internal/commits/commits.go:210 +0x5b
github.com/marmotedu/go-gitlint/internal/issues.Collected.func1()
/root/go/pkg/mod/github.com/marmotedu/[email protected]/internal/issues/issues.go:39 +0x70
github.com/marmotedu/go-gitlint/internal/issues.Printed.func1()
/root/go/pkg/mod/github.com/marmotedu/[email protected]/internal/issues/issues.go:54 +0x59
main.main()
/root/go/pkg/mod/github.com/marmotedu/[email protected]/cmd/go-gitlint/main.go:90 +0x1b4
�[31mkubecub : Please fix your commit message to match kubecub coding standards�[0m
�[31mkubecub : https://gist.github.com/cubxxw/126b72104ac0b0ca484c9db09c3e5694#file-githook-md�[0m

Copy link
Contributor Author

sweep-ai bot commented Dec 29, 2023

🚀 Wrote Changes

I wasn't able to make changes. This could be due to an unclear request or a bug in my code.
As a reminder, comments on a file only modify that file. Comments on a PR (at the bottom of the "conversation" tab) can modify the entire PR. Please try again or contact us on Discord

@kubbot kubbot removed the sweep label Dec 30, 2023
@kubbot
Copy link
Member

kubbot commented Jan 31, 2024

This issue is stale because it has been open 7 days with no activity.

@kubbot kubbot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 31, 2024
@kubbot
Copy link
Member

kubbot commented Feb 5, 2024

This PR was closed because it has been stalled for 5 days with no activity. You can reopen it if you want.

@kubbot kubbot closed this Feb 5, 2024
@kubecub kubecub locked and limited conversation to collaborators Feb 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants