Add OpenAPI smoke tests to PR verification - #48
Closed
christianhelle with Copilot wants to merge 8 commits into
Closed
Add OpenAPI smoke tests to PR verification#48christianhelle with Copilot wants to merge 8 commits into
christianhelle with Copilot wants to merge 8 commits into
Conversation
Agent-Logs-Url: https://github.com/christianhelle/openapi2zig/sessions/a6efb0d4-81d7-415c-be7d-1f32a3f0c357 Co-authored-by: christianhelle <710400+christianhelle@users.noreply.github.com>
Agent-Logs-Url: https://github.com/christianhelle/openapi2zig/sessions/a6efb0d4-81d7-415c-be7d-1f32a3f0c357 Co-authored-by: christianhelle <710400+christianhelle@users.noreply.github.com>
Agent-Logs-Url: https://github.com/christianhelle/openapi2zig/sessions/a6efb0d4-81d7-415c-be7d-1f32a3f0c357 Co-authored-by: christianhelle <710400+christianhelle@users.noreply.github.com>
Agent-Logs-Url: https://github.com/christianhelle/openapi2zig/sessions/a6efb0d4-81d7-415c-be7d-1f32a3f0c357 Co-authored-by: christianhelle <710400+christianhelle@users.noreply.github.com>
Agent-Logs-Url: https://github.com/christianhelle/openapi2zig/sessions/a6efb0d4-81d7-415c-be7d-1f32a3f0c357 Co-authored-by: christianhelle <710400+christianhelle@users.noreply.github.com>
Agent-Logs-Url: https://github.com/christianhelle/openapi2zig/sessions/a6efb0d4-81d7-415c-be7d-1f32a3f0c357 Co-authored-by: christianhelle <710400+christianhelle@users.noreply.github.com>
Agent-Logs-Url: https://github.com/christianhelle/openapi2zig/sessions/a6efb0d4-81d7-415c-be7d-1f32a3f0c357 Co-authored-by: christianhelle <710400+christianhelle@users.noreply.github.com>
Agent-Logs-Url: https://github.com/christianhelle/openapi2zig/sessions/a6efb0d4-81d7-415c-be7d-1f32a3f0c357 Co-authored-by: christianhelle <710400+christianhelle@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
christianhelle
April 30, 2026 16:47
View session
christianhelle
marked this pull request as ready for review
April 30, 2026 16:47
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a PowerShell-based smoke test suite to CI so PRs validate that all example OpenAPI/Swagger JSON specs under openapi/ can (1) generate Zig client code via openapi2zig and (2) successfully compile via a small Zig test harness.
Changes:
- Added
test/smoke-tests.ps1to generate and compile a client per spec with per-spec output directories and logging. - Updated CI smoke-test job to run the PowerShell smoke suite with a 15-minute step timeout.
- Documented the smoke test command and intent in
README.md.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
test/smoke-tests.ps1 |
Implements per-spec generation + compilation smoke coverage, with JSON-only default and optional YAML inclusion. |
README.md |
Documents the new smoke test script, what it checks, and expected runtime characteristics. |
.github/workflows/ci.yml |
Replaces the previous sample generation step with the new smoke test step (pwsh) and adds a timeout. |
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 smoke coverage for generated Zig clients so PRs verify that OpenAPI examples under
openapi/can generate code and that the generated code compiles. The suite runs specs one at a time with per-spec output to make failing inputs easy to identify.Smoke test script
test/smoke-tests.ps1.openapi2zigunless-UseInstalledis provided.openapi/, excludingopenapi/json-schema..zig-cache/smoke-tests/...folder.-IncludeYamlis available for future coverage.CI integration
Documentation
README.md.