Repository navigation
Description
E2E tests (#2042)
-
E2E tests are failing on Django 4.2.0 pull request (Django to 4.2.0 #1959). We're remove it them but need to add them again.
-
E2E tests are randomly failing (~ 1 time out of 4).
Podman test
- The tests only run Docker, not Podman (Podman updates & More Competition container security #1871). We need to add this.
More E2E tests
Add to the E2E tests:
- A Codabench results submission (Update E2E tests #2302)
- Another Codabench code submission, typically Mini-AutoML (Update E2E tests #2302)
- A failing submission (Update E2E tests #2302)
- Several submissions made to the same benchmark
- Multi-task tests are disabled on CI
- Test submission on custom queue
- All tests on
codalab/codalab-legacy:py312? It is much lighter
E2E test files:
https://github.com/codalab/codabench/tree/develop/tests/test_files/competitions
https://github.com/codalab/codabench/tree/develop/tests/test_files/submissions
The templates:
https://github.com/codalab/competition-examples/
Improve E2E
- Wait until
FinishedorFailed, and then test ifFinished. (Update E2E tests #2302)
This wait we do not wait in case of failure, and we have more informative tests.
Use the site_worker
Some points to improve:
-
The site_worker is not used in CircleCI, all tasks are processed by Django itself. We need to fix this.
-
CircleCI tests are skipping the multitask bundles.
Relevant code:
# Skip this test if in the CI
@pytest.mark.skipif(ci, reason="Works locally but fails in the CI because of CELERY_TASK_ALWAYS_EAGER = True")
[...]Tests:
test_auth.py::test_auth[firefox] PASSED [ 6%]
test_account_creation.py::test_FailedAccountCreationUsername[firefox] PASSED [ 12%]
test_account_creation.py::test_account_creation[firefox] PASSED [ 18%]
test_account_creation.py::test_loginIntoActivatedAccount[firefox] PASSED [ 25%]
test_competition.py::test_competition_upload[firefox] PASSED [ 31%]
test_competition.py::test_manual_competition_creation[firefox] PASSED [ 37%]
test_submission.py::test_v2_code[firefox] PASSED [ 43%]
test_submission.py::test_v2_results[firefox] PASSED [ 50%]
test_submission.py::test_v2_results_failure[firefox] PASSED [ 56%]
test_submission.py::test_v2_miniautoml[firefox] PASSED [ 62%]
test_submission.py::test_v15_sncf[firefox] PASSED [ 68%]
test_submission.py::test_v15_iris_code[firefox] PASSED [ 75%]
test_submission.py::test_v15_iris_results[firefox] PASSED [ 81%]
test_submission.py::test_v18_autowsl[firefox] PASSED [ 87%]
test_submission.py::test_v2_multiTask[firefox] SKIPPED (Works locall...) [ 93%]
test_submission.py::test_v2_multiTaskFactSheet[firefox] SKIPPED (Wor...) [100%]
================== 14 passed, 2 skipped in 209.36s (0:03:29) ===================
Activity
ObadaS commentedon Dec 10, 2025
The first and second points should be fixed after we merge #2042 (Playwright is ready to replace our Selenium tests, and it adds even more tests than before)
Didayolo commentedon Mar 31, 2026
Current submissions tests: