Skip to content

Commit f64dd0a

Browse files
committed
revert
1 parent e63d1ac commit f64dd0a

File tree

71 files changed

+1573
-2226
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+1573
-2226
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
- run:
7878
name: "Tests: Run end-to-end (E2E) tests"
7979
command: |
80-
cd tests && CI=True $HOME/.local/bin/uv run pytest test_auth.py test_account_creation.py test_competition.py test_submission.py
80+
cd tests && CI="true" $HOME/.local/bin/uv run pytest test_auth.py test_account_creation.py test_competition.py test_submission.py
8181
no_output_timeout: 30m
8282

8383
# Example to run specific set of tests (for debugging individual tests from a batch of tests)

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 4
7+
indent_style = space
8+
insert_final_newline = true
9+
tab_width = 4
10+
trim_trailing_whitespace = true
11+
12+
[*.{yml,yaml}]
13+
indent_size = 2
14+
tab_width = 2
15+
16+
[*.md]
17+
trim_trailing_whitespace = false

.env_circleci

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ WORKER_CONNECTION_TIMEOUT=100000000 # milliseconds
1414

1515
FLOWER_BASIC_AUTH=root:password-you-should-change
1616

17+
SELENIUM_HOSTNAME=selenium
18+
1719
DJANGO_SETTINGS_MODULE=settings.test
1820

1921
# Minio local storage example

.env_sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ SELENIUM_HOSTNAME=selenium
4242
#EMAIL_HOST_PASSWORD=pass
4343
#EMAIL_PORT=587
4444
#EMAIL_USE_TLS=True
45+
#DEFAULT_FROM_EMAIL="Codabench <noreply@example.com>"
4546
#SERVER_EMAIL=noreply@example.com
4647

4748
# Contact Email

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.10.0
1+
FROM python:3.9.20
22

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

Procfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
web: cd src && gunicorn asgi:application -w 3 -k uvicorn.workers.UvicornWorker -b :$PORT --max-requests 1024 --max-requests-jitter 256
2+
worker: cd src && celery -A celery_config worker -B -Q site-worker -l info -n site-worker@%n --concurrency=3

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ $ docker compose exec django ./manage.py collectstatic --noinput
2828

2929
You can now login as username "admin" with password "admin" at http://localhost/
3030

31+
If you ever need to reset the database, use the script `./reset_db.sh`
32+
3133
For more information about installation, checkout [Codabench Basic Installation Guide](https://docs.codabench.org/latest/Developers_and_Administrators/Codabench-Installation/) and [How to Deploy Server](https://docs.codabench.org/latest/Developers_and_Administrators/How-to-deploy-Codabench-on-your-server/).
3234

3335

app.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"name": "competitions-v2",
3+
"scripts": {
4+
"postdeploy": "bin/init_staging"
5+
},
6+
"env": {
7+
"USE_SSL": "True",
8+
"GUNICORN_CMD_ARGS": "--workers=3",
9+
"DJANGO_SETTINGS_MODULE": "settings.develop",
10+
"TEMP_SUBMISSION_STORAGE": "./temp_submission_storage/",
11+
"AWS_ACCESS_KEY_ID": {"required": true},
12+
"AWS_SECRET_ACCESS_KEY": {"required": true},
13+
"AWS_S3_ENDPOINT_URL": {"required": true},
14+
"AWS_STORAGE_BUCKET_NAME": {"required": true},
15+
"AWS_STORAGE_PRIVATE_BUCKET_NAME": {"required": true}
16+
},
17+
"formation": {
18+
"web": {
19+
"quantity": 1,
20+
"size": "free"
21+
},
22+
"worker": {
23+
"quantity": 1,
24+
"size": "free"
25+
}
26+
},
27+
"addons": [
28+
"heroku-postgresql",
29+
"heroku-redis",
30+
"searchbox:starter",
31+
"cloudamqp:lemur"
32+
],
33+
"buildpacks": [
34+
{
35+
"url": "heroku/nodejs"
36+
},
37+
{
38+
"url": "heroku/python"
39+
}
40+
41+
]
42+
}

certs/.gitkeep

Whitespace-only changes.

conftest.py

Whitespace-only changes.

0 commit comments

Comments
 (0)