Smitaambiger commented on issue #279:
URL:
https://github.com/apache/tooling-trusted-releases/issues/279#issuecomment-3749672035
Hi @sbp ,
Thank you for the guidance and for your patience.
I’ve now followed the instructions fully and run both the linting and the
end-to-end tests locally using Docker.
Linting:
- All pre-commit hooks now pass after installing the musl-compatible Biome
binary inside the ATR container.
- Pyright still reports missing imports for `playwright.sync_api` and
`netifaces` in the Alpine-based container; this appears to be related to
platform-specific wheel availability, but the lint run itself completes and
reports this clearly.
End-to-end tests:
- I ran the documented command `sh tests/run-playwright.sh`.
- The Playwright tests start successfully and progress through login,
project creation, release lifecycle steps, and file upload.
- The run fails with a timeout while waiting for background tasks to
complete (`TimeoutError: Tasks did not complete within 18 seconds`).
I’m sharing these outputs as requested to confirm that ATR is running
locally and that both linting and e2e tests have been executed.
```text
DjCSS....................................................................Passed
stylelint................................................................Passed
zizmor...................................................................Passed
pip-audit................................................................Passed
lint JS files with
Oxlint................................................Passed
lint Python files with
Ruff..............................................Passed
format Python files with
Ruff............................................Passed
format JS files with
Biome...............................................Passed
lint JS files with
Biome.................................................Passed
type check Python files with
Pyright.....................................Failed
- hook id: pyright
- exit code: 1
/workspace/playwright/test.py
/workspace/playwright/test.py:33:8 - warning: Import "netifaces" could not
be resolved from source (reportMissingModuleSource)
/workspace/playwright/test.py:35:6 - error: Import "playwright.sync_api"
could not be resolved (reportMissingImports)
1 error, 1 warning, 0 informations
check Jinja2
routes......................................................Passed
check when dependencies were
updated.....................................Passed
make: *** [Makefile:52: check] Error 1
/workspace # exit
```
```text
@Smitaambiger ➜ /workspaces/tooling-trusted-releases (main) $ sh
tests/run-playwright.sh
Building and running ATR integration tests...
[+] Building 255.9s (62/62) FINISHED
=> [internal] load local bake definitions
[+] Running 5/5
✔ tests-atr Built
0.0s
✔ tests-playwright Built
0.0s
✔ Network tests_test-network Created
0.3s
✔ Container tests-atr-1 Created
0.3s
✔ Container tests-playwright-1 Created
0.2s
Attaching to atr-1, playwright-1
atr-1 | Certificate generated:
atr-1 | Cert: ./state/cert.pem
atr-1 | Key: ./state/key.pem
playwright-1 |
╰──────────────────────────────────────────────────────────╯
playwright-1 | TimeoutError: Tasks did not complete
within 18 seconds
playwright-1 exited with code 1
Aborting on container exit...
Container tests-playwright-1 Stopping
Container tests-playwright-1 Stopped
Container tests-atr-1 Stopping
atr-1 exited with code 0
Container tests-atr-1 Stopped
```
Thanks again for the helpful feedback.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]