• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

SwissDataScienceCenter / renku-data-services / 31794430062
86%

Build:
DEFAULT BRANCH: main
Ran 14 Aug 2026 11:09AM UTC
Jobs 2
Files 392
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Aug 2026 10:59AM UTC coverage: 85.754% (-0.01%) from 85.767%
31794430062

push

github

web-flow
feat: update apispec for polymorphic resource class definition (#1388)

## Summary

Adds an optional FirecREST `remote` override to resource classes so that a single FirecREST resource
pool can hold classes targeting different Slurm `system_name`/`partition` combinations, and can choose
whether Amalthea forwards the class CPU, memory, and GPU to FirecREST or lets the HPC grid pick them.
A resource class inherits the kind of its parent pool.

## Motivation and context

We originally targeted only CSCS, where the smallest allocation is a full node, so it was enough to let
Slurm set the defaults for `CPUS_PER_TASK`, `GPUS`, and `RAM`. As we expand to other grids (Idiap) we
need to tell Amalthea exactly how much of a node to request, and we want a single resource pool to
support multiple class-level target configurations rather than forcing one pool per Slurm target.

## Behavior

- Resource classes gain an optional `remote: RemoteClassConfigurationFirecrest`. It is only allowed when
  the parent pool's remote kind is `firecrest`; supplying it on a non-FirecREST class is rejected. A
  class's remote kind is its parent pool's remote kind.
- FirecREST classes support per-class `system_name` and `partition` overrides, falling back to the pool
  defaults when omitted. This lets one pool hold multiple classes targeting different Slurm systems or
  partitions.
- FirecREST classes expose `forward_resource_values` (boolean, default `false`). When `false` (the
  default) the HPC grid selects CPU, memory, and GPU, and the class values are used only for display and
  quota matching. When `true`, Amalthea forwards the CRD CPU, memory, and GPU values to FirecREST.
- FirecREST classes require an integer `cpu` value; fractional CPU is rejected by the validators.
- On session launch for a FirecREST pool, the service emits `RSC_FIRECREST_SYSTEM_NAME`,
  `RSC_FIRECREST_FORWARD_RESOURCE_VALUES` (always emitted, as `"true"`/`"false"`), and
  `RSC_FIRECREST_PARTITION` when a ... (continued)

131 of 140 new or added lines in 8 files covered. (93.57%)

28 existing lines in 8 files now uncovered.

27797 of 32415 relevant lines covered (85.75%)

1.48 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
86.14
-0.21% components/renku_data_services/crc/db.py
3
79.94
-0.27% components/renku_data_services/crc/core.py
1
93.71
-0.02% components/renku_data_services/crc/models.py
1
68.02
0.59% components/renku_data_services/notebooks/core_sessions.py

Coverage Regressions

Lines Coverage ∆ File
14
79.94
-0.27% components/renku_data_services/crc/core.py
4
78.95
-1.75% components/renku_data_services/k8s/watcher/core.py
4
91.04
-5.97% components/renku_data_services/k8s/db.py
2
26.92
-2.56% components/renku_data_services/capacity_reservation/core.py
1
86.14
-0.21% components/renku_data_services/crc/db.py
1
90.72
-1.03% components/renku_data_services/base_api/error_handler.py
1
88.16
-1.32% components/renku_data_services/base_api/pagination.py
1
50.0
-0.83% components/renku_data_services/resource_usage/core.py
Jobs
ID Job ID Ran Files Coverage
1 run-main-tests - 31794430062.1 14 Aug 2026 11:32AM UTC 392
84.92
GitHub Action Run
2 run-schemathesis-tests - 31794430062.2 14 Aug 2026 11:09AM UTC 392
63.44
GitHub Action Run
Source Files on build 31794430062
  • Tree
  • List 392
  • Changed 21
  • Source Changed 7
  • Coverage Changed 21
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #31794430062
  • 46eb3617 on github
  • Prev Build on v0.82.0 (#31778784339)
  • Next Build on main (#32272133505)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc