Skip to content

Spec: Regenerate the bundled spec and restore its license header - #5559

Merged
dimas-b merged 1 commit into
apache:mainfrom
flyingImer:spec/bundle-header-and-script
Sep 24, 2026
Merged

dimas-b merged 1 commit into
apache:mainfrom
flyingImer:spec/bundle-header-and-script

Conversation

@flyingImer

@flyingImer flyingImer commented Sep 20, 2026 •

Copy link
Copy Markdown
Collaborator

Why

The generated bundle has drifted from its sources twice, both times because a manual step did not happen.
spec/README.md asks for the ASF license header to be put back after every bundle, because redocly drops it
along with every other comment. It was lost in the 2025-05-30 regeneration and none of the seven later
changes restored it. The semantic-model API reached the source specs on 2026-07-01 and never reached the
bundle: the two changes to the bundle since were one line each, so it sits 367 lines behind its own sources.
Nothing catches either problem: RAT reads the OpenAPI info.license.url field inside the generated file as an
Apache license, so the license check stays green on a file with no header, and nothing compares the bundle
against its sources.

What

spec/bundle.sh bundles, then restores the header it extracts from spec/polaris-catalog-service.yaml rather
than keeping a copy of it. make spec-bundle wraps the script, and the README points at the target. The
committed bundle is the script's own output: run make spec-bundle here and git diff comes back empty.

Regenerating needed one more fix. In 53 places a JSON-style value closed its brace or bracket at the same
indentation as its own key, which redocly stopped accepting in 2.40.0, so no current version could parse the
sources at all. Those 53 lines are reindented by one space. The change is whitespace only. Of the 53, 42 are in
the vendored Iceberg spec.

Checklist

  • 🛡️ Don't disclose security issues! (contact [email protected])
  • 🔗 Clearly explained why the changes are needed, or linked related issues: Fixes #
  • 🧪 Added/updated tests with good coverage, or manually tested (and explained how)
  • 💡 Added comments for complex logic
  • 🧾 Updated CHANGELOG.md (if needed)
  • 📚 Updated documentation in site/content/in-dev/unreleased (if needed)

The generated bundle drifted from its sources twice, both times because a
manual step did not happen. The ASF license header, which redocly drops with
every other comment, was lost in the 2025-05-30 regeneration and none of the
seven later changes to the file put it back. The semantic-model API reached
the source specs on 2026-07-01 and never reached the bundle: the two changes
to it since were one line each, so the bundle is 367 lines behind.

spec/bundle.sh regenerates the bundle and restores the header it extracts
from the source spec, and make spec-bundle wraps it. spec/README.md points
at the target instead of asking for the header to be pasted back by hand.

Regenerating needed one more thing. In 53 places a JSON-style value closed
its brace or bracket at the same indentation as its own key, which redocly
stopped accepting in 2.40.0, so any current version refused to parse the
sources. Those 53 lines are reindented by one space here. The change is
whitespace only, and 1.34.3, 2.0.0 and the current 2.52.1 all bundle these
sources to the same bytes as the committed file.
@flyingImer
flyingImer force-pushed the spec/bundle-header-and-script branch from 6f08301 to 6435cd4 Compare September 20, 2026 18:25
@flyingImer
flyingImer marked this pull request as ready for review September 20, 2026 18:45

@flyrain flyrain left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1 Thanks @flyingImer !

@github-project-automation github-project-automation Bot moved this from PRs In Progress to Ready to merge in Basic Kanban Board Sep 23, 2026
@flyrain
flyrain requested review from adutra and jbonofre September 24, 2026 16:31

@dimas-b dimas-b left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice catch, @flyingImer 👍

@dimas-b
dimas-b merged commit f2a5494 into apache:main Sep 24, 2026
24 checks passed
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.

4 participants