ci(openapi): add an openapi-validate workflow#12
Merged
Conversation
65b79bb to
b2fd812
Compare
fc1c600 to
185b201
Compare
b2fd812 to
85aeb83
Compare
185b201 to
675e4fa
Compare
85aeb83 to
6a68a21
Compare
Runs the full regenerate path on every PR touching the parser, generator, meta files, or generate_openapi.py: - libclang sysroot install (matches MobilityAPI vendor-drift) - clone MobilityDB master for MEOS headers - run.py + generate_openapi.py - openapi-spec-validator against OpenAPI 3.1 - upload meos-openapi.json as an artefact Catches OpenAPI 3.1 violations the moment a generator change introduces them, instead of letting downstream consumers (MobilityAPI vendor-drift, PyMEOS-CFFI codegen, MobilityDuck binding generator) discover them later. Named as a 'natural follow-up' in PR #5's body.
6a68a21 to
ae11803
Compare
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.
Adds a CI gate that runs the full regenerate path on every PR touching the parser, generator, meta files, or
generate_openapi.py, and validates the producedoutput/meos-openapi.jsonagainst the OpenAPI 3.1 specification withopenapi-spec-validator.Trigger
parser/**,generator/**,meta/**,generate_openapi.py,run.py,requirements.txt, or the workflow itself.master(post-merge sanity).workflow_dispatch.Behaviour
The workflow installs the libclang sysroot dev-header set that MEOS depends on (so types like
size_t,json_object *,GSERIALIZED *resolve to their real names instead of degrading toint), clones MobilityDB master for the MEOS headers, runsrun.pythengenerate_openapi.py, and validates the projection against the OpenAPI 3.1 spec — failing the build if the document does not conform.The generated
meos-openapi.jsonis uploaded as a workflow artefact so a downstream consumer can pin to a specific build without re-running the generator.