zeno-ml / zeno-hub

AI Evaluation Platform
https://hub.zenoml.com
MIT License
44 stars 10 forks source link

Show meaningful error messages for unlinked projects (βœ“ Sandbox Passed) #543

Closed sweep-ai[bot] closed 11 months ago

sweep-ai[bot] commented 11 months ago

PR Feedback (click)

Summary

Fixes #542.


πŸŽ‰ Latest improvements to Sweep:


πŸ’‘ To get Sweep to edit this pull request, you can:

sweep-ai[bot] commented 11 months ago

Sandbox Executions

Ran GitHub Actions for 9319b90ba28e8bc2f939d6a3137c45e727599d37:

Ran GitHub Actions for b6ef6ab589abbcd693defc5aa51264959bfeb62d:

Ran GitHub Actions for 57cba5ad362400232ad38574548148f1e517bbb4:

sweep-ai[bot] commented 11 months ago

Apply Sweep Rules to your PR?

sweep-ai[bot] commented 11 months ago

The command: Run chartboost/ruff-action@v1 yielded the following error: `##[error]Process completed with exit code 1.

[group]Run cd frontend

cd frontend HUB_PASSWORD=$HUB_PASSWORD HUB_USERNAME=test npx playwright test shell: /usr/bin/bash -e {0} env: ZENO_USER_POOL_AUTH_REGION: ZENO_USER_POOL_CLIENT_ID: ZENO_USER_POOL_ID: HUB_PASSWORD: HUB_API_KEY: *** pythonLocation: /opt/hostedtoolcache/Python/3.12.0/x64 LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.0/x64/lib

[endgroup]

Running 9 tests using 2 workers Β·TTTTTTTT

1) general.test.ts:8:1 β€Ί can login ───────────────────────────────────────────────────────────────

Test timeout of 30000ms exceeded.

Error: page.waitForURL: Test timeout of 30000ms exceeded.
=========================== logs ===========================
waiting for navigation to "/home/test" until "load"
  navigated to "http://localhost:5173/login?redirectto=/home"
============================================================

   at login.ts:10

   8 |  await page.getByRole('button', { name: 'Login' }).click();
   9 |
> 10 |  await page.waitForURL('/home/test');
     |             ^
  11 | }
  12 |

    at login (/home/runner/work/zeno-hub/zeno-hub/frontend/tests/login.ts:10:13)
    at /home/runner/work/zeno-hub/zeno-hub/frontend/tests/general.test.ts:9:2

2) home.test.ts:8:1 β€Ί can go to report ───────────────────────────────────────────────────────────

Test timeout of 30000ms exceeded while running "beforeEach" hook.

  2 | import { login } from './login';
  3 |
> 4 | test.beforeEach(async ({ page }) => {
    |      ^
  5 |   await login(page);
  6 | });
  7 |

    at /home/runner/work/zeno-hub/zeno-hub/frontend/tests/home.test.ts:4:6

Error: page.waitForURL: Test timeout of 30000ms exceeded.
=========================== logs ===========================
waiting for navigation to "/home/test" until "load"
  navigated to "http://localhost:5173/login?redirectto=/home"
============================================================

   at login.ts:10

   8 |  await page.getByRole('button', { name: 'Login' }).click();
   9 |
> 10 |  await page.waitForURL('/home/test');
     |             ^
  11 | }
  12 |

    at login (/home/runner/work/zeno-hub/zeno-hub/frontend/tests/login.ts:10:13)
    at /home/runner/work/zeno-hub/zeno-hub/frontend/tests/home.test.ts:5:2

3) home.test.ts:16:1 β€Ί can go to project ─────────────────────────────────────────────────────────

Test timeout of 30000ms exceeded while running "beforeEach" hook.

  2 | import { login } from './login';
  3 |
> 4 | test.beforeEach(async ({ page }) => {
    |      ^
  5 |   await login(page);
  6 | });
  7 |

    at /home/runner/work/zeno-hub/zeno-hub/frontend/tests/home.test.ts:4:6

Error: page.waitForURL: Test timeout of 30000ms exceeded.
=========================== logs ===========================
waiting for navigation to "/home/test" until "load"
  navigated to "http://localhost:5173/login?redirectto=/home"
============================================================

   at login.ts:10

   8 |  await page.getByRole('button', { name: 'Login' }).click();
   9 |
> 10 |  await page.waitForURL('/home/test');
     |             ^
  11 | }
  12 |

    at login (/home/runner/work/zeno-hub/zeno-hub/frontend/tests/login.ts:10:13)
    at /home/runner/work/zeno-hub/zeno-hub/frontend/tests/home.test.ts:5:2

4) project.test.ts:11:1 β€Ί can see project header ─────────────────────────────────────────────────

Test timeout of 30000ms exceeded while running "beforeEach" hook.

  2 | import { login } from './login';
  3 |
> 4 | test.beforeEach(async ({ page }) => {
    |      ^
  5 |   await login(page);
  6 |
  7 |   await page.getByRole('button', { name: 'GPT MT Benchmarks' }).click();

    at /home/runner/work/zeno-hub/zeno-hub/frontend/tests/project.test.ts:4:6

Error: page.waitForURL: Test timeout of 30000ms exceeded.
=========================== logs ===========================
waiting for navigation to "/home/test" until "load"
  navigated to "http://localhost:5173/login?redirectto=/home"
============================================================

   at login.ts:10

   8 |  await page.getByRole('button', { name: 'Login' }).click();
   9 |
> 10 |  await page.waitForURL('/home/test');
     |             ^
  11 | }
  12 |

    at login (/home/runner/work/zeno-hub/zeno-hub/frontend/tests/login.ts:10:13)
    at /home/runner/work/zeno-hub/zeno-hub/frontend/tests/project.test.ts:5:2

5) project.test.ts:15:1 β€Ί slice and tags are present ─────────────────────────────────────────────

Test timeout of 30000ms exceeded while running "beforeEach" hook.

  2 | import { login } from './login';
  3 |
> 4 | test.beforeEach(async ({ page }) => {
    |      ^
  5 |   await login(page);
  6 |
  7 |   await page.getByRole('button', { name: 'GPT MT Benchmarks' }).click();

    at /home/runner/work/zeno-hub/zeno-hub/frontend/tests/project.test.ts:4:6

Error: page.waitForURL: Test timeout of 30000ms exceeded.
=========================== logs ===========================
waiting for navigation to "/home/test" until "load"
  navigated to "http://localhost:5173/login?redirectto=/home"
============================================================

   at login.ts:10

   8 |  await page.getByRole('button', { name: 'Login' }).click();
   9 |
> 10 |  await page.waitForURL('/home/test');
     |             ^
  11 | }
  12 |

    at login (/home/runner/work/zeno-hub/zeno-hub/frontend/tests/login.ts:10:13)
    at /home/runner/work/zeno-hub/zeno-hub/frontend/tests/project.test.ts:5:2

6) project.test.ts:21:1 β€Ί can filter by slice ────────────────────────────────────────────────────

Test timeout of 30000ms exceeded while running "beforeEach" hook.

  2 | import { login } from './login';
  3 |
> 4 | test.beforeEach(async ({ page }) => {
    |      ^
  5 |   await login(page);
  6 |
  7 |   await page.getByRole('button', { name: 'GPT MT Benchmarks' }).click();

    at /home/runner/work/zeno-hub/zeno-hub/frontend/tests/project.test.ts:4:6

Error: page.waitForURL: Test timeout of 30000ms exceeded.
=========================== logs ===========================
waiting for navigation to "/home/test" until "load"
  navigated to "http://localhost:5173/login?redirectto=/home"
============================================================

   at login.ts:10

   8 |  await page.getByRole('button', { name: 'Login' }).click();
   9 |
> 10 |  await page.waitForURL('/home/test');
     |             ^
  11 | }
  12 |

    at login (/home/runner/work/zeno-hub/zeno-hub/frontend/tests/login.ts:10:13)
    at /home/runner/work/zeno-hub/zeno-hub/frontend/tests/project.test.ts:5:2

7) project.test.ts:29:1 β€Ί can filter by tag ──────────────────────────────────────────────────────

Test timeout of 30000ms exceeded while running "beforeEach" hook.

  2 | import { login } from './login';
  3 |
> 4 | test.beforeEach(async ({ page }) => {
    |      ^
  5 |   await login(page);
  6 |
  7 |   await page.getByRole('button', { name: 'GPT MT Benchmarks' }).click();

    at /home/runner/work/zeno-hub/zeno-hub/frontend/tests/project.test.ts:4:6

Error: page.waitForURL: Test timeout of 30000ms exceeded.
=========================== logs ===========================
waiting for navigation to "/home/test" until "load"
  navigated to "http://localhost:5173/login?redirectto=/home"
============================================================

   at login.ts:10

   8 |  await page.getByRole('button', { name: 'Login' }).click();
   9 |
> 10 |  await page.waitForURL('/home/test');
     |             ^
  11 | }
  12 |

    at login (/home/runner/work/zeno-hub/zeno-hub/frontend/tests/login.ts:10:13)
    at /home/runner/work/zeno-hub/zeno-hub/frontend/tests/project.test.ts:5:2

8) report.test.ts:11:1 β€Ί can see report elements ─────────────────────────────────────────────────

Test timeout of 30000ms exceeded while running "beforeEach" hook.

  2 | import { login } from './login';
  3 |
> 4 | test.beforeEach(async ({ page }) => {
    |      ^
  5 |   await login(page);
  6 |
  7 |   await page.getByRole('button', { name: 'Translation Report' }).click();

    at /home/runner/work/zeno-hub/zeno-hub/frontend/tests/report.test.ts:4:6

Error: page.waitForURL: Test timeout of 30000ms exceeded.
=========================== logs ===========================
waiting for navigation to "/home/test" until "load"
  navigated to "http://localhost:5173/login?redirectto=/home"
============================================================

   at login.ts:10

   8 |  await page.getByRole('button', { name: 'Login' }).click();
   9 |
> 10 |  await page.waitForURL('/home/test');
     |             ^
  11 | }
  12 |

    at login (/home/runner/work/zeno-hub/zeno-hub/frontend/tests/login.ts:10:13)
    at /home/runner/work/zeno-hub/zeno-hub/frontend/tests/report.test.ts:5:2

Slow test file: project.test.ts (2.0m) Slow test file: home.test.ts (1.0m) Slow test file: general.test.ts (30.5s) Slow test file: report.test.ts (30.0s) Consider splitting slow test files to speed up parallel execution 8 failed general.test.ts:8:1 β€Ί can login ──────────────────────────────────────────────────────────────── home.test.ts:8:1 β€Ί can go to report ──────────────────────────────────────────────────────────── home.test.ts:16:1 β€Ί can go to project ────────────────────────────────────────────────────────── project.test.ts:11:1 β€Ί can see project header ────────────────────────────────────────────────── project.test.ts:15:1 β€Ί slice and tags are present ────────────────────────────────────────────── project.test.ts:21:1 β€Ί can filter by slice ───────────────────────────────────────────────────── project.test.ts:29:1 β€Ί can filter by tag ─────────────────────────────────────────────────────── report.test.ts:11:1 β€Ί can see report elements ────────────────────────────────────────────────── 1 passed (2.6m)

[error]Process completed with exit code 1.`

