DSGT-DLP / Deep-Learning-Playground

Web Application where people new to Deep Learning can input a dataset and toy around with basic Pytorch modules without writing any code
MIT License
24 stars 8 forks source link

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

Closed sweep-ai[bot] closed 8 months ago

sweep-ai[bot] commented 8 months ago

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

sweep-ai[bot] commented 8 months ago

Apply Sweep Rules to your PR?

This is an automated message generated by Sweep AI.

sweep-ai[bot] commented 8 months ago
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)

sweep-ai[bot] commented 8 months ago
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)

sweep-ai[bot] commented 8 months ago
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 yarn run format:check 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 yarn build 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';`   1 | import { useRef, useEffect, useState } from "react"; > 2 | import { createPortal } from "react-dom";   | ^   3 |   4 | export default function ClientOnlyPortal({   5 | children, 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: https://github.com/DSGT-DLP/Deep-Learning-Playground/pull/1101

sonarcloud[bot] commented 8 months ago

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