Closed sweep-ai[bot] closed 11 months ago
backend/zeno_backend/database/select.py
β
Check backend/zeno_backend/database/select.py with contents:
Ran GitHub Actions for 9319b90ba28e8bc2f939d6a3137c45e727599d37:
backend/zeno_backend/database/update.py
β
Check backend/zeno_backend/database/update.py with contents:
Ran GitHub Actions for b6ef6ab589abbcd693defc5aa51264959bfeb62d:
backend/zeno_backend/classes/slice.py
β
Check backend/zeno_backend/classes/slice.py with contents:
backend/zeno_backend/classes/tag.py
β
Check backend/zeno_backend/classes/tag.py with contents:
backend/zeno_backend/classes/chart.py
β
Check backend/zeno_backend/classes/chart.py with contents:
backend/zeno_backend/classes/report.py
β
Check backend/zeno_backend/classes/report.py with contents:
Ran GitHub Actions for 57cba5ad362400232ad38574548148f1e517bbb4:
The command:
Run chartboost/ruff-action@v1
yielded the following error:
`##[error]Process completed with exit code 1.
[36;1mcd frontend[0m [36;1mHUB_PASSWORD=$HUB_PASSWORD HUB_USERNAME=test npx playwright test[0m 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
Running 9 tests using 2 workers Β·TTTTTTTT
1) general.test.ts:8:1 βΊ can login βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
[31mTest timeout of 30000ms exceeded.[39m
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 βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
[31mTest timeout of 30000ms exceeded while running "beforeEach" hook.[39m
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 βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
[31mTest timeout of 30000ms exceeded while running "beforeEach" hook.[39m
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 βββββββββββββββββββββββββββββββββββββββββββββββββ
[31mTest timeout of 30000ms exceeded while running "beforeEach" hook.[39m
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 βββββββββββββββββββββββββββββββββββββββββββββ
[31mTest timeout of 30000ms exceeded while running "beforeEach" hook.[39m
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 ββββββββββββββββββββββββββββββββββββββββββββββββββββ
[31mTest timeout of 30000ms exceeded while running "beforeEach" hook.[39m
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 ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
[31mTest timeout of 30000ms exceeded while running "beforeEach" hook.[39m
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 βββββββββββββββββββββββββββββββββββββββββββββββββ
[31mTest timeout of 30000ms exceeded while running "beforeEach" hook.[39m
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)
Here are the logs:
##[group]Run if [ "$RUNNER_OS" == "Windows" ]; then
[36;1mif [ "$RUNNER_OS" == "Windows" ]; then[0m
[36;1m python $GITHUB_ACTION_PATH/action/main.py[0m
[36;1melse[0m
[36;1m python3 $GITHUB_ACTION_PATH/action/main.py[0m
[36;1mfi[0m
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.
The command: Run chartboost/ruff-action@v1 yielded the following error:
[error]Process completed with exit code 1.
[group]Run cd frontend
[36;1mcd frontend[0m [36;1mHUB_PASSWORD=$HUB_PASSWORD HUB_USERNAME=test npx playwright test[0m 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 βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
[31mTest timeout of 30000ms exceeded.[39m 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 βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
[31mTest timeout of 30000ms exceeded while running "beforeEach" hook.[39m 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 βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
[31mTest timeout of 30000ms exceeded while running "beforeEach" hook.[39m 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 βββββββββββββββββββββββββββββββββββββββββββββββββ
[31mTest timeout of 30000ms exceeded while running "beforeEach" hook.[39m 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 βββββββββββββββββββββββββββββββββββββββββββββ
[31mTest timeout of 30000ms exceeded while running "beforeEach" hook.[39m 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 ββββββββββββββββββββββββββββββββββββββββββββββββββββ
[31mTest timeout of 30000ms exceeded while running "beforeEach" hook.[39m 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 ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
[31mTest timeout of 30000ms exceeded while running "beforeEach" hook.[39m 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 βββββββββββββββββββββββββββββββββββββββββββββββββ
[31mTest timeout of 30000ms exceeded while running "beforeEach" hook.[39m 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
[36;1mif [ "$RUNNER_OS" == "Windows" ]; then[0m [36;1m python $GITHUB_ACTION_PATH/action/main.py[0m [36;1melse[0m [36;1m python3 $GITHUB_ACTION_PATH/action/main.py[0m [36;1mfi[0m 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 nameupdate
backend/zeno_backend/classes/report.py:56:9: D102 Missing docstring in public method backend/zeno_backend/classes/report.py:56:40: F821 Undefined nameUser
backend/zeno_backend/classes/report.py:58:13: F821 Undefined nameupdate
backend/zeno_backend/classes/report.py:62:9: D102 Missing docstring in public method backend/zeno_backend/classes/report.py:62:47: F821 Undefined nameOrganization
backend/zeno_backend/classes/report.py:64:13: F821 Undefined nameupdate
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: |
PR Feedback (click)
Description
This pull request includes changes to the
report.py
,select.py
, andupdate.py
files in thebackend/zeno_backend/classes
andbackend/zeno_backend/database
directories. The changes aim to show meaningful error messages for unlinked projects.Summary
update_element
method to theReport
class inreport.py
to update a report element.update_user_access
method to theReport
class inreport.py
to update a user's report access.update_org_access
method to theReport
class inreport.py
to update an organization's report access.folder
function inselect.py
to check if the project of the chart is added to the report.user_organizations
function inselect.py
to check if the project of the slice is added to the report.project_users
function inselect.py
to check if the project of the tag is added to the report.report_element
function inupdate.py
to handle exceptions and update the report element.report_user
function inupdate.py
to handle exceptions and update the user's report access.report_org
function inupdate.py
to handle exceptions and update the organization's report access.Fixes #542.
π Latest improvements to Sweep:
π‘ To get Sweep to edit this pull request, you can: