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

[Sweep GHA Fix] The GitHub Actions run failed with... #65

Open
wants to merge 10 commits into
base: sweep/sweep_gha_fix_the_github_actions_run_fai_28
Choose a base branch
from

Conversation

sweep-ai[bot]
Copy link

@sweep-ai sweep-ai bot commented Jan 12, 2024

Description

This pull request includes several changes to the project. The changes are as follows:

  • Updated the .github/labeler.yml file to add the 'label1' to any changes within the 'example' folder or any subfolders.
  • Updated the .github/workflows/RELEASE.yml file to set the POETRY_VERSION environment variable to "latest".
  • Updated the .github/workflows/test.yml file to use the poetry run pytest command instead of make test for running tests.
  • Updated the .github/workflows/testing.yml file to use the poetry run pytest --cov command instead of pytest for running tests with coverage.
  • Updated the CONTRIBUTING.md file to add a requirement for parameter descriptions in docstrings and to provide a Google Colab for testing new features.
  • Updated the CONTRIBUTING.md file to remove the code quality instructions.
  • Updated the CONTRIBUTING.md file to add guidelines for measuring software quality based on clean code principles.
  • Updated the CONTRIBUTING.md file to add guidelines for designing highly usable, functional, reliable, fast, and scalable code.
  • Updated the CONTRIBUTING.md file to add guidelines for testing code.
  • Updated the docs/old-docs/design/CLEAN_CODE.md file to add guidelines for measuring software quality based on clean code principles.
  • Updated the docs/old-docs/design/DESIGN.md file to add guidelines for designing highly usable, functional, reliable, fast, and scalable code.
  • Updated the docs/old-docs/design/GOLDEN_METRIC.md file to add guidelines for measuring software quality based on clean code principles.
  • Updated the docs/old-docs/design/abstraction.py file to add abstract methods and classes.
  • Updated the pyproject.toml file to add the mypy dependency.
  • Added a new .github/workflows/main.yml file for building and testing the project.
  • Updated the swarms/agents/base.py file to add a reset method and update the run method.

Summary

  • Updated labeler configuration to add 'label1' to changes in the 'example' folder.
  • Updated release workflow to use the latest version of Poetry.
  • Updated test workflows to use Poetry for running tests.
  • Updated contributing guidelines to include parameter descriptions and Google Colab requirement.
  • Removed code quality instructions from contributing guidelines.
  • Added guidelines for measuring software quality and designing highly usable, functional, reliable, fast, and scalable code to contributing guidelines.
  • Added guidelines for testing code to contributing guidelines.
  • Added guidelines for measuring software quality based on clean code principles to CLEAN_CODE.md and GOLDEN_METRIC.md.
  • Added abstract methods and classes to abstraction.py.
  • Added mypy dependency to pyproject.toml.
  • Added new main workflow for building and testing the project.
  • Updated base agent class to add a reset method and update the run method.

Copy link
Author

sweep-ai bot commented Jan 12, 2024

Apply Sweep Rules to your PR?

  • Apply: All new business logic should have corresponding unit tests.
  • Apply: Refactor large functions to be more modular.
  • Apply: Add docstrings to all functions and file headers.

This is an automated message generated by Sweep AI.

Copy link
Author

sweep-ai bot commented Jan 12, 2024

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:



[!CAUTION]

An error has occurred: Cmd('git') failed due to: exit code(128)
cmdline: git clone -v --branch=sweep/sweep_gha_fix_the_github_actions_run_fai_40 -- https://:@github.com/ZackBradshaw/swarms.git /tmp/cache/repos/ZackBradshaw/swarms/base/sweep--sweep_gha_fix_the_github_actions_run_fai_40
stderr: 'Cloning into '/tmp/cache/repos/ZackBradshaw/swarms/base/sweep--sweep_gha_fix_the_github_actions_run_fai_40'...
POST git-upload-pack (622 bytes)
POST git-upload-pack (gzip 3767 to 1890 bytes)
fatal: could not open '/tmp/cache/repos/ZackBradshaw/swarms/base/sweep--sweep_gha_fix_the_github_actions_run_fai_40/.git/objects/pack/tmp_pack_e22jvl' for reading: No such file or directory
fatal: fetch-pack: invalid index-pack output
' (tracking ID: 28dd75ae47)

Copy link
Author

sweep-ai bot commented Jan 12, 2024

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 actions/labeler@v5
yielded the following error:
##[error]Error: found unexpected type for label 'example_change' (should be array of config options)
##[error]found unexpected type for label 'example_change' (should be array of config options)

Here are the logs:
The configuration file (path: .github/labeler.yml) was not found locally, fetching via the api

[!CAUTION]

An error has occurred: Cmd('git') failed due to: exit code(128)
cmdline: git clone -v -- https://:@github.com/ZackBradshaw/swarms.git /tmp/cache/repos/ZackBradshaw/swarms/base/sweep--sweep_gha_fix_the_github_actions_run_fai_40
stderr: 'Cloning into '/tmp/cache/repos/ZackBradshaw/swarms/base/sweep--sweep_gha_fix_the_github_actions_run_fai_40'...
POST git-upload-pack (175 bytes)
POST git-upload-pack (gzip 3767 to 1890 bytes)
error: unable to write file /tmp/cache/repos/ZackBradshaw/swarms/base/sweep--sweep_gha_fix_the_github_actions_run_fai_40/.git/objects/pack/pack-9151661436cedd147bb18941a392a9a2ad72e3ea.pack: No such file or directory
fatal: unable to rename temporary '*.pack' file to '/tmp/cache/repos/ZackBradshaw/swarms/base/sweep--sweep_gha_fix_the_github_actions_run_fai_40/.git/objects/pack/pack-9151661436cedd147bb18941a392a9a2ad72e3ea.pack'
fatal: fetch-pack: invalid index-pack output
' (tracking ID: 59f4fba98c)

Copy link
Author

sweep-ai bot commented Jan 12, 2024

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:



[!CAUTION]

An error has occurred: 422 {"message": "Reference already exists", "documentation_url": "https://docs.github.com/rest/git/refs#create-a-reference"} (tracking ID: b783ff2cf6)

Copy link

Stale pull request message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants