Skip to content

refactor: extract reusable Prefect+OSW utils from examples#115

Merged
simontaurus merged 3 commits intomainfrom
dev
Apr 29, 2026
Merged

refactor: extract reusable Prefect+OSW utils from examples#115
simontaurus merged 3 commits intomainfrom
dev

Conversation

@simontaurus
Copy link
Copy Markdown
Contributor

  • Add ConnectionSettings, connect(), WorkflowRequest, and register_flow() to osw.utils.workflow for reuse across Prefect workflows
  • register_flow() creates Software + PrefectFlow entities on OSW, cleans up stale deployments, and writes usage snippet to wiki page
  • Integrate OSW registration into deploy() via optional osw parameter
  • Simplify hello_world.py to use workflow utils instead of inline code
  • Add opensemantic.base to dependencies

- Add ConnectionSettings, connect(), WorkflowRequest, and register_flow()
  to osw.utils.workflow for reuse across Prefect workflows
- register_flow() creates Software + PrefectFlow entities on OSW,
  cleans up stale deployments, and writes usage snippet to wiki page
- Integrate OSW registration into deploy() via optional osw parameter
- Simplify hello_world.py to use workflow utils instead of inline code
- Add opensemantic.base to dependencies
@coveralls
Copy link
Copy Markdown

coveralls commented Apr 29, 2026

Coverage Report for CI Build 25096754496

Coverage decreased (-0.5%) to 52.582%

Details

  • Coverage decreased (-0.5%) from the base build.
  • Patch coverage: 74 uncovered changes across 2 files (36 of 110 lines covered, 32.73%).
  • 1 coverage regression across 1 file.

Uncovered Changes

File Changed Covered %
src/osw/utils/workflow.py 106 33 31.13%
src/osw/core.py 3 2 66.67%

Coverage Regressions

1 previously-covered line in 1 file lost coverage.

File Lines Losing Coverage Coverage
src/osw/wiki_tools.py 1 25.86%

Coverage Stats

Coverage Status
Relevant Lines: 5888
Covered Lines: 3298
Line Coverage: 56.01%
Relevant Branches: 1276
Covered Branches: 469
Branch Coverage: 36.76%
Branches in Coverage %: Yes
Coverage Strength: 3.31 hits per line

💛 - Coveralls

@simontaurus simontaurus merged commit c2a3557 into main Apr 29, 2026
9 checks passed
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.

2 participants