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

Closed

Conversation

sweep-ai[bot]
Copy link
Contributor

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

Description

This pull request includes changes to the .github/workflows/frontend.yml and frontend/package.json files. The changes add a new workflow called "Frontend Workflow Check" that runs linting, building, staging, and testing tasks for the frontend. The workflow is triggered on pull requests and pushes. The changes also update the start script in the package.json file to include a test script and a format:check script.

Summary

  • Added a new workflow called "Frontend Workflow Check" in .github/workflows/frontend.yml
  • Updated the start script in frontend/package.json to include a test script and a format:check script

@sweep-ai sweep-ai bot requested a review from a team as a code owner January 17, 2024 02:51
Copy link
Contributor Author

sweep-ai bot commented Jan 17, 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 17, 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: [('/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/base/sweep--sweep_gha_fix_the_github_actions_run_fai/.git/objects/pack/tmp_pack_ws3bsr', '/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/9cd659f093430b6cd96638ac2b8de21f4316dfc4067d26f6d2a929e5de6c0a45/sweep--sweep_gha_fix_the_github_actions_run_fai/.git/objects/pack/tmp_pack_ws3bsr', "[Errno 2] No such file or directory: '/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/base/sweep--sweep_gha_fix_the_github_actions_run_fai/.git/objects/pack/tmp_pack_ws3bsr'"), ('/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/base/sweep--sweep_gha_fix_the_github_actions_run_fai/backend', '/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/9cd659f093430b6cd96638ac2b8de21f4316dfc4067d26f6d2a929e5de6c0a45/sweep--sweep_gha_fix_the_github_actions_run_fai/backend', "[Errno 2] No such file or directory: '/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/base/sweep--sweep_gha_fix_the_github_actions_run_fai/backend'"), ('/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/base/sweep--sweep_gha_fix_the_github_actions_run_fai/README.md', '/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/9cd659f093430b6cd96638ac2b8de21f4316dfc4067d26f6d2a929e5de6c0a45/sweep--sweep_gha_fix_the_github_actions_run_fai/README.md', "[Errno 2] No such file or directory: '/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/base/sweep--sweep_gha_fix_the_github_actions_run_fai/README.md'"), ('/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/base/sweep--sweep_gha_fix_the_github_actions_run_fai/serverless', '/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/9cd659f093430b6cd96638ac2b8de21f4316dfc4067d26f6d2a929e5de6c0a45/sweep--sweep_gha_fix_the_github_actions_run_fai/serverless', "[Errno 2] No such file or directory: '/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/base/sweep--sweep_gha_fix_the_github_actions_run_fai/serverless'"), ('/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/base/sweep--sweep_gha_fix_the_github_actions_run_fai/.vscode', '/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/9cd659f093430b6cd96638ac2b8de21f4316dfc4067d26f6d2a929e5de6c0a45/sweep--sweep_gha_fix_the_github_actions_run_fai/.vscode', "[Errno 2] No such file or directory: '/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/base/sweep--sweep_gha_fix_the_github_actions_run_fai/.vscode'"), ('/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/base/sweep--sweep_gha_fix_the_github_actions_run_fai/dlp-cli', '/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/9cd659f093430b6cd96638ac2b8de21f4316dfc4067d26f6d2a929e5de6c0a45/sweep--sweep_gha_fix_the_github_actions_run_fai/dlp-cli', "[Errno 2] No such file or directory: '/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/base/sweep--sweep_gha_fix_the_github_actions_run_fai/dlp-cli'"), ('/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/base/sweep--sweep_gha_fix_the_github_actions_run_fai/data.csv', '/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/9cd659f093430b6cd96638ac2b8de21f4316dfc4067d26f6d2a929e5de6c0a45/sweep--sweep_gha_fix_the_github_actions_run_fai/data.csv', "[Errno 2] No such file or directory: '/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/base/sweep--sweep_gha_fix_the_github_actions_run_fai/data.csv'"), ('/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/base/sweep--sweep_gha_fix_the_github_actions_run_fai/training', '/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/9cd659f093430b6cd96638ac2b8de21f4316dfc4067d26f6d2a929e5de6c0a45/sweep--sweep_gha_fix_the_github_actions_run_fai/training', "[Errno 2] No such file or directory: '/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/base/sweep--sweep_gha_fix_the_github_actions_run_fai/training'"), ('/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/base/sweep--sweep_gha_fix_the_github_actions_run_fai/.github', '/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/9cd659f093430b6cd96638ac2b8de21f4316dfc4067d26f6d2a929e5de6c0a45/sweep--sweep_gha_fix_the_github_actions_run_fai/.github', "[Errno 2] No such file or directory: '/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/base/sweep--sweep_gha_fix_the_github_actions_run_fai/.github'"), ('/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/base/sweep--sweep_gha_fix_the_github_actions_run_fai/package-lock.json', '/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/9cd659f093430b6cd96638ac2b8de21f4316dfc4067d26f6d2a929e5de6c0a45/sweep--sweep_gha_fix_the_github_actions_run_fai/package-lock.json', "[Errno 2] No such file or directory: '/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/base/sweep--sweep_gha_fix_the_github_actions_run_fai/package-lock.json'"), ('/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/base/sweep--sweep_gha_fix_the_github_actions_run_fai/.pre-commit-config.yaml', '/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/9cd659f093430b6cd96638ac2b8de21f4316dfc4067d26f6d2a929e5de6c0a45/sweep--sweep_gha_fix_the_github_actions_run_fai/.pre-commit-config.yaml', "[Errno 2] No such file or directory: '/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/base/sweep--sweep_gha_fix_the_github_actions_run_fai/.pre-commit-config.yaml'"), ('/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/base/sweep--sweep_gha_fix_the_github_actions_run_fai/LICENSE', '/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/9cd659f093430b6cd96638ac2b8de21f4316dfc4067d26f6d2a929e5de6c0a45/sweep--sweep_gha_fix_the_github_actions_run_fai/LICENSE', "[Errno 2] No such file or directory: '/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/base/sweep--sweep_gha_fix_the_github_actions_run_fai/LICENSE'"), ('/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/base/sweep--sweep_gha_fix_the_github_actions_run_fai/.aws', '/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/9cd659f093430b6cd96638ac2b8de21f4316dfc4067d26f6d2a929e5de6c0a45/sweep--sweep_gha_fix_the_github_actions_run_fai/.aws', "[Errno 2] No such file or directory: '/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/base/sweep--sweep_gha_fix_the_github_actions_run_fai/.aws'"), ('/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/base/sweep--sweep_gha_fix_the_github_actions_run_fai/TrainingContainer.Dockerfile', '/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/9cd659f093430b6cd96638ac2b8de21f4316dfc4067d26f6d2a929e5de6c0a45/sweep--sweep_gha_fix_the_github_actions_run_fai/TrainingContainer.Dockerfile', "[Errno 2] No such file or directory: '/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/base/sweep--sweep_gha_fix_the_github_actions_run_fai/TrainingContainer.Dockerfile'")] (tracking ID: 67dfb78801)

