Skip to content

Extract the provision-meos derivation recipe into a script - #76

Merged
estebanzimanyi merged 1 commit into
MobilityDB:masterfrom
estebanzimanyi:tooling/extract-provision-meos-script
Jul 28, 2026
Merged

Extract the provision-meos derivation recipe into a script#76
estebanzimanyi merged 1 commit into
MobilityDB:masterfrom
estebanzimanyi:tooling/extract-provision-meos-script

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

What

tools/provision-meos.sh is the libmeos-build + catalog-parse recipe — configure, build, install, parse — in one committed script, and the provision-meos composite action calls it.

Why

One runnable definition of the derivation serves both CI and a developer refreshing the chain by hand, so the two cannot drift. The prose "regenerate by hand" steps in GENERATION.md point at the script rather than restating the commands.

Interface

  • tools/provision-meos.sh --mdb-src <checkout> [--build-libmeos] [--families …] [--parse-prefix …] [--runtime-prefix …] prints catalog-path= / libmeos-prefix= and appends them to $GITHUB_OUTPUT when set. --help documents every option.
  • The action keeps the runner bootstrapping around the script: checkout, Python, and the apt packages. Its two catalog steps and the libmeos-build step are calls to the script.

Behaviour

  • The catalog-only path parses the source-tree headers. The build path builds all-families libmeos, installs it under /usr/local, and parses the clean staged installed headers.
  • The catalog-path and libmeos-prefix outputs are the same values, so every consumer that reads them is unaffected.
  • pytest.yml dogfoods the build-libmeos: true path end to end.

…s.sh

The libmeos build and catalog parse lived inline in the provision-meos
composite action, and were transcribed again as prose into every
GENERATION.md "regenerate by hand" section, so the CI path and the by-hand
path could drift.

Move that recipe (configure, build, install, parse) into
tools/provision-meos.sh and have the action call it, so there is one
definition instead of several: a developer refreshing the chain runs the
same script CI does. The action keeps only the runner bootstrapping around
it (checkout, Python, apt). Behaviour is unchanged.
@estebanzimanyi
estebanzimanyi merged commit e0e8c79 into MobilityDB:master Jul 28, 2026
1 check passed
@estebanzimanyi
estebanzimanyi deleted the tooling/extract-provision-meos-script branch July 28, 2026 22:21
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