Skip to content

chore: require servicekit 2.0.2 and use the public JobOptions - #98

Merged
mortenoh merged 1 commit into
mainfrom
chore/servicekit-2.0.2
Sep 6, 2026
Merged

mortenoh merged 1 commit into
mainfrom
chore/servicekit-2.0.2

Conversation

@mortenoh

@mortenoh mortenoh commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Bumps the servicekit constraint to servicekit>=2.0.2,<3 and refreshes the lockfile (resolves 2.0.2).

Switches the _create_scheduler override in ServiceBuilder from the private _JobOptions import to the public JobOptions that servicekit 2.0.1 exports for exactly this hook.

Behavior picked up from servicekit 2.0.1 and 2.0.2 without chapkit code changes: constraint violations on create (for example an unknown artifact parent_id) now return a 409 with the detail Entity violates a database constraint instead of a misleading duplicate-id message, and request validation failures (malformed body, out-of-range page or size) are RFC 9457 Problem Details with the error list under errors. The artifact guide already describes the 2.0.1 wording.

Test plan

  • make lint clean (ruff, mypy, pyright).
  • make test: 861 passed, 3 skipped, 13 deselected against servicekit 2.0.2.
  • CI runs the slow Docker scaffolding suite as well.

servicekit 2.0.1 exported JobOptions as the public type for the
_create_scheduler hook, and 2.0.2 routes FastAPI request validation
errors through the Problem Details handler. Pin servicekit>=2.0.2,<3,
refresh the lockfile, and drop the private _JobOptions import.
@codecov

codecov Bot commented Sep 6, 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 5836c04 into main Sep 6, 2026
5 checks passed
@mortenoh
mortenoh deleted the chore/servicekit-2.0.2 branch September 6, 2026 18:23
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