Copy link
Contributor Author

sweep-ai bot commented Jan 17, 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 -- https://:@github.com/DSGT-DLP/Deep-Learning-Playground.git /tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/base/sweep--sweep_gha_fix_the_github_actions_run_fai
stderr: 'fatal: destination path '/tmp/cache/repos/DSGT-DLP/Deep-Learning-Playground/base/sweep--sweep_gha_fix_the_github_actions_run_fai' already exists and is not an empty directory.
' (tracking ID: 6474b2181a)

Copy link
Contributor Author

sweep-ai bot commented Jan 17, 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 run test --coverage
yielded the following error:
##[error]Process completed with exit code 1.
##[group]Run yarn run format:check
�[36;1myarn run format:check�[0m
shell: /usr/bin/bash -e {0}
##[endgroup]
yarn run v1.22.21
$ eslint --ext .js,.jsx,.ts,.tsx --quiet --fix --ignore-path .gitignore .

Oops! Something went wrong! :(

ESLint: 8.52.0

Error: Cannot read .eslintignore file: /home/runner/work/Deep-Learning-Playground/Deep-Learning-Playground/frontend/.gitignore
Error: ENOENT: no such file or directory, open '/home/runner/work/Deep-Learning-Playground/Deep-Learning-Playground/frontend/.gitignore'
    at Object.openSync (node:fs:596:3)
    at Object.readFileSync (node:fs:464:35)
    at readFile (/home/runner/work/Deep-Learning-Playground/Deep-Learning-Playground/frontend/node_modules/.pnpm/@eslint+eslintrc@2.1.2/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2491:35)
    at loadESLintIgnoreFile (/home/runner/work/Deep-Learning-Playground/Deep-Learning-Playground/frontend/node_modules/.pnpm/@eslint+eslintrc@2.1.2/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2619:16)
    at ConfigArrayFactory.loadESLintIgnore (/home/runner/work/Deep-Learning-Playground/Deep-Learning-Playground/frontend/node_modules/.pnpm/@eslint+eslintrc@2.1.2/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2925:32)
    at createCLIConfigArray (/home/runner/work/Deep-Learning-Playground/Deep-Learning-Playground/frontend/node_modules/.pnpm/@eslint+eslintrc@2.1.2/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3643:34)
    at new CascadingConfigArrayFactory (/home/runner/work/Deep-Learning-Playground/Deep-Learning-Playground/frontend/node_modules/.pnpm/@eslint+eslintrc@2.1.2/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3724:29)
    at new CLIEngine (/home/runner/work/Deep-Learning-Playground/Deep-Learning-Playground/frontend/node_modules/.pnpm/eslint@8.52.0/node_modules/eslint/lib/cli-engine/cli-engine.js:617:36)
    at new ESLint (/home/runner/work/Deep-Learning-Playground/Deep-Learning-Playground/frontend/node_modules/.pnpm/eslint@8.52.0/node_modules/eslint/lib/eslint/eslint.js:430:27)
    at Object.execute (/home/runner/work/Deep-Learning-Playground/Deep-Learning-Playground/frontend/node_modules/.pnpm/eslint@8.52.0/node_modules/eslint/lib/cli.js:391:24)
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
##[error]Process completed with exit code 2.
##[group]Run yarn build
�[36;1myarn build�[0m
shell: /usr/bin/bash -e {0}
env:
  CI: true
  PUBLIC_URL: /pr-preview/pr-/
  REACT_APP_PREVIEW: true
  REACT_APP_FIREBASE_API_KEY: 
  REACT_APP_FIREBASE_AUTH_DOMAIN: 
  REACT_APP_FIREBASE_PROJECT_ID: 
  REACT_APP_FIREBASE_STORAGE_BUCKET: 
  REACT_APP_FIREBASE_MESSAGING_SENDER_ID: 
  REACT_APP_FIREBASE_APP_ID: 
  REACT_APP_FIREBASE_MEASUREMENT_ID: 
##[endgroup]
yarn run v1.22.21
$ next build
 ⚠ Invalid next.config.js options detected: 
 ⚠     "env.REACT_APP_CAPTCHA_SITE_KEY" is missing, expected string
 ⚠     "env.REACT_APP_FEEDBACK_EMAIL" is missing, expected string
 ⚠ See more info here: https://nextjs.org/docs/messages/invalid-next-config
⚠ No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry

   Linting and checking validity of types ...
Failed to compile.

./src/common/components/ClientOnlyPortal.tsx:2:30
Type error: Could not find a declaration file for module 'react-dom'. '/home/runner/work/Deep-Learning-Playground/Deep-Learning-Playground/frontend/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/react-dom` if it exists or add a new declaration (.d.ts) file containing `declare module 'react-dom';`

�[0m �[90m 1 |�[39m �[36mimport�[39m { useRef�[33m,�[39m useEffect�[33m,�[39m useState } �[36mfrom�[39m �[32m"react"�[39m�[33m;�[39m�[0m
�[0m�[31m�[1m>�[22m�[39m�[90m 2 |�[39m �[36mimport�[39m { createPortal } �[36mfrom�[39m �[32m"react-dom"�[39m�[33m;�[39m�[0m
�[0m �[90m   |�[39m                              �[31m�[1m^�[22m�[39m�[0m
�[0m �[90m 3 |�[39m�[0m
�[0m �[90m 4 |�[39m �[36mexport�[39m �[36mdefault�[39m �[36mfunction�[39m �[33mClientOnlyPortal�[39m({�[0m
�[0m �[90m 5 |�[39m   children�[33m,�[39m�[0m
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
##[error]Process completed with exit code 1.

Here are the logs:
> frontend@ test /home/runner/work/Deep-Learning-Playground/Deep-Learning-Playground/frontend
> pnpm run start "--coverage"


> frontend@ start /home/runner/work/Deep-Learning-Playground/Deep-Learning-Playground/frontend
> next dev "--coverage"

Unknown or unexpected option: --coverage
ELIFECYCLE  Command failed with exit code 1.
ELIFECYCLE  Test failed. See above for more details.

Created Pull Request: #1101

Copy link

sonarcloud bot commented Jan 17, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@karkir0003 karkir0003 closed this Jan 17, 2024
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