Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
341af28
Updated requests websockets and pyyaml of compute worker to fix some …
Aug 29, 2025
773c07c
Datagroup removed as part of the cleanup
ihsaan-ullah Oct 14, 2025
329bec9
reorganized circle ci config file
ihsaan-ullah Oct 14, 2025
54f4802
yml indentation fixed
ihsaan-ullah Oct 14, 2025
30f0d8f
Added back submissions files copy into prediction out that was remove…
Oct 15, 2025
dbd3f6b
Merge pull request #2038 from codalab/computeWorkerFix
ObadaS Oct 15, 2025
e5993c7
Merge pull request #2035 from codalab/circle_ci_config
ObadaS Oct 17, 2025
9b7ef42
Fix BestModeStrategy to exclude soft-deleted and non-finished submiss…
ndido98 Oct 21, 2025
38f1da8
license field added to serializer to add it on creation, json-ld scri…
ihsaan-ullah Oct 25, 2025
d77cdfd
Changed hardcoded email as per issue #2040
Oct 31, 2025
30828c5
email updated to info@codabench.org in the docs
ihsaan-ullah Nov 11, 2025
349b32e
Merge pull request #2052 from codalab/serverEmailFix
ihsaan-ullah Nov 11, 2025
54550ad
Merge pull request #2050 from codalab/datasets_updates
ObadaS Nov 13, 2025
0b2dc04
Updated Celery to 5.2.2 (Major version upgrade)
Nov 13, 2025
c35eaf3
Merge branch 'develop' into workerPackagesUpdate
ObadaS Nov 13, 2025
71a50d3
Merge pull request #2048 from ndido98/fix-bestmodestrategy
Didayolo Nov 18, 2025
3924712
comment out the non working tests while we find a way to fix them
Nov 25, 2025
e5a9152
fix flake8 linter
Nov 25, 2025
b931be4
remove submission test
Nov 25, 2025
55d3f68
Merge pull request #2034 from codalab/cleanup_datagroup
Didayolo Nov 26, 2025
2df1bdf
Merge pull request #2058 from codalab/email_change
Didayolo Nov 26, 2025
c538c75
Merge pull request #2067 from codalab/e2e_tests_disabled
ObadaS Dec 1, 2025
fe3e5a2
Merge pull request #2071 from codalab/develop
ObadaS Dec 1, 2025
fce7f1d
Merge pull request #2072 from codalab/develop
ObadaS Dec 1, 2025
1d6169b
Merge pull request #2066 from codalab/fix-bestmodestrategy
ObadaS Dec 1, 2025
91b78bf
Merge pull request #1992 from codalab/workerPackagesUpdate
ObadaS Dec 1, 2025
dd6c6d0
remove certificate verification from celery in the compute worker
Dec 4, 2025
734ebe0
version bump
Dec 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 20 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,39 +15,49 @@ jobs:
#
# In another terminal:
# $ open vnc://0.0.0.0:5900
name: Download and start X for VNC viewing
name: "Setup: Enable VNC access"
command: |
sudo apt-get update
sudo apt-get install -y x11vnc
# x11vnc -forever -nopw
background: true

- run: cp .env_circleci .env
- run:
name: "Setup: Copy environment variables"
command: cp .env_circleci .env


- run:
name: Making gross directories for minio, cannot be made by docker for some reason
name: "Setup: Create directories for MinIO (cannot be made by docker for some reason)"
command: |
sudo mkdir -p var/minio/public
sudo mkdir -p var/minio/private

- run:
name: Build containers and collect static
name: "Docker: Build containers and collect static files"
command: |
docker compose -f docker-compose.yml -f docker-compose.selenium.yml up -d
docker compose -f docker-compose.yml -f docker-compose.selenium.yml exec django python manage.py collectstatic --noinput

- run: docker-compose exec django flake8 src/
- run: docker pull codalab/codalab-legacy:py37 # not available without "not e2e" tests as they pull ahead of time
- run: docker pull codalab/codalab-legacy:py3 # not available without "not e2e" tests as they pull ahead of time
- run: docker pull vergilgxw/autotable:v2 # not available without "not e2e" tests as they pull ahead of time
- run:
name: "Lint: Check code style with flake8"
command: docker-compose exec django flake8 src/


- run:
name: "Docker: Pull required images"
# not available without "not e2e" tests as they pull ahead of time
command: |
docker pull codalab/codalab-legacy:py37
docker pull codalab/codalab-legacy:py3
docker pull vergilgxw/autotable:v2

- run:
name: pytest
name: "Tests: Run unit/integration tests (excluding e2e)"
command: docker compose -f docker-compose.yml -f docker-compose.selenium.yml exec django py.test src/ -m "not e2e"

- run:
name: e2e tests
name: "Tests: Run end-to-end (E2E) tests"
command: docker compose -f docker-compose.yml -f docker-compose.selenium.yml exec django py.test src/tests/functional/ -m e2e
no_output_timeout: 60m

Expand Down
4 changes: 2 additions & 2 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ This Code of Conduct applies to all interactions related to this project, includ

## 5. Reporting Issues

If you witness or experience any behavior that violates this Code of Conduct, please report it to **info@codalab.org**. All reports will be reviewed and handled confidentially.
If you witness or experience any behavior that violates this Code of Conduct, please report it to **info@codabench.org**. All reports will be reviewed and handled confidentially.

## 6. Enforcement

Expand All @@ -49,7 +49,7 @@ This Code of Conduct is adapted from the [Contributor Covenant](https://www.cont
---

### Questions?
If you have any questions or concerns, please reach out to **info@codalab.org**.
If you have any questions or concerns, please reach out to **info@codabench.org**.



7 changes: 5 additions & 2 deletions compute_worker/celery_config.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import os

import ssl

broker_url = os.environ.get('BROKER_URL')
broker_use_ssl = os.environ.get('BROKER_USE_SSL', False)
if os.environ.get('BROKER_USE_SSL', False):
broker_use_ssl = {
"cert_reqs": ssl.CERT_NONE,
}
worker_concurrency = 1
worker_prefetch_multiplier = 1
task_acks_late = True
7 changes: 5 additions & 2 deletions compute_worker/compute_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import websockets
import yaml
from billiard.exceptions import SoftTimeLimitExceeded
from celery import Celery, task, utils
from celery import Celery, shared_task, utils
from kombu import Queue, Exchange
from urllib3 import Retry

Expand Down Expand Up @@ -113,7 +113,7 @@ class ExecutionTimeLimitExceeded(Exception):
# The main compute worker entrypoint, this is how a job is ran at the highest
# level.
# -----------------------------------------------------------------------------
@task(name="compute_worker_run")
@shared_task(name="compute_worker_run")
def run_wrapper(run_args):
logger.info(f"Received run arguments: {run_args}")
run = Run(run_args)
Expand Down Expand Up @@ -632,6 +632,9 @@ async def _run_program_directory(self, program_dir, kind):
logger.warning(
"Program directory missing metadata, assuming it's going to be handled by ingestion"
)
# Copy submission files into prediction output
# This is useful for results submissions but wrongly uses storage
shutil.copytree(program_dir, self.output_dir)
return
else:
raise SubmissionException("Program directory missing 'metadata.yaml/metadata'")
Expand Down
Loading
Loading