Here are the logs:

##[group]Run if [ "$RUNNER_OS" == "Windows" ]; then
if [ "$RUNNER_OS" == "Windows" ]; then
  python $GITHUB_ACTION_PATH/action/main.py
else
  python3 $GITHUB_ACTION_PATH/action/main.py
fi
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
env:
RUFF_FORMAT: github
INPUT_ARGS: check
INPUT_SRC: backend/zeno_backend/
INPUT_VERSION:
pythonioencoding: utf-8
##[endgroup]
creating virtual environment...
installing ruff...
error: Failed to parse backend/zeno_backend/database/select.py:1571:5: Unexpected token 'if'
backend/zeno_backend/classes/report.py:50:9: D102 Missing docstring in public method
backend/zeno_backend/classes/report.py:50:39: F821 Undefined name `ReportElement`
backend/zeno_backend/classes/report.py:52:13: F821 Undefined name `update`
backend/zeno_backend/classes/report.py:56:9: D102 Missing docstring in public method
backend/zeno_backend/classes/report.py:56:40: F821 Undefined name `User`
backend/zeno_backend/classes/report.py:58:13: F821 Undefined name `update`
backend/zeno_backend/classes/report.py:62:9: D102 Missing docstring in public method
backend/zeno_backend/classes/report.py:62:47: F821 Undefined name `Organization`
backend/zeno_backend/classes/report.py:64:13: F821 Undefined name `update`
backend/zeno_backend/classes/report.py:66:89: E501 Line too long (94 > 88)
backend/zeno_backend/database/select.py:1571:5: E999 SyntaxError: Unexpected token 'if'
backend/zeno_backend/database/select.py:1580:89: E501 Line too long (112 > 88)
backend/zeno_backend/database/select.py:2358:89: E501 Line too long (106 > 88)
backend/zeno_backend/database/select.py:2409:89: E501 Line too long (109 > 88)
backend/zeno_backend/database/update.py:2:1: I001 [*] Import block is un-sorted or un-formatted
backend/zeno_backend/database/update.py:482:89: E501 Line too long (90 > 88)
Found 16 errors.
[*] 1 fixable with the `--fix` option.
sweep-ai[bot] commented 11 months ago

