Repository navigation
refactor(transform): read only x-glean-release - #192
Merged
travis-hoover-glean merged 1 commit intoNov 30, 2026
Merged
Conversation
The published specs no longer carry x-glean-experimental or x-glean-deprecated, so the transforms stop falling back to them. The generated, modified code sample, and final specs are byte-identical. DEVPLAT-1615
chris-freeman-glean
approved these changes
Nov 30, 2026
chris-freeman-glean
left a comment
Contributor
There was a problem hiding this comment.
No actionable findings. Verified all 142 tests and formatting pass, production specs contain no legacy lifecycle annotations, and all seven source/code-sample transforms produce identical base/head output.
travis-hoover-glean
deleted the
thoov/devplat-1615-remove-old-annotation-fallback
branch
November 30, 2026 21:05
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.
Summary
Makes the open-api transforms read lifecycle stages and deprecations only from
x-glean-release. The published specs no longer carryx-glean-experimentalorx-glean-deprecated, so the fallback to them insrc/release.jsand its callers is dead code.Changes
src/release.jsdrops thex-glean-experimentalandx-glean-deprecatedreaders. Beta, deprecated, and deprecated-enum-value nodes are found only throughx-glean-release.src/source-spec-transformer.jsandsrc/code-sample-transformer.jsstop mentioning the old annotations. The Speakeasy deprecation conversion and the beta SDK opt-in flag readx-glean-releaseonly.Verification
pnpm testandpnpm lintpass.source_specs/atmain,pnpm transform:source_specsandpnpm transform:merged_code_samples_specschange nothing ingenerated_specs/,modified_code_samples_specs/, orfinal_specs/besides the source and open-api commit SHAs.Merge Danger
Door: two-way. Reverting restores the fallback.
Blast Radius: none for the current specs, since none of them carry the old annotations. If an old annotation reached
source_specs/anyway, it would be ignored rather than published as beta or deprecated. askscio/scio'sscio api validaterejects them in every spec it publishes from.Context: DEVPLAT-1615, epic DEVPLAT-1593. The matching developer site change is gleanwork/glean-developer-site#940. The two can merge in either order.