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... #72

Conversation

sweep-ai[bot]
Copy link
Contributor

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

Description

This pull request includes several changes to fix issues with the GitHub Actions workflow and improve code formatting in the frontend directory.

Summary

  • Added a new GitHub Actions workflow file .github/workflows/frontend.yml to run checks on push and pull request events.
  • Updated the existing GitHub Actions workflow file .github/workflows/main.yml to include a step for installing dependencies.
  • Added a new .prettierrc.toml file in the frontend directory to configure prettier formatting options.
  • Updated the main.ts file in the frontend/app directory to fix import statements formatting.
  • Updated the index.html file in the frontend directory to fix the doctype declaration.
  • Updated the package.json file in the frontend directory to include a new format script for running prettier formatting.
  • Updated the svelte.config.js file in the frontend directory to fix import statements formatting.
  • Updated the tsconfig.json file in the frontend directory to remove unnecessary newlines.
  • Updated the tsconfig.node.json file in the frontend directory to remove unnecessary newlines.
  • Updated the vite.config.ts file in the frontend directory to fix import statements formatting.
  • Updated the main.py file in the src/logic directory to include a new execute_pnpm_command function and use it in the collect_results function.
  • Added a new pnpm.py file in the src/tools directory to execute pnpm commands.

Copy link
Contributor Author

sweep-ai bot commented Jan 11, 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
Contributor Author

sweep-ai bot commented Jan 11, 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 pnpm install
yielded the following error:
##[error]Process completed with exit code 127.

Here are the logs:
/home/runner/work/_temp/49fad5bd-e011-4266-8b31-fd0db1e1c0de.sh: line 1: pnpm: command not found

[!CAUTION]

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

Copy link
Contributor Author

sweep-ai bot commented Jan 11, 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 pdm run isort . --check --diff
yielded the following error:
##[error]Process completed with exit code 1.

Here are the logs:
ERROR: /home/runner/work/demo/demo/src/logic/main.py Imports are incorrectly sorted and/or formatted.
--- /home/runner/work/demo/demo/src/logic/main.py:before	2024-01-11 18:04:04.728754
+++ /home/runner/work/demo/demo/src/logic/main.py:after	2024-01-11 18:04:56.332396
@@ -11,7 +11,7 @@

from ..templates.schema.output import Output
from ..utils.load import load_template
-from .tools import call_tool, tools, execute_pnpm_command
+from .tools import call_tool, execute_pnpm_command, tools

main = patch.node(Node)(load_template("main"), {"tools": tools})

Skipped 2 files

[!CAUTION]

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

Copy link
Contributor Author

sweep-ai bot commented Jan 11, 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 pnpm install
yielded the following error:
##[error]Process completed with exit code 127.

Here are the logs:
/home/runner/work/_temp/eb2e8983-e48b-4511-a267-48e837a6c10e.sh: line 1: pnpm: command not found

[!CAUTION]

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

@CNSeniorious000 CNSeniorious000 deleted the sweep/sweep_gha_fix_the_github_actions_run_fai_31 branch January 26, 2024 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant