Skip to content

chore: require servicekit 2.0.3 - #125

Merged
mortenoh merged 1 commit into
mainfrom
chore/servicekit-2.0.3
Sep 30, 2026
Merged

mortenoh merged 1 commit into
mainfrom
chore/servicekit-2.0.3

Conversation

@mortenoh

Copy link
Copy Markdown
Contributor

Pin servicekit>=2.0.3,<3 and refresh the lockfile.

servicekit 2.0.3 fixes CLIM-1248: registration probed 127.0.0.1:<SERVICEKIT_PORT> for readiness, so a model image published on another host port (for example -p 18701:8000 with SERVICEKIT_PORT=18701, needed when the orchestrator runs on the Docker host) never became ready and skipped registration. The probe now targets the local bind port (PORT, the advertised port, then 8000) and only accepts its own app, while SERVICEKIT_PORT stays the advertised port.

No chapkit code changes are needed: the generated Dockerfiles start uvicorn main:app --port 8000 without setting PORT, which 2.0.3 now finds via the 8000 fallback, and chapkit run goes through run_app, which now exports its bind port as PORT.

Release notes: https://github.com/dhis2-chap/servicekit/releases/tag/v2.0.3

make lint and make test pass (943 passed, 3 skipped).

servicekit 2.0.3 probes the local bind port for registration readiness separately from the advertised SERVICEKIT_PORT (CLIM-1248), so model images started with uvicorn --port 8000 and published on another host port register again. Pin servicekit>=2.0.3,<3 and refresh the lockfile.
@codecov

codecov Bot commented Sep 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@mortenoh
mortenoh merged commit ba22d5d into main Sep 30, 2026
5 checks passed
@mortenoh
mortenoh deleted the chore/servicekit-2.0.3 branch September 30, 2026 12:45
@mortenoh mortenoh mentioned this pull request Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant