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

Conversation

sweep-ai[bot]
Copy link

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

Description

This pull request includes the following changes:

  • Added a GitHub Actions workflow file .github/workflows/main.yml to set up continuous integration (CI) for the project.
  • Updated the pyproject.toml file to include the python_version requirement of >=3.8.
  • Added a requirements.txt file with the required dependencies for the project.
  • Updated the setup.cfg file to include additional dependencies for the project.

Summary

  • Added a GitHub Actions workflow file .github/workflows/main.yml to set up CI.
  • Updated pyproject.toml to include the python_version requirement of >=3.8.
  • Added a requirements.txt file with the required dependencies.
  • Updated setup.cfg to include additional dependencies.

Copy link
Author

sweep-ai bot commented Jan 4, 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.

Copy link
Author

sweep-ai bot commented Jan 4, 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 cd mm-workflows/docs && make html
yielded the following error:
##[error]Process completed with exit code 2.
##[group]Run cd mm-workflows/ && autopep8 --exit-code --recursive --diff --max-line-length 120 examples/ src/
�[36;1mcd mm-workflows/ && autopep8 --exit-code --recursive --diff --max-line-length 120 examples/ src/�[0m
shell: /bin/bash -l {0}
env:
  INPUT_RUN_POST: true
  CONDA: /Users/runner/miniconda3
  CONDA_PKGS_DIR: /Users/runner/conda_pkgs_dir
##[endgroup]
/Users/runner/work/_temp/f80db278-5036-4610-be54-9e94e52eed95.sh: line 1: autopep8: command not found
##[error]Process completed with exit code 127.
##[group]Run cd mm-workflows/ && pip install ".[all]" && mm-workflows
�[36;1mcd mm-workflows/ && pip install ".[all]" && mm-workflows�[0m
shell: /usr/bin/bash -l {0}
env:
  INPUT_RUN_POST: true
  CONDA: /usr/share/miniconda3
  CONDA_PKGS_DIR: /home/runner/conda_pkgs_dir
##[endgroup]
WARNING: No ICDs were found. Either,
- Install a conda package providing a OpenCL implementation (pocl, oclgrind, intel-compute-runtime, beignet) or 
- Make your system-wide implementation visible by installing ocl-icd-system conda package. 
Processing /home/runner/work/mm-workflows/mm-workflows/mm-workflows
error: invalid-pyproject-build-system-requires

× Can not process file:///home/runner/work/mm-workflows/mm-workflows/mm-workflows
╰─> This package has an invalid `build-system.requires` key in pyproject.toml.
    It contains an invalid requirement: "python_version = '>=3.7,<3.11'"

note: This is an issue with the package mentioned above, not pip.
hint: See PEP 518 for the detailed specification.
##[error]Process completed with exit code 1.
##[group]Run cd mm-workflows/ && autopep8 --exit-code --recursive --diff --max-line-length 120 examples/ src/
�[36;1mcd mm-workflows/ && autopep8 --exit-code --recursive --diff --max-line-length 120 examples/ src/�[0m
shell: C:\Program Files\Git\bin\bash.EXE -l {0}
env:
  INPUT_RUN_POST: true
  CONDA: C:\Miniconda3
  CONDA_PKGS_DIR: C:\Users\runneradmin\conda_pkgs_dir
##[endgroup]
D:\a\_temp\bbd67ca8-4a2f-48c8-82a7-7eb87596984e.sh: line 1: autopep8: command not found
##[error]Process completed with exit code 127.
##[group]Run cd mm-workflows/ && pylint src/ examples/**/*.py
�[36;1mcd mm-workflows/ && pylint src/ examples/**/*.py�[0m
shell: /usr/bin/bash -l {0}
env:
  INPUT_RUN_POST: true
  CONDA: /usr/share/miniconda3
  CONDA_PKGS_DIR: /home/runner/conda_pkgs_dir
##[endgroup]
WARNING: No ICDs were found. Either,
- Install a conda package providing a OpenCL implementation (pocl, oclgrind, intel-compute-runtime, beignet) or 
- Make your system-wide implementation visible by installing ocl-icd-system conda package. 
/home/runner/work/_temp/21789146-975c-452b-87ee-8be19494dd51.sh: line 1: pylint: command not found
##[error]Process completed with exit code 127.
##[group]Run cd mm-workflows/ && pylint src/ examples/**/*.py
�[36;1mcd mm-workflows/ && pylint src/ examples/**/*.py�[0m
shell: /bin/bash -l {0}
env:
  INPUT_RUN_POST: true
  CONDA: /Users/runner/miniconda3
  CONDA_PKGS_DIR: /Users/runner/conda_pkgs_dir
##[endgroup]
/Users/runner/work/_temp/56bd9f40-25a4-42ee-9eb6-399b3244a77f.sh: line 1: pylint: command not found
##[error]Process completed with exit code 127.
##[group]Run cd mm-workflows/ && mypy src/ examples/ cwl_adapters/
�[36;1mcd mm-workflows/ && mypy src/ examples/ cwl_adapters/�[0m
shell: C:\Program Files\Git\bin\bash.EXE -l {0}
env:
  INPUT_RUN_POST: true
  CONDA: C:\Miniconda3
  CONDA_PKGS_DIR: C:\Users\runneradmin\conda_pkgs_dir
##[endgroup]
D:\a\_temp\c02d88d2-234e-48e4-8e69-d8cc74bbd038.sh: line 1: mypy: command not found
##[error]Process completed with exit code 127.
##[group]Run cd mm-workflows/docs && make html
�[36;1mcd mm-workflows/docs && make html�[0m
shell: C:\Program Files\Git\bin\bash.EXE -l {0}
env:
  INPUT_RUN_POST: true
  CONDA: C:\Miniconda3
  CONDA_PKGS_DIR: C:\Users\runneradmin\conda_pkgs_dir
##[endgroup]
/usr/bin/sh: line 1: sphinx-build: command not found
make: *** [Makefile:20: html] Error 127
##[error]Process completed with exit code 2.
##[group]Run cd mm-workflows/ && pip install ".[all]" && mm-workflows
�[36;1mcd mm-workflows/ && pip install ".[all]" && mm-workflows�[0m
shell: /bin/bash -l {0}
env:
  INPUT_RUN_POST: true
  CONDA: /Users/runner/miniconda3
  CONDA_PKGS_DIR: /Users/runner/conda_pkgs_dir
##[endgroup]
Processing /Users/runner/work/mm-workflows/mm-workflows/mm-workflows
error: invalid-pyproject-build-system-requires

× Can not process file:///Users/runner/work/mm-workflows/mm-workflows/mm-workflows
╰─> This package has an invalid `build-system.requires` key in pyproject.toml.
    It contains an invalid requirement: "python_version = '>=3.7,<3.11'"

note: This is an issue with the package mentioned above, not pip.
hint: See PEP 518 for the detailed specification.
##[error]Process completed with exit code 1.
##[group]Run cd mm-workflows/ && pip install ".[all]" && mm-workflows
�[36;1mcd mm-workflows/ && pip install ".[all]" && mm-workflows�[0m
shell: C:\Program Files\Git\bin\bash.EXE -l {0}
env:
  INPUT_RUN_POST: true
  CONDA: C:\Miniconda3
  CONDA_PKGS_DIR: C:\Users\runneradmin\conda_pkgs_dir
##[endgroup]
Processing d:\a\mm-workflows\mm-workflows\mm-workflows
error: invalid-pyproject-build-system-requires

Can not process file:///D:/a/mm-workflows/mm-workflows/mm-workflows

This package has an invalid `build-system.requires` key in pyproject.toml.
It contains an invalid requirement: "python_version = '>=3.7,<3.11'"

note: This is an issue with the package mentioned above, not pip.
hint: See PEP 518 for the detailed specification.
##[error]Process completed with exit code 1.
##[group]Run cd mm-workflows/ && mypy src/ examples/ cwl_adapters/
�[36;1mcd mm-workflows/ && mypy src/ examples/ cwl_adapters/�[0m
shell: /usr/bin/bash -l {0}
env:
  INPUT_RUN_POST: true
  CONDA: /usr/share/miniconda3
  CONDA_PKGS_DIR: /home/runner/conda_pkgs_dir
##[endgroup]
WARNING: No ICDs were found. Either,
- Install a conda package providing a OpenCL implementation (pocl, oclgrind, intel-compute-runtime, beignet) or 
- Make your system-wide implementation visible by installing ocl-icd-system conda package. 
/home/runner/work/_temp/29e38738-5f7c-4844-9e95-a79cd1b85038.sh: line 1: mypy: command not found
##[error]Process completed with exit code 127.
##[group]Run cd mm-workflows/ && pylint src/ examples/**/*.py
�[36;1mcd mm-workflows/ && pylint src/ examples/**/*.py�[0m
shell: C:\Program Files\Git\bin\bash.EXE -l {0}
env:
  INPUT_RUN_POST: true
  CONDA: C:\Miniconda3
  CONDA_PKGS_DIR: C:\Users\runneradmin\conda_pkgs_dir
##[endgroup]
D:\a\_temp\905f07ab-a39e-45d3-a126-8155e137e97d.sh: line 1: pylint: command not found
##[error]Process completed with exit code 127.
##[group]Run cd mm-workflows/ && mypy src/ examples/ cwl_adapters/
�[36;1mcd mm-workflows/ && mypy src/ examples/ cwl_adapters/�[0m
shell: /bin/bash -l {0}
env:
  INPUT_RUN_POST: true
  CONDA: /Users/runner/miniconda3
  CONDA_PKGS_DIR: /Users/runner/conda_pkgs_dir
##[endgroup]
/Users/runner/work/_temp/7cbeef30-20da-428c-b88f-5af7bd20678d.sh: line 1: mypy: command not found
##[error]Process completed with exit code 127.
##[group]Run cd mm-workflows/docs && make html
�[36;1mcd mm-workflows/docs && make html�[0m
shell: /bin/bash -l {0}
env:
  INPUT_RUN_POST: true
  CONDA: /Users/runner/miniconda3
  CONDA_PKGS_DIR: /Users/runner/conda_pkgs_dir
##[endgroup]
/bin/sh: sphinx-build: command not found
make: *** [html] Error 127
##[error]Process completed with exit code 2.
##[group]Run cd mm-workflows/ && autopep8 --exit-code --recursive --diff --max-line-length 120 examples/ src/
�[36;1mcd mm-workflows/ && autopep8 --exit-code --recursive --diff --max-line-length 120 examples/ src/�[0m
shell: /usr/bin/bash -l {0}
env:
  INPUT_RUN_POST: true
  CONDA: /usr/share/miniconda3
  CONDA_PKGS_DIR: /home/runner/conda_pkgs_dir
##[endgroup]
WARNING: No ICDs were found. Either,
- Install a conda package providing a OpenCL implementation (pocl, oclgrind, intel-compute-runtime, beignet) or 
- Make your system-wide implementation visible by installing ocl-icd-system conda package. 
/home/runner/work/_temp/c515cb79-2cba-4264-bc53-f1802f98d83b.sh: line 1: autopep8: command not found
##[error]Process completed with exit code 127.

Here are the logs:
WARNING: No ICDs were found. Either,
- Install a conda package providing a OpenCL implementation (pocl, oclgrind, intel-compute-runtime, beignet) or
- Make your system-wide implementation visible by installing ocl-icd-system conda package.
/bin/sh: 1: sphinx-build: not found
make: *** [Makefile:20: html] Error 127

[!CAUTION]

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

@sameeul sameeul closed this Jan 5, 2024
@sameeul sameeul deleted the sweep/sweep_gha_fix_the_github_actions_run_fai_46 branch July 17, 2024 20:19
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