Migrate Jenkinsfile.monarch-ci from Poetry to uv#198
Merged
Conversation
Master is now a uv project (PR #197) but Jenkinsfile.monarch-ci still ran `poetry install`, which fails: Because kg-phenio depends on kozahub-metadata-schema (*) which doesn't match any versions, version solving failed. Same migration as the other Jenkinsfile and qc.yml: install uv, replace poetry install with `uv sync`, and `poetry run python3 X` with `uv run python X`. Drop /opt/poetry/bin from PATH; put the workspace's ~/.local/bin on PATH instead so subsequent stages can call uv. Also brings this pipeline up to par with the other Jenkinsfile in release-metadata terms: - New Metadata stage between Merge and Publish that emits output/release-metadata.yaml. - The release asset list now includes release-metadata.yaml so the GitHub release exposes the build receipt to monarch-ingest.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Master is now a uv project (after #197) but `Jenkinsfile.monarch-ci` still ran `poetry install` and was failing on the kozahub-metadata-schema git dep:
```
Because kg-phenio depends on kozahub-metadata-schema (*) which doesn't
match any versions, version solving failed.
```
Same migration as the other Jenkinsfile and qc.yml: install uv at the start of Build, replace `poetry install` with `uv sync`, and `poetry run python3 X` with `uv run python X`. Drop `/opt/poetry/bin` from PATH; put the workspace's `~/.local/bin` on PATH instead so subsequent stages can call uv.
Also brings this pipeline up to par with the other Jenkinsfile in release-metadata terms: