Skip to content

Derive the validated OpenAPI catalog through provision-meos.sh - #227

Closed
estebanzimanyi wants to merge 1 commit into
MobilityDB:masterfrom
estebanzimanyi:ci/openapi-provision
Closed

estebanzimanyi wants to merge 1 commit into
MobilityDB:masterfrom
estebanzimanyi:ci/openapi-provision

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

openapi-validate.yml regenerates the catalog with tools/provision-meos.sh over the
MobilityDB checkout, which runs run.py with MDB_SRC_ROOT naming it, so the @InGroup groups
that make a function public are attached and the exposable functions are projected. The
workflow refuses a document with no path, and a change to provision-meos.sh runs it.

Why: IO-B1 of IO-PLAN.md in MobilityDB #2861. run.py reads the groups from MDB_SRC_ROOT,
else from ./_mobilitydb; the workflow set neither, so every function read internal and
run 41207016338 published a valid document of 0 paths ("Done: 6073 functions (0
stateless-exposable)", "0 paths, 0 schemas").

Measured: over MobilityDB master 1ff2270f7f, run.py over the source headers without
MDB_SRC_ROOT states all 6077 functions internal, 0 exposable, and generate_openapi.py
projects 0 paths; through provision-meos.sh the catalog states 3606 exposable functions
and the document, valid OpenAPI 3.1, 3606 paths and 35 schemas. The check refuses the
document of 0 paths.

openapi-validate.yml regenerates the catalog with tools/provision-meos.sh over the
MobilityDB checkout, which runs run.py with MDB_SRC_ROOT naming it, so the @InGroup groups
that make a function public are attached and the exposable functions are projected. The
workflow refuses a document with no path, and a change to provision-meos.sh runs it.

Why: IO-B1 of IO-PLAN.md in MobilityDB #2861. run.py reads the groups from MDB_SRC_ROOT,
else from ./_mobilitydb; the workflow set neither, so every function read internal and
run 41207016338 published a valid document of 0 paths ("Done: 6073 functions (0
stateless-exposable)", "0 paths, 0 schemas").

Measured: over MobilityDB master 1ff2270f7f, run.py over the source headers without
MDB_SRC_ROOT states all 6077 functions internal, 0 exposable, and generate_openapi.py
projects 0 paths; through provision-meos.sh the catalog states 3606 exposable functions
and the document, valid OpenAPI 3.1, 3606 paths and 35 schemas. The check refuses the
document of 0 paths.
@estebanzimanyi
estebanzimanyi deleted the ci/openapi-provision branch October 31, 2026 19:04
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