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 API rate limit issue #132

Closed
wants to merge 1 commit into from

Conversation

sweep-ai[bot]
Copy link
Contributor

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

PR Feedback (click)

  • 👍 Sweep Did Well
  • 👎 Sweep Needs Improvement
    I created this PR to fix the failing GitHub Actions.## Description
    This PR introduces a delay between each API request made by the GitHub label syncer tool to avoid hitting the GitHub API rate limit. It also handles the case where the rate limit is hit despite the delay, by waiting until the rate limit is reset before making further requests.

Summary of Changes

  • Imported the time package in cmd/syncer/main.go.
  • Added a call to time.Sleep with a duration of 1 second after each call to SyncLabels in cmd/syncer/main.go. This introduces a delay between each API request.
  • Wrapped the call to SyncLabels in a try-catch block to catch the rate limit error. If this error is caught, the tool uses the Rate.Reset field to determine when the rate limit will be reset, and sleeps until this time before continuing.
  • Handled potential errors that may occur during this process, such as the Rate.Reset field being nil.

These changes should prevent the tool from hitting the GitHub API rate limit and causing the GitHub Actions run to fail.

@sweep-ai sweep-ai bot requested a review from cubxxw as a code owner December 28, 2023 17:35
Copy link
Contributor Author

sweep-ai bot commented Dec 28, 2023

Rollback Files For Sweep

  • Rollback changes to cmd/syncer/main.go
  • Rollback changes to cmd/syncer/main.go

@sweep-ai sweep-ai bot added the sweep label Dec 28, 2023
Copy link
Contributor Author

sweep-ai bot commented Dec 28, 2023

Sandbox Executions

  • Running GitHub Actions for cmd/syncer/main.go
Check cmd/syncer/main.go with contents:

Ran GitHub Actions for 5a85b33c0dc342c3d99fb938eac086d7bdb3642e:
• build-and-push:
• OpenCommit:
• build:
• check:
• Test:
• test:
• check_typos:
• Invite users to join our group:
• assign-issue:
• CLAAssistant:
• gpt_translate:
• build:
• Invite users to join our group:
• assign-issue:
• gpt_translate:
• CLAAssistant:
• build:
• assign-issue:
• CLAAssistant:
• build:
• gpt_translate:
• Invite users to join our group:
• Invite users to join our group:
• gpt_translate:
• build:
• CLAAssistant:
• assign-issue:
• assign-issue:
• CLAAssistant:
• gpt_translate:
• Invite users to join our group:
• build:
• CLAAssistant:
• Invite users to join our group:
• gpt_translate:
• assign-issue:
• build:
• Invite users to join our group:
• gpt_translate:
• assign-issue:
• CLAAssistant:
• build:
• build:
• assign-issue:
• CLAAssistant:
• gpt_translate:
• Invite users to join our group:
• OpenCommit:
• Test:
• build:
• test:
• check_typos:
• build-and-push:
• check:
• build:
• CLAAssistant:
• build:
• Invite users to join our group:
• assign-issue:
• gpt_translate:
• Invite users to join our group:
• assign-issue:
• CLAAssistant:
• gpt_translate:
• build:
• assign-issue:
• CLAAssistant:
• gpt_translate:
• build:
• Invite users to join our group:
• assign-issue:
• Invite users to join our group:
• build:
• gpt_translate:
• CLAAssistant:
• CLAAssistant:
• assign-issue:
• gpt_translate:
• build:
• Invite users to join our group:
• build:
• Invite users to join our group:
• assign-issue:
• gpt_translate:
• CLAAssistant:
• OpenCommit:
• build:
• test:
• build-and-push:
• Test:
• check:
• check_typos:
• build:
• assign-issue:
• build:
• Invite users to join our group:
• gpt_translate:
• CLAAssistant:
• assign-issue:
• CLAAssistant:
• Invite users to join our group:
• gpt_translate:
• build:
• build:
• assign-issue:
• CLAAssistant:
• gpt_translate:
• Invite users to join our group:
• Invite users to join our group:
• build:
• assign-issue:
• gpt_translate:
• CLAAssistant:
• build:
• assign-issue:
• gpt_translate:
• CLAAssistant:
• Invite users to join our group:
• Invite users to join our group:
• assign-issue:
• gpt_translate:
• CLAAssistant:
• build:
• assign-issue:
• gpt_translate:
• CLAAssistant:
• build:
• Invite users to join our group:
• OpenCommit:
• build:
• test:
• check_typos:
• Test:
• check:
• build-and-push:
• build:
• build:
• assign-issue:
• CLAAssistant:
• gpt_translate:
• Invite users to join our group:
• Invite users to join our group:
• gpt_translate:
• assign-issue:
• build:
• CLAAssistant:
• assign-issue:
• build:
• Invite users to join our group:
• CLAAssistant:
• gpt_translate:
• Invite users to join our group:
• gpt_translate:
• CLAAssistant:
• assign-issue:
• build:
• Invite users to join our group:
• build:
• CLAAssistant:
• gpt_translate:
• assign-issue:
• assign-issue:
• Invite users to join our group:
• gpt_translate:
• CLAAssistant:
• build:
• assign-issue:
• Invite users to join our group:
• CLAAssistant:
• gpt_translate:
• build:
• assign-issue:
• Invite users to join our group:
• gpt_translate:
• build:
• CLAAssistant:
• assign-issue:
• CLAAssistant:
• Invite users to join our group:
• gpt_translate:
• build:
• build:
• CLAAssistant:
• Invite users to join our group:
• assign-issue:
• gpt_translate:
• gpt_translate:
• assign-issue:
• Invite users to join our group:
• build:
• CLAAssistant:
• build:
• Test:
• build-and-push:
• check_typos:
• check:
• test:
• OpenCommit:
• build:
• CLAAssistant:
• gpt_translate:
• assign-issue:
• build:
• Invite users to join our group:
• Invite users to join our group:
• build:
• CLAAssistant:
• gpt_translate:
• assign-issue:
• build:
• assign-issue:
• Invite users to join our group:
• CLAAssistant:
• gpt_translate:
• CLAAssistant:
• assign-issue:
• Invite users to join our group:
• gpt_translate:
• build:
• assign-issue:
• CLAAssistant:
• Invite users to join our group:
• build:
• gpt_translate:
• assign-issue:
• build:
• Invite users to join our group:
• CLAAssistant:
• gpt_translate:
• assign-issue:
• gpt_translate:
• build:
• Invite users to join our group:
• CLAAssistant:
• Invite users to join our group:
• assign-issue:
• gpt_translate:
• build:
• CLAAssistant:
• gpt_translate:
• build:
• Invite users to join our group:
• CLAAssistant:
• assign-issue:
• assign-issue:
• Invite users to join our group:
• CLAAssistant:
• build:
• gpt_translate:
• OpenCommit:
• build-and-push:
• check_typos:
• build:
• test:
• Test:
• check:
• build:
• gpt_translate:
• CLAAssistant:
• Invite users to join our group:
• build:
• assign-issue:
• assign-issue:
• Invite users to join our group:
• CLAAssistant:
• gpt_translate:
• build:
• assign-issue:
• CLAAssistant:
• Invite users to join our group:
• gpt_translate:
• build:
• Invite users to join our group:
• assign-issue:
• gpt_translate:
• build:
• CLAAssistant:
• build:
• assign-issue:
• CLAAssistant:
• gpt_translate:
• Invite users to join our group:
• gpt_translate:
• assign-issue:
• Invite users to join our group:
• CLAAssistant:
• build:
• Invite users to join our group:
• build:
• CLAAssistant:
• gpt_translate:
• assign-issue:
• assign-issue:
• Invite users to join our group:
• CLAAssistant:
• build:
• gpt_translate:
• Invite users to join our group:
• gpt_translate:
• assign-issue:
• build:
• CLAAssistant:
• assign-issue:
• Invite users to join our group:
• CLAAssistant:
• gpt_translate:
• build:
• CLAAssistant:
• gpt_translate:
• Invite users to join our group:
• build:
• assign-issue:
• build:
• gpt_translate:
• CLAAssistant:
• Invite users to join our group:
• assign-issue:
• CLAAssistant:
• Invite users to join our group:
• gpt_translate:
• assign-issue:
• build:
• test:
• OpenCommit:
• build-and-push:
• build:
• check:
• Test:
• check_typos:
• build:
• Invite users to join our group:
• CLAAssistant:
• assign-issue:
• gpt_translate:
• build:
• Invite users to join our group:
• gpt_translate:
• assign-issue:
• CLAAssistant:
• build:
• gpt_translate:
• build:
• assign-issue:
• CLAAssistant:
• Invite users to join our group:
• build:
• gpt_translate:
• Invite users to join our group:
• assign-issue:
• CLAAssistant:
• assign-issue:
• CLAAssistant:
• Invite users to join our group:
• build:
• gpt_translate:
• build:
• assign-issue:
• gpt_translate:
• CLAAssistant:
• Invite users to join our group:
• assign-issue:
• CLAAssistant:
• Invite users to join our group:
• build:
• gpt_translate:
• assign-issue:
• CLAAssistant:
• build:
• Invite users to join our group:
• gpt_translate:
• CLAAssistant:
• Invite users to join our group:
• assign-issue:
• build:
• gpt_translate:
• CLAAssistant:
• build:
• assign-issue:
• Invite users to join our group:
• gpt_translate:
• build-and-push:
• check:
• Test:
• OpenCommit:
• test:
• check_typos:
• build:
• build:
• build:
• build:
• assign-issue:
• Invite users to join our group:
• gpt_translate:
• CLAAssistant:
• assign-issue:
• Invite users to join our group:
• gpt_translate:
• CLAAssistant:
• build:
• assign-issue:
• gpt_translate:
• Invite users to join our group:
• CLAAssistant:
• build:
• Invite users to join our group:
• assign-issue:
• CLAAssistant:
• build:
• gpt_translate:
• build:
• gpt_translate:
• CLAAssistant:
• assign-issue:
• Invite users to join our group:
• build:
• CLAAssistant:
• Invite users to join our group:
• assign-issue:
• gpt_translate:
• Invite users to join our group:
• CLAAssistant:
• build:
• assign-issue:
• gpt_translate:
• Invite users to join our group:
• assign-issue:
• gpt_translate:
• CLAAssistant:
• build:
• assign-issue:
• Invite users to join our group:
• build:
• CLAAssistant:
• gpt_translate:
• build:
• gpt_translate:
• assign-issue:
• Invite users to join our group:
• CLAAssistant:
• Invite users to join our group:
• CLAAssistant:
• build:
• gpt_translate:
• assign-issue:
• build:
• assign-issue:
• CLAAssistant:
• gpt_translate:
• Invite users to join our group:
• assign-issue:
• CLAAssistant:
• build:
• gpt_translate:
• Invite users to join our group:
• build:
• build-and-push:
• check:
• OpenCommit:
• Test:
• check_typos:
• test:
• build:
• Invite users to join our group:
• assign-issue:
• build:
• CLAAssistant:
• gpt_translate:
• Invite users to join our group:
• CLAAssistant:
• build:
• gpt_translate:
• assign-issue:
• Invite users to join our group:
• build:
• gpt_translate:
• assign-issue:
• CLAAssistant:
• build:
• Invite users to join our group:
• gpt_translate:
• CLAAssistant:
• assign-issue:
• Invite users to join our group:
• CLAAssistant:
• build:
• assign-issue:
• gpt_translate:
• Invite users to join our group:
• assign-issue:
• build:
• gpt_translate:
• CLAAssistant:
• Invite users to join our group:
• build:
• assign-issue:
• CLAAssistant:
• gpt_translate:
• CLAAssistant:
• Invite users to join our group:
• assign-issue:
• build:
• gpt_translate:
• gpt_translate:
• CLAAssistant:
• Invite users to join our group:
• assign-issue:
• build:
• Invite users to join our group:
• CLAAssistant:
• assign-issue:
• gpt_translate:
• build:
• CLAAssistant:
• gpt_translate:
• assign-issue:
• build:
• Invite users to join our group:
• Invite users to join our group:
• build:
• assign-issue:
• gpt_translate:
• CLAAssistant:
• gpt_translate:
• CLAAssistant:
• Invite users to join our group:
• assign-issue:
• build:
• OpenCommit:
• build:
• build-and-push:
• check_typos:
• check:
• test:
• Test:
• stale:
• build:
• build-and-push:
• build:
• Invite users to join our group:
• build:
• CLAAssistant:
• assign-issue:
• gpt_translate:
• Invite users to join our group:
• build:
• CLAAssistant:
• gpt_translate:
• assign-issue:
• Invite users to join our group:
• assign-issue:
• CLAAssistant:
• build:
• gpt_translate:
• build:
• CLAAssistant:
• gpt_translate:
• assign-issue:
• Invite users to join our group:
• Invite users to join our group:
• CLAAssistant:
• gpt_translate:
• build:
• assign-issue:
• Invite users to join our group:
• build:
• CLAAssistant:
• assign-issue:
• gpt_translate:
• assign-issue:
• Invite users to join our group:
• build:
• CLAAssistant:
• gpt_translate:
• CLAAssistant:
• Invite users to join our group:
• assign-issue:
• build:
• gpt_translate:
• Invite users to join our group:
• build:
• CLAAssistant:
• assign-issue:
• gpt_translate:
• build-and-push:
• OpenCommit:
• Test:
• build:
• test:
• check:
• check_typos:
• build:
• build:
• Invite users to join our group:
• assign-issue:
• build:
• CLAAssistant:
• gpt_translate:
• Invite users to join our group:
• CLAAssistant:
• gpt_translate:
• assign-issue:
• build:
• gpt_translate:
• CLAAssistant:
• Invite users to join our group:
• build:
• assign-issue:
• Invite users to join our group:
• build:
• assign-issue:
• gpt_translate:
• CLAAssistant:
• Invite users to join our group:
• CLAAssistant:
• assign-issue:
• gpt_translate:
• build:
• Invite users to join our group:
• CLAAssistant:
• build:
• gpt_translate:
• assign-issue:
• assign-issue:
• build:
• CLAAssistant:
• Invite users to join our group:
• gpt_translate:
• gpt_translate:
• Invite users to join our group:
• assign-issue:
• CLAAssistant:
• build:
• assign-issue:
• Invite users to join our group:
• build:
• gpt_translate:
• CLAAssistant:
• Invite users to join our group:
• gpt_translate:
• build:
• CLAAssistant:
• assign-issue:
• gpt_translate:
• assign-issue:
• build:
• CLAAssistant:
• Invite users to join our group:
• build-and-push:
• build:
• check_typos:
• OpenCommit:
• Test:
• test:
• check:
• build:
• assign-issue:
• CLAAssistant:
• gpt_translate:
• build:
• Invite users to join our group:
• build:
• assign-issue:
• gpt_translate:
• Invite users to join our group:
• CLAAssistant:
• CLAAssistant:
• assign-issue:
• gpt_translate:
• build:
• Invite users to join our group:
• build:
• Invite users to join our group:
• CLAAssistant:
• assign-issue:
• build:
• Invite users to join our group:
• assign-issue:
• gpt_translate:
• CLAAssistant:
• gpt_translate:
• Invite users to join our group:
• build:
• CLAAssistant:
• assign-issue:
• gpt_translate:
• CLAAssistant:
• Invite users to join our group:
• gpt_translate:
• assign-issue:
• build:
• assign-issue:
• Invite users to join our group:
• build:
• CLAAssistant:
• gpt_translate:
• Invite users to join our group:
• assign-issue:
• build:
• gpt_translate:
• CLAAssistant:
• gpt_translate:
• assign-issue:
• build:
• CLAAssistant:
• Invite users to join our group:
• Invite users to join our group:
• assign-issue:
• CLAAssistant:
• gpt_translate:
• build:
• build:
• build-and-push:
• OpenCommit:
• check_typos:
• check:
• test:
• Test:
• build:
• build:
• build:
• build:
• Invite users to join our group:
• gpt_translate:
• CLAAssistant:
• build:
• assign-issue:
• Invite users to join our group:
• assign-issue:
• build:
• gpt_translate:
• CLAAssistant:
• assign-issue:
• Invite users to join our group:
• build:
• gpt_translate:
• CLAAssistant:
• assign-issue:
• Invite users to join our group:
• build:
• gpt_translate:
• CLAAssistant:
• build:
• CLAAssistant:
• assign-issue:
• gpt_translate:
• Invite users to join our group:
• Invite users to join our group:
• CLAAssistant:
• assign-issue:
• gpt_translate:
• build:
• assign-issue:
• Invite users to join our group:
• build:
• CLAAssistant:
• gpt_translate:
• gpt_translate:
• CLAAssistant:
• build:
• Invite users to join our group:
• assign-issue:
• Invite users to join our group:
• assign-issue:
• gpt_translate:
• CLAAssistant:
• build:
• assign-issue:
• gpt_translate:
• Invite users to join our group:
• CLAAssistant:
• build:
• build:
• OpenCommit:
• Test:
• build-and-push:
• check_typos:
• test:
• check:
• build:
• gpt_translate:
• Invite users to join our group:
• assign-issue:
• build:
• CLAAssistant:
• CLAAssistant:
• gpt_translate:
• assign-issue:
• Invite users to join our group:
• build:
• Invite users to join our group:
• build:
• assign-issue:
• gpt_translate:
• CLAAssistant:
• assign-issue:
• build:
• CLAAssistant:
• Invite users to join our group:
• gpt_translate:
• Invite users to join our group:
• assign-issue:
• CLAAssistant:
• build:
• gpt_translate:
• gpt_translate:
• assign-issue:
• Invite users to join our group:
• CLAAssistant:
• build:
• build:
• CLAAssistant:
• assign-issue:
• gpt_translate:
• Invite users to join our group:
• CLAAssistant:
• build:
• Invite users to join our group:
• gpt_translate:
• assign-issue:
• Invite users to join our group:
• assign-issue:
• gpt_translate:
• build:
• CLAAssistant:
• Invite users to join our group:
• CLAAssistant:
• assign-issue:
• gpt_translate:
• build:
• Invite users to join our group:
• assign-issue:
• gpt_translate:
• CLAAssistant:
• build:
• assign-issue:
• CLAAssistant:
• build:
• gpt_translate:
• Invite users to join our group:
• Invite users to join our group:
• CLAAssistant:
• assign-issue:
• gpt_translate:
• build:
• build:
• OpenCommit:
• Test:
• check:
• build-and-push:
• test:
• check_typos:
• build:
• OpenCommit:
• build:
• build-and-push:
• Test:
• test:
• check:
• check_typos:
• build:
• build:
• OpenCommit:
• build-and-push:
• test:
• check_typos:
• check:
• Test:
• build:
• build:
• CLAAssistant:
• Invite users to join our group:
• gpt_translate:
• build:
• assign-issue:
• Invite users to join our group:
• assign-issue:
• CLAAssistant:
• build:
• gpt_translate:
• build:
• Invite users to join our group:
• assign-issue:
• gpt_translate:
• CLAAssistant:
• assign-issue:
• Invite users to join our group:
• gpt_translate:
• CLAAssistant:
• build:
• Invite users to join our group:
• CLAAssistant:
• gpt_translate:
• assign-issue:
• build:
• assign-issue:
• build:
• Invite users to join our group:
• gpt_translate:
• CLAAssistant:
• build:
• assign-issue:
• CLAAssistant:
• gpt_translate:
• Invite users to join our group:
• Invite users to join our group:
• assign-issue:
• gpt_translate:
• build:
• CLAAssistant:
• build:
• gpt_translate:
• assign-issue:
• CLAAssistant:
• Invite users to join our group:
• Invite users to join our group:
• build:
• assign-issue:
• gpt_translate:
• CLAAssistant:
• build-and-push:
• OpenCommit:
• build:
• test:
• Test:
• check_typos:
• check:
• build:
• build:
• build:
• build:
• OpenCommit:
• build-and-push:
• check_typos:
• test:
• check:
• Test:
• build:
• OpenCommit:
• build:
• test:
• build-and-push:
• Test:
• check_typos:
• check:
• build:
• build:
• build:
• build:
• build:
• assign-issue:
• Invite users to join our group:
• CLAAssistant:
• gpt_translate:
• build:
• Invite users to join our group:
• build:
• assign-issue:
• CLAAssistant:
• gpt_translate:
• CLAAssistant:
• assign-issue:
• build:
• Invite users to join our group:
• assign-issue:
• gpt_translate:
• build:
• CLAAssistant:
• Invite users to join our group:
• gpt_translate:
• build-and-push:
• build:
• OpenCommit:
• check_typos:
• check:
• test:
• Test:
• build:
• build:
• stale:
• build-and-push:
• build:
• build:
• build:
• build:
• build:
• OpenCommit:
• build:
• build-and-push:
• Test:
• test:
• check_typos:
• check:
• build:
• build:
• build-and-push:
• check_typos:
• OpenCommit:
• test:
• check:
• Test:

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

sweep-ai bot commented Dec 28, 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 make build
yielded the following error:
##[error]cmd/syncer/main.go:78:40: undefined: github.RateLimitError
##[error]make: *** [Makefile:189: go.build.linux_amd64.syncer] Error 2
##[error]Process completed with exit code 2.

Here are the logs:
=====> COMMAND=exporter
=====> PLATFORM=linux_amd64
=====> BIN_DIR=/home/runner/work/github-label-syncer/github-label-syncer/_output/bin
===========> Building binary exporter v3.0.9.45.gdfc9dbd.dirty	 for linux_amd64
=====> COMMAND=syncer
=====> PLATFORM=linux_amd64
=====> BIN_DIR=/home/runner/work/github-label-syncer/github-label-syncer/_output/bin
===========> Building binary syncer v3.0.9.45.gdfc9dbd.dirty	 for linux_amd64
# github.com/kubecub/github-label-syncer/cmd/syncer

Copy link
Contributor Author

sweep-ai bot commented Dec 28, 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/1cea5b43-0f36-413b-899a-4884390930e4.sh: line 1: ./tools/typos: No such file or directory

Copy link
Contributor Author

sweep-ai bot commented Dec 28, 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 contributor-assistant/github-action@v2.3.0
yielded the following error:
##[error]Could not retrieve repository contents. Status: 403

