Skip to content

fix: Go SDK validation uses the fresh FOAS instead of the stale committed spec - #1474

Merged
oarbusi merged 1 commit into
mainfrom
agentrr/validate-foas-go-sdk
Sep 4, 2026
Merged

fix: Go SDK validation uses the fresh FOAS instead of the stale committed spec#1474
oarbusi merged 1 commit into
mainfrom
agentrr/validate-foas-go-sdk

Conversation

@oarbusi

@oarbusi oarbusi commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Issue

The "Validate the FOAS can be used with the Go SDK" step copies the freshly built openapi-foas.yaml to atlas-sdk-go/openapi/atlas-sdk.yaml and runs make -e openapi-pipeline, but never exports OPENAPI_FILE_NAME. The SDK's tools/scripts/generate.sh falls back to its default atlas-api.yaml (see https://github.com/mongodb/atlas-sdk-go/blob/897c05e3381d7f0158ca3c7825c7835fbde8d8fe/tools/scripts/generate.sh#L14), so the pipeline transforms and validates the stale spec committed in the SDK repo, and the fresh FOAS is never read. This required check therefore passes even when the new spec would break SDK generation (false-pass gate).

Confirmed in CI logs (e.g. run https://github.com/mongodb/openapi/actions/runs/33871860221): the step prints Running transformation based on atlas-api.yaml and its env contains no OPENAPI_FILE_NAME.

Fix

Export OPENAPI_FILE_NAME="atlas-sdk.yaml" in the step

Verification

A Release Runner run on this branch should show Running transformation based on atlas-sdk.yaml in the "Run Required Validations" job log.

@oarbusi
oarbusi marked this pull request as ready for review September 4, 2026 14:00
@oarbusi
oarbusi requested a review from a team as a code owner September 4, 2026 14:00

@maks-m-mongo-leaf maks-m-mongo-leaf left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@oarbusi
oarbusi merged commit 0f3a3aa into main Sep 4, 2026
7 checks passed
@oarbusi
oarbusi deleted the agentrr/validate-foas-go-sdk branch September 4, 2026 14:28
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.

3 participants