Skip to content

Release facts: extract per-release truth from source at each tag - #2

Open
GuanzhouSong wants to merge 1 commit into
upstream-baselinefrom
release-facts-tooling
Open

Release facts: extract per-release truth from source at each tag#2
GuanzhouSong wants to merge 1 commit into
upstream-baselinefrom
release-facts-tooling

Conversation

@GuanzhouSong

Copy link
Copy Markdown
Owner

What

Adds scripts/extract_release_facts.py and scripts/diff_release_facts.py, plus generated fact inventories for v0.112-0 through v0.114-0 (release-facts/*.yml) and release deltas (release-facts/deltas/*.md).

Why

CHANGELOG.md tracks internal release trains and is amended after tags are cut, so it cannot drive docs updates. These scripts parse the machine-readable surfaces of the documentdb source at any git ref — GUC registrations, the gateway command dispatch table, aggregation stage/operator tables, gateway env vars, *--latest.sql UDFs — and emit one YAML inventory per release. Diffing two inventories yields the true release delta.

Proof of value: the v0.114-0 delta surfaces six GUC default flips, of which the changelog recorded one.

Review notes

  • The ~10k added lines are generated YAML; the reviewable surface is the two scripts (~500 lines) and release-facts/README.md (rationale, usage, known limitations).
  • Requires only Python 3.10+ and PyYAML; reads the source repo via git archive without touching its working tree.

Part 1 of 3 — design doc: #1

🤖 Generated with Claude Code

https://claude.ai/code/session_017M2Wqc6hMjT2AZQ3ULi5wa

Derive per-release facts (GUCs with defaults, gateway commands, aggregation
stages, expression operators, gateway env vars, SQL functions) directly from
the documentdb source at each git tag, since CHANGELOG.md tracks internal
release trains and does not reliably reflect tag contents.

Includes generated deltas for v0.113-0 and v0.114-0; the v0.114-0 delta
surfaces six GUC default flips of which the changelog recorded only one.
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.

1 participant