Here are the logs:
CLA Assistant GitHub Action bot has started the process

Copy link
Contributor Author

sweep-ai bot commented Dec 28, 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-28 17:36:11--  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.114.3
Connecting to github.com (github.com)|140.82.114.3|: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=AKIAIWNJYAX4CSVEH53A%2F20231228%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231228T173611Z&X-Amz-Expires=300&X-Amz-Signature=872f9aaaf7d87823fd22701fcb7c30041f63f92f92276e27d828590eeadd3cad&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-28 17:36:11--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/181782286/a483f245-d4c3-4214-b98c-2b33e8793015?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231228%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231228T173611Z&X-Amz-Expires=300&X-Amz-Signature=872f9aaaf7d87823fd22701fcb7c30041f63f92f92276e27d828590eeadd3cad&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.111.133, 185.199.108.133, 185.199.109.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.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% 57.4M 0s
3072K ........ ........ ........ ........ ........ ........ 96%  280M 0s
6144K ...                                                  100%  376M=0.06s

2023-12-28 17:36:12 (98.1 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 28, 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/481b6bc0-faf3-47c3-9b8f-368d6ccc7a4f
[command]/home/runner/work/_temp/481b6bc0-faf3-47c3-9b8f-368d6ccc7a4f -b /home/runner/work/_temp/481b6bc0-faf3-47c3-9b8f-368d6ccc7a4f_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/481b6bc0-faf3-47c3-9b8f-368d6ccc7a4f_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 28, 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 make build
yielded the following error:
##[error]cmd/syncer/main.go:78:40: undefined: github.RateLimitError
make: *** [Makefile:189: go.build.linux_amd64.syncer] Error 2
##[error]Process completed with exit code 2.

Here are the logs:
=====> COMMAND=exporter
=====> PLATFORM=linux_amd64
=====> BIN_DIR=/home/runner/work/github-label-syncer/github-label-syncer/_output/bin
===========> Building binary exporter b12865d	 for linux_amd64
go: downloading github.com/google/go-github/v28 v28.1.1
go: downloading github.com/joho/godotenv v1.5.1
go: downloading github.com/alecthomas/kingpin/v2 v2.3.2
go: downloading github.com/olekukonko/tablewriter v0.0.5
go: downloading github.com/spf13/viper v1.16.0
go: downloading golang.org/x/oauth2 v0.8.0
go: downloading gopkg.in/ini.v1 v1.67.0
go: downloading sigs.k8s.io/yaml v1.3.0
go: downloading github.com/mattn/go-runewidth v0.0.9
go: downloading github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137
go: downloading github.com/xhit/go-str2duration/v2 v2.1.0
go: downloading github.com/fsnotify/fsnotify v1.6.0
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: downloading github.com/spf13/afero v1.9.5
go: downloading github.com/google/go-github v17.0.0+incompatible
go: downloading github.com/spf13/cast v1.5.1
go: downloading github.com/spf13/jwalterweatherman v1.1.0
go: downloading github.com/spf13/pflag v1.0.5
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading golang.org/x/sys v0.9.0
go: downloading github.com/subosito/gotenv v1.4.2
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading github.com/magiconair/properties v1.8.7
go: downloading github.com/pelletier/go-toml/v2 v2.0.8
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading golang.org/x/text v0.10.0
go: downloading github.com/pelletier/go-toml v1.9.5
go: downloading github.com/google/go-querystring v1.1.0
go: downloading golang.org/x/crypto v0.10.0
=====> COMMAND=syncer
=====> PLATFORM=linux_amd64
=====> BIN_DIR=/home/runner/work/github-label-syncer/github-label-syncer/_output/bin
===========> Building binary syncer b12865d	 for linux_amd64
go: downloading golang.org/x/sync v0.3.0
# github.com/kubecub/github-label-syncer/cmd/syncer

Copy link
Contributor Author

sweep-ai bot commented Dec 28, 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 sudo make format
yielded the following error:
##[error]Process completed with exit code 2.
##[group]Run make cover
�[36;1mmake cover�[0m
shell: /usr/bin/bash -e {0}
env:
  GO_VERSION: 1.19
  GOLANGCI_VERSION: v1.50.1
  GOROOT: /opt/hostedtoolcache/go/1.20.12/x64
##[endgroup]
?   	github.com/kubecub/github-label-syncer/cmd/exporter	[no test files]
# github.com/kubecub/github-label-syncer/cmd/syncer
##[error]cmd/syncer/main.go:78:40: undefined: github.RateLimitError
?   	github.com/kubecub/github-label-syncer/internal/syncer/cmd	[no test files]
?   	github.com/kubecub/github-label-syncer/internal/utils	[no test files]
?   	github.com/kubecub/github-label-syncer/internal/utils/interrupt	[no test files]
?   	github.com/kubecub/github-label-syncer/internal/utils/term	[no test files]
?   	github.com/kubecub/github-label-syncer/pkg/commands	[no test files]
?   	github.com/kubecub/github-label-syncer/pkg/exporter	[no test files]
?   	github.com/kubecub/github-label-syncer/pkg/format	[no test files]
?   	github.com/kubecub/github-label-syncer/pkg/github	[no test files]
ok  	github.com/kubecub/github-label-syncer/pkg/config	0.005s
# github.com/kubecub/log
##[error]../../../go/pkg/mod/github.com/kubecub/log@v1.0.0/log.go:545:44: cannot use KeyRequestID (constant "requestID" of type keylogger) as string value in argument to zap.Any
##[error]../../../go/pkg/mod/github.com/kubecub/log@v1.0.0/log.go:548:44: cannot use KeyUsername (constant "username" of type keylogger) as string value in argument to zap.Any
##[error]../../../go/pkg/mod/github.com/kubecub/log@v1.0.0/log.go:551:44: cannot use KeyWatcherName (constant "watcher" of type keylogger) as string value in argument to zap.Any
?   	github.com/kubecub/github-label-syncer/pkg/version	[no test files]
--- FAIL: TestSyncerE2E (0.09s)
    syncer_test.go:23: Failed to run syncer command: exit status 1
FAIL
FAIL	github.com/kubecub/github-label-syncer/test	0.091s
FAIL
make: *** [Makefile:244: test] Error 1
##[error]Process completed with exit code 2.
##[group]Run sudo make build
�[36;1msudo make build�[0m
�[36;1mecho "Build source code for host platform successfully"�[0m
shell: /usr/bin/bash -e {0}
env:
  GO_VERSION: 1.19
  GOLANGCI_VERSION: v1.50.1
  GOROOT: /opt/hostedtoolcache/go/1.18.10/x64
##[endgroup]
=====> COMMAND=exporter
=====> PLATFORM=linux_amd64
=====> BIN_DIR=/home/runner/work/github-label-syncer/github-label-syncer/_output/bin
===========> Building binary exporter dfc9dbd.dirty	 for linux_amd64
=====> COMMAND=syncer
=====> PLATFORM=linux_amd64
=====> BIN_DIR=/home/runner/work/github-label-syncer/github-label-syncer/_output/bin
===========> Building binary syncer dfc9dbd.dirty	 for linux_amd64
# github.com/kubecub/github-label-syncer/cmd/syncer
##[error]cmd/syncer/main.go:78:40: undefined: github.RateLimitError
make: *** [Makefile:189: go.build.linux_amd64.syncer] Error 1
##[error]The operation was canceled.
##[group]Run sudo make build
�[36;1msudo make build�[0m
�[36;1mecho "Build source code for host platform successfully"�[0m
shell: /usr/bin/bash -e {0}
env:
  GO_VERSION: 1.19
  GOLANGCI_VERSION: v1.50.1
  GOROOT: /opt/hostedtoolcache/go/1.19.13/x64
##[endgroup]
=====> COMMAND=exporter
=====> PLATFORM=linux_amd64
=====> BIN_DIR=/home/runner/work/github-label-syncer/github-label-syncer/_output/bin
===========> Building binary exporter dfc9dbd.dirty	 for linux_amd64
=====> COMMAND=syncer
=====> PLATFORM=linux_amd64
=====> BIN_DIR=/home/runner/work/github-label-syncer/github-label-syncer/_output/bin
===========> Building binary syncer dfc9dbd.dirty	 for linux_amd64
# github.com/kubecub/github-label-syncer/cmd/syncer
##[error]cmd/syncer/main.go:78:40: undefined: github.RateLimitError
make: *** [Makefile:189: go.build.linux_amd64.syncer] Error 1
##[error]Process completed with exit code 2.
##[group]Run sudo make build
�[36;1msudo make build�[0m
�[36;1mecho "Build source code for host platform successfully"�[0m
shell: /usr/bin/bash -e {0}
env:
  GO_VERSION: 1.19
  GOLANGCI_VERSION: v1.50.1
  GOROOT: /opt/hostedtoolcache/go/1.20.12/x64
##[endgroup]
=====> COMMAND=exporter
=====> PLATFORM=linux_amd64
=====> BIN_DIR=/home/runner/work/github-label-syncer/github-label-syncer/_output/bin
===========> Building binary exporter dfc9dbd.dirty	 for linux_amd64
=====> COMMAND=syncer
=====> PLATFORM=linux_amd64
=====> BIN_DIR=/home/runner/work/github-label-syncer/github-label-syncer/_output/bin
===========> Building binary syncer dfc9dbd.dirty	 for linux_amd64
# github.com/kubecub/github-label-syncer/cmd/syncer
##[error]cmd/syncer/main.go:78:40: undefined: github.RateLimitError
make: *** [Makefile:189: go.build.linux_amd64.syncer] Error 1
##[error]The operation was canceled.
##[group]Run make cover
�[36;1mmake cover�[0m
shell: /usr/bin/bash -e {0}
env:
  GO_VERSION: 1.19
  GOLANGCI_VERSION: v1.50.1
  GOROOT: /opt/hostedtoolcache/go/1.18.10/x64
##[endgroup]
# github.com/kubecub/github-label-syncer/cmd/syncer
##[error]cmd/syncer/main.go:78:40: undefined: github.RateLimitError
?   	github.com/kubecub/github-label-syncer/cmd/exporter	[no test files]
# go.uber.org/multierr
##[error]../../../go/pkg/mod/go.uber.org/multierr@v1.11.0/error.go:209:20: undefined: atomic.Bool
note: module requires Go 1.19
ok  	github.com/kubecub/github-label-syncer/pkg/config	0.017s
--- FAIL: TestSyncerE2E (0.34s)
    syncer_test.go:23: Failed to run syncer command: exit status 2
FAIL
FAIL	github.com/kubecub/github-label-syncer/test	0.347s
make: *** [Makefile:244: test] Error 2
##[error]Process completed with exit code 2.
##[group]Run make cover
�[36;1mmake cover�[0m
shell: /usr/bin/bash -e {0}
env:
  GO_VERSION: 1.19
  GOLANGCI_VERSION: v1.50.1
  GOROOT: /opt/hostedtoolcache/go/1.19.13/x64
##[endgroup]
# github.com/kubecub/github-label-syncer/cmd/syncer
##[error]cmd/syncer/main.go:78:40: undefined: github.RateLimitError
?   	github.com/kubecub/github-label-syncer/cmd/exporter	[no test files]
# github.com/kubecub/log
##[error]../../../go/pkg/mod/github.com/kubecub/log@v1.0.0/log.go:545:44: cannot use KeyRequestID (constant "requestID" of type keylogger) as type string in argument to zap.Any
##[error]../../../go/pkg/mod/github.com/kubecub/log@v1.0.0/log.go:548:44: cannot use KeyUsername (constant "username" of type keylogger) as type string in argument to zap.Any
##[error]../../../go/pkg/mod/github.com/kubecub/log@v1.0.0/log.go:551:44: cannot use KeyWatcherName (constant "watcher" of type keylogger) as type string in argument to zap.Any
note: module requires Go 1.20
ok  	github.com/kubecub/github-label-syncer/pkg/config	0.003s
--- FAIL: TestSyncerE2E (0.10s)
    syncer_test.go:23: Failed to run syncer command: exit status 1
FAIL
FAIL	github.com/kubecub/github-label-syncer/test	0.097s
make: *** [Makefile:244: test] Error 1
##[error]Process completed with exit code 2.
##[group]Run sudo make format
�[36;1msudo make format�[0m
�[36;1mecho "Run go format successfully"�[0m
shell: /usr/bin/bash -e {0}
env:
  GO_VERSION: 1.19
  GOLANGCI_VERSION: v1.50.1
  GOROOT: /opt/hostedtoolcache/go/1.18.10/x64
##[endgroup]
make: *** No rule to make target 'format'.  Stop.
##[error]Process completed with exit code 2.
##[group]Run sudo make format
�[36;1msudo make format�[0m
�[36;1mecho "Run go format successfully"�[0m
shell: /usr/bin/bash -e {0}
env:
  GO_VERSION: 1.19
  GOLANGCI_VERSION: v1.50.1
  GOROOT: /opt/hostedtoolcache/go/1.20.12/x64
##[endgroup]
make: *** No rule to make target 'format'.  Stop.
##[error]Process completed with exit code 2.

Here are the logs:
make: *** No rule to make target 'format'.  Stop.

@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