The command: Run chartboost/ruff-action@v1 yielded the following error:

[error]Process completed with exit code 1.

[group]Run cd frontend

cd frontend HUB_PASSWORD=$HUB_PASSWORD HUB_USERNAME=test npx playwright test shell: /usr/bin/bash -e {0} env: ZENO_USER_POOL_AUTH_REGION: ZENO_USER_POOL_CLIENT_ID: ZENO_USER_POOL_ID: HUB_PASSWORD: HUB_API_KEY: *** pythonLocation: /opt/hostedtoolcache/Python/3.12.0/x64 LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.0/x64/lib

[endgroup]

Running 9 tests using 2 workers Β·TTTTTTTT

1) general.test.ts:8:1 β€Ί can login ───────────────────────────────────────────────────────────────

Test timeout of 30000ms exceeded.

Error: page.waitForURL: Test timeout of 30000ms exceeded.
=========================== logs ===========================
waiting for navigation to "/home/test" until "load"
  navigated to "http://localhost:5173/login?redirectto=/home"
============================================================

   at login.ts:10

   8 |    await page.getByRole('button', { name: 'Login' }).click();
   9 |
> 10 |    await page.waitForURL('/home/test');
     |               ^
  11 | }
  12 |

    at login (/home/runner/work/zeno-hub/zeno-hub/frontend/tests/login.ts:10:13)
    at /home/runner/work/zeno-hub/zeno-hub/frontend/tests/general.test.ts:9:2

2) home.test.ts:8:1 β€Ί can go to report ───────────────────────────────────────────────────────────

Test timeout of 30000ms exceeded while running "beforeEach" hook.

  2 | import { login } from './login';
  3 |
> 4 | test.beforeEach(async ({ page }) => {
    |      ^
  5 |     await login(page);
  6 | });
  7 |

    at /home/runner/work/zeno-hub/zeno-hub/frontend/tests/home.test.ts:4:6

Error: page.waitForURL: Test timeout of 30000ms exceeded.
=========================== logs ===========================
waiting for navigation to "/home/test" until "load"
  navigated to "http://localhost:5173/login?redirectto=/home"
============================================================

   at login.ts:10

   8 |    await page.getByRole('button', { name: 'Login' }).click();
   9 |
> 10 |    await page.waitForURL('/home/test');
     |               ^
  11 | }
  12 |

    at login (/home/runner/work/zeno-hub/zeno-hub/frontend/tests/login.ts:10:13)
    at /home/runner/work/zeno-hub/zeno-hub/frontend/tests/home.test.ts:5:2

3) home.test.ts:16:1 β€Ί can go to project ─────────────────────────────────────────────────────────

Test timeout of 30000ms exceeded while running "beforeEach" hook.

  2 | import { login } from './login';
  3 |
> 4 | test.beforeEach(async ({ page }) => {
    |      ^
  5 |     await login(page);
  6 | });
  7 |

    at /home/runner/work/zeno-hub/zeno-hub/frontend/tests/home.test.ts:4:6

Error: page.waitForURL: Test timeout of 30000ms exceeded.
=========================== logs ===========================
waiting for navigation to "/home/test" until "load"
  navigated to "http://localhost:5173/login?redirectto=/home"
============================================================

   at login.ts:10

   8 |    await page.getByRole('button', { name: 'Login' }).click();
   9 |
> 10 |    await page.waitForURL('/home/test');
     |               ^
  11 | }
  12 |

    at login (/home/runner/work/zeno-hub/zeno-hub/frontend/tests/login.ts:10:13)
    at /home/runner/work/zeno-hub/zeno-hub/frontend/tests/home.test.ts:5:2

4) project.test.ts:11:1 β€Ί can see project header ─────────────────────────────────────────────────

Test timeout of 30000ms exceeded while running "beforeEach" hook.

  2 | import { login } from './login';
  3 |
> 4 | test.beforeEach(async ({ page }) => {
    |      ^
  5 |     await login(page);
  6 |
  7 |     await page.getByRole('button', { name: 'GPT MT Benchmarks' }).click();

    at /home/runner/work/zeno-hub/zeno-hub/frontend/tests/project.test.ts:4:6

Error: page.waitForURL: Test timeout of 30000ms exceeded.
=========================== logs ===========================
waiting for navigation to "/home/test" until "load"
  navigated to "http://localhost:5173/login?redirectto=/home"
============================================================

   at login.ts:10

   8 |    await page.getByRole('button', { name: 'Login' }).click();
   9 |
> 10 |    await page.waitForURL('/home/test');
     |               ^
  11 | }
  12 |

    at login (/home/runner/work/zeno-hub/zeno-hub/frontend/tests/login.ts:10:13)
    at /home/runner/work/zeno-hub/zeno-hub/frontend/tests/project.test.ts:5:2

5) project.test.ts:15:1 β€Ί slice and tags are present ─────────────────────────────────────────────

Test timeout of 30000ms exceeded while running "beforeEach" hook.

  2 | import { login } from './login';
  3 |
> 4 | test.beforeEach(async ({ page }) => {
    |      ^
  5 |     await login(page);
  6 |
  7 |     await page.getByRole('button', { name: 'GPT MT Benchmarks' }).click();

    at /home/runner/work/zeno-hub/zeno-hub/frontend/tests/project.test.ts:4:6

Error: page.waitForURL: Test timeout of 30000ms exceeded.
=========================== logs ===========================
waiting for navigation to "/home/test" until "load"
  navigated to "http://localhost:5173/login?redirectto=/home"
============================================================

   at login.ts:10

   8 |    await page.getByRole('button', { name: 'Login' }).click();
   9 |
> 10 |    await page.waitForURL('/home/test');
     |               ^
  11 | }
  12 |

    at login (/home/runner/work/zeno-hub/zeno-hub/frontend/tests/login.ts:10:13)
    at /home/runner/work/zeno-hub/zeno-hub/frontend/tests/project.test.ts:5:2

6) project.test.ts:21:1 β€Ί can filter by slice ────────────────────────────────────────────────────

Test timeout of 30000ms exceeded while running "beforeEach" hook.

  2 | import { login } from './login';
  3 |
