Skip to content

Commit 705b70a

Browse files
authored
Merge pull request #515 from Kitware/upgrade-resonant
Upgrade to Resonant v0.51.0
2 parents 1bcc943 + 206b954 commit 705b70a

17 files changed

Lines changed: 77 additions & 27 deletions

.copier-answers.resonant.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
_commit: v0.50.5
1+
_commit: v0.51.0
22
_src_path: https://github.com/kitware-resonant/cookiecutter-resonant
33
core_app_name: core
44
include_example_code: false
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"features": {
3+
"ghcr.io/devcontainers-extra/features/heroku-cli:1": {
4+
"version": "1.0.5",
5+
"resolved": "ghcr.io/devcontainers-extra/features/heroku-cli@sha256:499a883bd3537c38c892e405fb6f3233e7101877852cc560b8ed5eec176c672a",
6+
"integrity": "sha256:499a883bd3537c38c892e405fb6f3233e7101877852cc560b8ed5eec176c672a"
7+
},
8+
"ghcr.io/devcontainers/features/aws-cli:1": {
9+
"version": "1.1.4",
10+
"resolved": "ghcr.io/devcontainers/features/aws-cli@sha256:1f93c8315b7a6d76982ebb2269f8b0d50413fc0f965c032edf4aee0caceb73ef",
11+
"integrity": "sha256:1f93c8315b7a6d76982ebb2269f8b0d50413fc0f965c032edf4aee0caceb73ef"
12+
},
13+
"ghcr.io/devcontainers/features/git-lfs:1": {
14+
"version": "1.2.5",
15+
"resolved": "ghcr.io/devcontainers/features/git-lfs@sha256:71c2b371cf12ab7fcec47cf17369c6f59156100dad9abf9e4c593049d789de72",
16+
"integrity": "sha256:71c2b371cf12ab7fcec47cf17369c6f59156100dad9abf9e4c593049d789de72"
17+
},
18+
"ghcr.io/devcontainers/features/github-cli:1": {
19+
"version": "1.1.0",
20+
"resolved": "ghcr.io/devcontainers/features/github-cli@sha256:d22f50b70ed75339b4eed1ba9ecde3a1791f90e88d37936517e3bace0bbad671",
21+
"integrity": "sha256:d22f50b70ed75339b4eed1ba9ecde3a1791f90e88d37936517e3bace0bbad671"
22+
},
23+
"ghcr.io/devcontainers/features/node:1": {
24+
"version": "1.7.1",
25+
"resolved": "ghcr.io/devcontainers/features/node@sha256:8c0de46939b61958041700ee89e3493f3b2e4131a06dc46b4d9423427d06e5f6",
26+
"integrity": "sha256:8c0de46939b61958041700ee89e3493f3b2e4131a06dc46b4d9423427d06e5f6"
27+
},
28+
"ghcr.io/devcontainers/features/terraform:1": {
29+
"version": "1.4.2",
30+
"resolved": "ghcr.io/devcontainers/features/terraform@sha256:250d08e39c99d9e959e091e74527c22c04eeae728b424da99f002423c7902f82",
31+
"integrity": "sha256:250d08e39c99d9e959e091e74527c22c04eeae728b424da99f002423c7902f82"
32+
},
33+
"ghcr.io/rails/devcontainer/features/postgres-client:1": {
34+
"version": "1.2.0",
35+
"resolved": "ghcr.io/rails/devcontainer/features/postgres-client@sha256:7e6b118646d6e0d82a9ec06e81ad1b5406f7042f0279d35fff3a7a612be7a050",
36+
"integrity": "sha256:7e6b118646d6e0d82a9ec06e81ad1b5406f7042f0279d35fff3a7a612be7a050"
37+
}
38+
}
39+
}

.devcontainer/devcontainer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
// Django
3939
"batisteo.vscode-django",
4040
"augustocdias.tasks-shell-input",
41+
// Vue
42+
"vue.volar",
4143
// Other file formats
4244
"editorconfig.editorconfig",
4345
"mikestead.dotenv",

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Install npm
1616
uses: actions/setup-node@v6
1717
with:
18-
node-version: 24.15.0
18+
node-version: 24
1919
cache: npm
2020
cache-dependency-path: client/package-lock.json
2121
- name: Install packages
@@ -40,7 +40,7 @@ jobs:
4040
ports:
4141
- 5432:5432
4242
rabbitmq:
43-
image: rabbitmq:4.2-management-alpine
43+
image: rabbitmq:4.3-management-alpine
4444
options: >-
4545
--health-cmd "rabbitmq-diagnostics ping"
4646
--health-start-period 30s

.vscode/launch.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@
5757
"worker",
5858
"--loglevel",
5959
"INFO",
60-
"--pool",
61-
"solo",
62-
"--without-heartbeat"
60+
"--without-mingle",
61+
"--without-heartbeat",
62+
"--without-gossip"
6363
],
6464
"console": "integratedTerminal",
6565
"justMyCode": false,
@@ -72,7 +72,6 @@
7272
"name": "Pytest: Debug",
7373
"type": "debugpy",
7474
"request": "launch",
75-
"module": "pytest",
7675
"purpose": ["debug-test"],
7776
"console": "integratedTerminal",
7877
"django": true,

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ release: python ./manage.py migrate
22
# Set `graceful_timeout` to shorter than the 30 second limit imposed by Heroku restarts
33
# Set `timeout` to shorter than the 30 second limit imposed by the Heroku router
44
web: gunicorn --bind 0.0.0.0:$PORT --graceful-timeout 25 --timeout 15 bats_ai.wsgi
5-
worker: REMAP_SIGTERM=SIGQUIT celery --app bats_ai.celery worker --loglevel INFO --without-heartbeat --concurrency 1
5+
worker: REMAP_SIGTERM=SIGQUIT celery --app bats_ai.celery worker --loglevel INFO --without-mingle --without-heartbeat --without-gossip

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@
1414
## Run
1515
Open the **Run and Debug** panel (`Ctrl+Shift+D`) and select a launch configuration:
1616

17-
* **Django: Server** Starts the development server at <http://localhost:8000/>
18-
* **Django: Server (eager Celery)** Same, but Celery tasks run synchronously
17+
* **Django: Server** - Starts the development server at <http://localhost:8000/>
18+
* **Django: Server (eager Celery)** - Same, but Celery tasks run synchronously
1919
in the web process (useful for debugging task code without a worker)
20-
* **Celery: Worker** — Starts only the Celery worker
21-
* **Django + Celery** — Starts both the server and a Celery worker
22-
* **Django: Management Command** — Pick and run any management command
20+
* **Celery: Worker** - Starts only the Celery worker
21+
* **Django: Management Command** - Pick and run any management command
2322
* **Vite: Dev Server** - Starts the frontend development server at <http://localhost:8080/>
24-
* **Django + Celery + Vite** - Starts the server, a Celery worker, and the frontend.
23+
* **Django + Celery + Vite** - Starts the server, a Celery worker, and the frontend
2524

2625
## Test
2726
Run the full test suite from a terminal: `tox`

bats_ai/settings/heroku_production.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@
1616

1717
# Inform rate limiting that "X-Forwarded-For" should be trusted, as it's appended by Heroku.
1818
ALLAUTH_TRUSTED_PROXY_COUNT = 1
19+
20+
# Spectrogram generation takes too much memory for worker parallelism
21+
CELERY_WORKER_CONCURRENCY = 1

client/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Vue Project Template
22

33
This is a project boilerplate template designed for building SPAs that
4-
will serve as front-ends to Girder 4-based servers. The following features
4+
will serve as front-ends to Resonant-based servers. The following features
55
are included:
66

77
- `vuetify` installation and configuration
88
- `axios` installation and configuration
99
- `vue-router` installation and skeleton boilerplate
10-
- Girder 4 OAuth client library installation and configuration
10+
- Resonant OAuth client library installation and configuration
1111
- A home page containing a working OAuth login / logout button
1212
- Sentry integration (if no DSN is provided, this will be inactive)
1313
- TypeScript

dev/native-development.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Runs Python on the host while using Docker Compose for services.
1313
1. Ensure services are running: `docker compose -f ./docker-compose.yml up -d`
1414
1. `source ./dev/export-env.sh`
1515
1. `./manage.py runserver_plus`
16-
1. In a separate terminal: `celery --app bats_ai.celery worker --loglevel INFO --without-heartbeat`
16+
1. In a separate terminal: `celery --app bats_ai.celery worker --loglevel INFO --without-mingle --without-heartbeat --without-gossip`
1717
1. Access http://localhost:8000/
1818

1919
Stop services when done: `docker compose stop`

0 commit comments

Comments
 (0)