Skip to content

CircleCI tests improvement #2023

Open
Open

Description

@Didayolo

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

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 test:
https://github.com/codalab/codabench/blob/develop/tests/test_submission.py

The templates:
https://github.com/codalab/competition-examples/

Improve E2E

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:

https://github.com/codalab/codabench/blob/develop/tests/test_submission.py

# 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

  1. added
    Post-it
    P1
    on Oct 7, 2025
  2. ObadaS commented on Dec 10, 2025

    @ObadaS
    Collaborator

    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)

  3. removed
    P1
    on Feb 6, 2026
  4. added
    Enhancement
    on Mar 26, 2026
  5. self-assigned this
    on Mar 31, 2026
  6. Didayolo commented on Mar 31, 2026

    @Didayolo
    MemberAuthor

    Current submissions tests:

    test_submission.py::test_basic[firefox] PASSED                           [ 53%]
    test_submission.py::test_v15[firefox] PASSED                             [ 61%]
    test_submission.py::test_irisV15_code[firefox] PASSED                    [ 69%]
    test_submission.py::test_irisV15_result[firefox] PASSED                  [ 76%]
    test_submission.py::test_v18[firefox] PASSED                             [ 84%]
    test_submission.py::test_v2_multiTask[firefox] SKIPPED (Works locall...) [ 92%]
    test_submission.py::test_v2_multiTaskFactSheet[firefox] SKIPPED (Wor...) [100%]
  7. removed their assignment
    on Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementPost-it

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions