Skip to content

Commit 0ddcc56

Browse files
committed
Fixed test Pixi task collection
1 parent e36cad1 commit 0ddcc56

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

tests/resource.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"id": 1,
3+
"type": "local",
4+
"name": "Local resource",
5+
"timestamp_created": "2025-10-17T07:42:59.824955Z",
6+
"host": null,
7+
"jobs_local_dir": "/tmp/fractal-test-server/data-jobs",
8+
"jobs_runner_config": {},
9+
"jobs_slurm_python_worker": null,
10+
"jobs_poll_interval": 0,
11+
"tasks_local_dir": "/tmp/fractal-test-server/data-tasks",
12+
"tasks_python_config": {
13+
"versions": {
14+
"3.12": "/tmp/fractal-test-server/venv/bin/python"
15+
},
16+
"default_version": "3.12"
17+
},
18+
"tasks_pixi_config": {
19+
"default_version": "0.48.0",
20+
"versions": {
21+
"0.48.0": "/tmp/pixi/0.48.0"
22+
},
23+
"PIXI_CONCURRENT_SOLVES": 4,
24+
"PIXI_CONCURRENT_DOWNLOADS": 4,
25+
"TOKIO_WORKER_THREADS": 2,
26+
"DEFAULT_ENVIRONMENT": "default",
27+
"DEFAULT_PLATFORM": "linux-64"
28+
}
29+
}

tests/start-test-server.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ if [ ! -d "$fractal_server_test_path" ]; then
3232
cp "$(pwd)/lib/fractal-server/config_local.json" "$fractal_server_test_path"
3333
cp "$(pwd)/tests/.fractal_server.env" "$fractal_server_test_path"
3434
cp "$(pwd)/tests/pixi.json" "$fractal_server_test_path"
35+
cp "$(pwd)/tests/resource.json" "$fractal_server_test_path"
3536

3637
if [ "$SKIP_OAUTH_TEST" != "true" ]; then
3738
echo "\nOAUTH_DEXIDP_CLIENT_ID=client_test_web_id" >> "${fractal_server_test_path}/.fractal_server.env"
@@ -47,7 +48,7 @@ if [ ! -d "$fractal_server_test_path" ]; then
4748
. myenv/bin/activate
4849
pip install "$pip_arg"
4950
fractalctl set-db
50-
fractalctl init-db-data --resource default --profile default
51+
fractalctl init-db-data --resource resource.json --profile default
5152
else
5253
cd "$fractal_server_test_path"
5354
. myenv/bin/activate

0 commit comments

Comments
 (0)