> 4 | test.beforeEach(async ({ page }) => {
    |      ^
  5 |     await login(page);
  6 |
  7 |     await page.getByRole('button', { name: 'GPT MT Benchmarks' }).click();

    at /home/runner/work/zeno-hub/zeno-hub/frontend/tests/project.test.ts:4:6

Error: page.waitForURL: Test timeout of 30000ms exceeded.
=========================== logs ===========================
waiting for navigation to "/home/test" until "load"
  navigated to "http://localhost:5173/login?redirectto=/home"
============================================================

   at login.ts:10

   8 |    await page.getByRole('button', { name: 'Login' }).click();
   9 |
> 10 |    await page.waitForURL('/home/test');
     |               ^
  11 | }
  12 |

    at login (/home/runner/work/zeno-hub/zeno-hub/frontend/tests/login.ts:10:13)
    at /home/runner/work/zeno-hub/zeno-hub/frontend/tests/project.test.ts:5:2

7) project.test.ts:29:1 β€Ί can filter by tag ──────────────────────────────────────────────────────

Test timeout of 30000ms exceeded while running "beforeEach" hook.

  2 | import { login } from './login';
  3 |
> 4 | test.beforeEach(async ({ page }) => {
    |      ^
  5 |     await login(page);
  6 |
  7 |     await page.getByRole('button', { name: 'GPT MT Benchmarks' }).click();

    at /home/runner/work/zeno-hub/zeno-hub/frontend/tests/project.test.ts:4:6

Error: page.waitForURL: Test timeout of 30000ms exceeded.
=========================== logs ===========================
waiting for navigation to "/home/test" until "load"
  navigated to "http://localhost:5173/login?redirectto=/home"
============================================================

   at login.ts:10

   8 |    await page.getByRole('button', { name: 'Login' }).click();
   9 |
> 10 |    await page.waitForURL('/home/test');
     |               ^
  11 | }
  12 |

    at login (/home/runner/work/zeno-hub/zeno-hub/frontend/tests/login.ts:10:13)
    at /home/runner/work/zeno-hub/zeno-hub/frontend/tests/project.test.ts:5:2

8) report.test.ts:11:1 β€Ί can see report elements ─────────────────────────────────────────────────

Test timeout of 30000ms exceeded while running "beforeEach" hook.

  2 | import { login } from './login';
  3 |
> 4 | test.beforeEach(async ({ page }) => {
    |      ^
  5 |     await login(page);
  6 |
  7 |     await page.getByRole('button', { name: 'Translation Report' }).click();

    at /home/runner/work/zeno-hub/zeno-hub/frontend/tests/report.test.ts:4:6

Error: page.waitForURL: Test timeout of 30000ms exceeded.
=========================== logs ===========================
waiting for navigation to "/home/test" until "load"
  navigated to "http://localhost:5173/login?redirectto=/home"
============================================================

   at login.ts:10

   8 |    await page.getByRole('button', { name: 'Login' }).click();
   9 |
> 10 |    await page.waitForURL('/home/test');
     |               ^
  11 | }
  12 |

    at login (/home/runner/work/zeno-hub/zeno-hub/frontend/tests/login.ts:10:13)
    at /home/runner/work/zeno-hub/zeno-hub/frontend/tests/report.test.ts:5:2

Slow test file: project.test.ts (2.0m) Slow test file: home.test.ts (1.0m) Slow test file: general.test.ts (30.5s) Slow test file: report.test.ts (30.0s) Consider splitting slow test files to speed up parallel execution 8 failed general.test.ts:8:1 β€Ί can login ──────────────────────────────────────────────────────────────── home.test.ts:8:1 β€Ί can go to report ──────────────────────────────────────────────────────────── home.test.ts:16:1 β€Ί can go to project ────────────────────────────────────────────────────────── project.test.ts:11:1 β€Ί can see project header ────────────────────────────────────────────────── project.test.ts:15:1 β€Ί slice and tags are present ────────────────────────────────────────────── project.test.ts:21:1 β€Ί can filter by slice ───────────────────────────────────────────────────── project.test.ts:29:1 β€Ί can filter by tag ─────────────────────────────────────────────────────── report.test.ts:11:1 β€Ί can see report elements ────────────────────────────────────────────────── 1 passed (2.6m)

[error]Process completed with exit code 1.

Here are the logs:

[group]Run if [ "$RUNNER_OS" == "Windows" ]; then

if [ "$RUNNER_OS" == "Windows" ]; then  python $GITHUB_ACTION_PATH/action/main.py else  python3 $GITHUB_ACTION_PATH/action/main.py fi shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} env: RUFF_FORMAT: github INPUT_ARGS: check INPUT_SRC: backend/zeno_backend/ INPUT_VERSION: pythonioencoding: utf-8

