Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
32dad0e
autorun collectstatic when django container starts, added caddy_data …
ihsaan-ullah Jul 11, 2024
6c81635
Merge pull request #1522 from codalab/collect_static
Didayolo Jul 26, 2024
7d01068
Changed submission name to add ID when downloading many submissions (…
Didayolo Aug 21, 2024
a37139a
Server Status: submissions limit removed (#1562)
ihsaan-ullah Aug 21, 2024
cf33e33
Email template fixes (#1567)
ihsaan-ullah Aug 22, 2024
79e2850
task dataset/program removal fixed
ihsaan-ullah Aug 22, 2024
37d97c1
Updated docker-compose to docker compose
Aug 29, 2024
cf76c0c
Merge pull request #1571 from codalab/readmeChanges
Didayolo Aug 29, 2024
56bdd5e
Merge pull request #1569 from codalab/tasks_remove_dataset
Didayolo Aug 29, 2024
62c1700
whiltelist emails leaking fixed (#1560)
ihsaan-ullah Aug 29, 2024
d24f565
Updates to server_status and monitor_queues (#1568)
ihsaan-ullah Sep 2, 2024
fba9140
[Feature] Delete orphan files (#1575)
Didayolo Sep 3, 2024
959d776
Fix string concat in case of no email in analytics api
OhMaley Sep 16, 2024
0b4f0a2
Poetry error tentative fix (#1588)
ObadaS Oct 1, 2024
747acb2
`Release PR#1` - Display release version in Codabench footer (#1583)
ihsaan-ullah Oct 1, 2024
7ced144
`Release PR#2` Release version will load dynamically from version.jso…
ihsaan-ullah Oct 1, 2024
de55ef3
`Release PR#3` created workflow for new releases (#1584)
ihsaan-ullah Oct 3, 2024
346bc53
resource interface-> task updates
ihsaan-ullah Oct 4, 2024
8188a98
use competition queue in submission queue on rerun
ihsaan-ullah Oct 5, 2024
9d3370d
uploaded time added to task detail
ihsaan-ullah Oct 8, 2024
137251f
Updates Sept 15-22 2024 (#1593)
bbearce Oct 11, 2024
5fc4c2e
Merge pull request #1585 from OhMaley/fix/storage/analytics-api-handl…
Didayolo Oct 11, 2024
b5f8a7e
Merge pull request #1626 from codalab/fix/storage/analytics-api-handl…
Didayolo Oct 11, 2024
3c41aa7
organizers can now delete forum posts (#1613)
ihsaan-ullah Oct 11, 2024
79ef40b
bundles renamed to competition bundles, swapped postions of bundles a…
ihsaan-ullah Oct 11, 2024
cc71857
Rebase tasks_table_enhancements (#1628)
Didayolo Oct 11, 2024
50c7652
Merge pull request #1614 from codalab/rerun_submission_queue
Didayolo Oct 11, 2024
4e55382
task table show details on first two columns click
ihsaan-ullah Oct 12, 2024
ecaea3c
send computation and computation_indexes to backend when saving leade…
ihsaan-ullah Oct 12, 2024
658a2ed
handled submission file_name too long error and fixed the previous er…
ihsaan-ullah Oct 12, 2024
da4e05c
different header message if there is no current phase
ihsaan-ullah Oct 14, 2024
ae60436
Merge pull request #1612 from codalab/tasks_table_enhancements
Didayolo Oct 14, 2024
3dc257b
Merge pull request #1630 from codalab/computation_columns
Didayolo Oct 14, 2024
d860100
Merge pull request #1631 from codalab/submission_long_name
Didayolo Oct 14, 2024
e5d7c8f
Merge pull request #1634 from codalab/current_phase_ends
Didayolo Oct 14, 2024
231fe22
Convert orphan files deletion task to async using celery task. Update…
Didayolo Oct 14, 2024
1bd7c6f
Public tasks -- updates to ensure public tasks can be viewed and used…
ihsaan-ullah Oct 25, 2024
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
50 changes: 50 additions & 0 deletions .github/workflows/release-version-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Update version.json and create PR

on:
release:
types: [published]

jobs:
update-version:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Get release information
id: get_release
uses: dawidd6/action-get-latest-release@v3
with:
release: true

- name: Update version.json
run: |
echo '{
"tag_name": "${{ steps.get_release.outputs.tag_name }}",
"release_name": "${{ steps.get_release.outputs.name }}",
"published_at": "${{ steps.get_release.outputs.published_at }}",
"body": "${{ steps.get_release.outputs.body }}"
"release_url": "${{ steps.get_release.outputs.html_url }}"
}' > version.json

- name: Create new branch
run: |
git checkout -b update-version-${{ steps.get_release.outputs.tag_name }}
git add version.json
git commit -m "Update version.json for release ${{ steps.get_release.outputs.tag_name }}"

- name: Push branch
run: |
git push origin update-version-${{ steps.get_release.outputs.tag_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update-version-${{ steps.get_release.outputs.tag_name }}
title: "Update version.json for release ${{ steps.get_release.outputs.tag_name }}"
body: "This PR updates version.json with the latest release information."
base: develop # Target branch for the pull request
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ server_config.yaml

.DS_Store
.DS_Store?

caddy_config/
caddy_data/
17 changes: 9 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
FROM python:3.9
FROM python:3.9.20

RUN apt-get update && apt-get install -y gcc build-essential && rm -rf /var/lib/apt/lists/*

ENV PYTHONUNBUFFERED 1
ENV PYTHONUNBUFFERED=1


RUN curl -sSL https://install.python-poetry.org | python3 -
RUN curl -sSL https://install.python-poetry.org | python3 - --version 1.8.3
# Poetry location so future commands (below) work
ENV PATH $PATH:/root/.local/bin

ENV PATH=$PATH:/root/.local/bin
# Want poetry to use system python of docker container
RUN poetry config virtualenvs.create false
RUN poetry config virtualenvs.in-project false

COPY pyproject.toml ./
COPY pyproject.toml poetry.lock ./

# Install dependencies
RUN poetry install

RUN poetry lock
RUN poetry install

WORKDIR /app
2 changes: 1 addition & 1 deletion Dockerfile.compute_worker
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ENV PYTHONUNBUFFERED 1
RUN apt-get update && curl -fsSL https://get.docker.com | sh


RUN curl -sSL https://install.python-poetry.org | python3 -
RUN curl -sSL https://install.python-poetry.org | python3 - --version 1.8.3
# Poetry location so future commands (below) work
ENV PATH $PATH:/root/.local/bin
# Want poetry to use system python of docker container
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.compute_worker_gpu
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN apt-get install -y nvidia-container-toolkit
# BB - not convinced we need this
ENV USE_GPU 1

RUN curl -sSL https://install.python-poetry.org | python3 -
RUN curl -sSL https://install.python-poetry.org | python3 - --version 1.8.3
# Poetry location so future commands (below) work
ENV PATH $PATH:/root/.local/bin
# Want poetry to use system python of docker container
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.flower
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ENV PYTHONUNBUFFERED=1 PYTHONHASHSEED=random PYTHONDONTWRITEBYTECODE=1
RUN apt-get update && apt-get install -y ca-certificates && update-ca-certificates

# # Install the required packages
RUN curl -sSL https://install.python-poetry.org | python3 -
RUN curl -sSL https://install.python-poetry.org | python3 - --version 1.8.3
# Poetry location so future commands (below) work
ENV PATH $PATH:/root/.local/bin
# Want poetry to use system python of docker container
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.rabbitmq
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM rabbitmq:management
FROM rabbitmq:3.13.7-management
ARG WORKER_CONNECTION_TIMEOUT
RUN echo "consumer_timeout = $WORKER_CONNECTION_TIMEOUT" >> /etc/rabbitmq/conf.d/10-defaults.conf
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ If you wish to configure your own instance of Codabench platform, here are the i

```
$ cp .env_sample .env
$ docker-compose up -d
$ docker-compose exec django ./manage.py migrate
$ docker-compose exec django ./manage.py generate_data
$ docker-compose exec django ./manage.py collectstatic --noinput
$ docker compose up -d
$ docker compose exec django ./manage.py migrate
$ docker compose exec django ./manage.py generate_data
$ docker compose exec django ./manage.py collectstatic --noinput
```

You can now login as username "admin" with password "admin" at http://localhost/
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ services:
django:
build: .
# NOTE: We use watchmedo to reload gunicorn nicely, Uvicorn + Gunicorn reloads don't work well
command: bash -c "cd /app/src && watchmedo auto-restart -p '*.py' --recursive -- gunicorn asgi:application -w 2 -k uvicorn.workers.UvicornWorker -b :8000 -b :80 --capture-output --log-level debug"
command: bash -c "python manage.py collectstatic --noinput && cd /app/src && watchmedo auto-restart -p '*.py' --recursive -- gunicorn asgi:application -w 2 -k uvicorn.workers.UvicornWorker -b :8000 -b :80 --capture-output --log-level debug"
environment:
- DATABASE_URL=postgres://${DB_USERNAME}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}
env_file: .env
Expand Down
Loading