[endgroup]

creating virtual environment... installing ruff... error: Failed to parse backend/zeno_backend/database/select.py:1571:5: Unexpected token 'if' backend/zeno_backend/classes/report.py:50:9: D102 Missing docstring in public method backend/zeno_backend/classes/report.py:50:39: F821 Undefined name ReportElement backend/zeno_backend/classes/report.py:52:13: F821 Undefined name update backend/zeno_backend/classes/report.py:56:9: D102 Missing docstring in public method backend/zeno_backend/classes/report.py:56:40: F821 Undefined name User backend/zeno_backend/classes/report.py:58:13: F821 Undefined name update backend/zeno_backend/classes/report.py:62:9: D102 Missing docstring in public method backend/zeno_backend/classes/report.py:62:47: F821 Undefined name Organization backend/zeno_backend/classes/report.py:64:13: F821 Undefined name update backend/zeno_backend/classes/report.py:66:89: E501 Line too long (94 > 88) backend/zeno_backend/database/select.py:1571:5: E999 SyntaxError: Unexpected token 'if' backend/zeno_backend/database/select.py:1580:89: E501 Line too long (112 > 88) backend/zeno_backend/database/select.py:2358:89: E501 Line too long (106 > 88) backend/zeno_backend/database/select.py:2409:89: E501 Line too long (109 > 88) backend/zeno_backend/database/update.py:2:1: I001 [] Import block is un-sorted or un-formatted backend/zeno_backend/database/update.py:482:89: E501 Line too long (90 > 88) Found 16 errors. [] 1 fixable with the --fix option.

Hi @sweep-ai[bot],

I am making the following changes:

File Path Proposed Changes
frontend/tests/home.test.ts Modify frontend/tests/home.test.ts with contents:
β€’ Update the test cases to ensure they complete within the time limit. This could involve optimizing the test cases or increasing the timeout limit.
β€’ Check the network requests made by the test cases and optimize them if necessary.
β€’ Ensure that the login process in the login.ts file is working correctly and efficiently.
frontend/tests/home.test.ts Check frontend/tests/home.test.ts with contents:
frontend/tests/project.test.ts Modify frontend/tests/project.test.ts with contents:
β€’ Similar to the home.test.ts file, update the test cases to ensure they complete within the time limit.
β€’ Check the network requests made by the test cases and optimize them if necessary.
β€’ Ensure that the login process in the login.ts file is working correctly and efficiently.
frontend/tests/project.test.ts Check frontend/tests/project.test.ts with contents:
frontend/tests/report.test.ts Modify frontend/tests/report.test.ts with contents:
β€’ Similar to the home.test.ts and project.test.ts files, update the test cases to ensure they complete within the time limit.
β€’ Check the network requests made by the test cases and optimize them if necessary.
β€’ Ensure that the login process in the login.ts file is working correctly and efficiently.
frontend/tests/report.test.ts Check frontend/tests/report.test.ts with contents:
backend/zeno_backend/classes/report.py Modify backend/zeno_backend/classes/report.py with contents:
β€’ Add docstrings to the update_element, update_user_access, and update_org_access methods.
β€’ Fix the undefined names ReportElement, User, and Organization by importing them at the top of the file.
backend/zeno_backend/classes/report.py Check backend/zeno_backend/classes/report.py with contents:
backend/zeno_backend/database/select.py Modify backend/zeno_backend/database/select.py with contents:
β€’ Fix the syntax error at line 1571. Ensure that the if statement is correctly indented and that it has a corresponding else statement if necessary.
backend/zeno_backend/database/select.py Check backend/zeno_backend/database/select.py with contents:
backend/zeno_backend/database/update.py Modify backend/zeno_backend/database/update.py with contents:
β€’ Add docstrings to the report_element, report_user, and report_org methods.
backend/zeno_backend/database/update.py Check backend/zeno_backend/database/update.py with contents: