Skip to content

ci(changelog): entries are fragments under changelog.d/ that a release assembles (#938) - #940

Merged
DrunkOnJava merged 3 commits into
mainfrom
ci/changelog-fragments
Oct 24, 2026
Merged

DrunkOnJava merged 3 commits into
mainfrom
ci/changelog-fragments

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

Changelog entries become fragments, one file per pull request at changelog.d/<section>/<name>.md, and a release assembles them into CHANGELOG.md (tools/release/changelog.py assemble). CI checks every fragment (tools/release/changelog.py check). Closes #938.

Motivation

Every pull request added its entry at the top of the same [Unreleased] section, so each landing left every other open pull request in conflict with main on CHANGELOG.md. The queue then skipped them as DIRTY until someone merged main into each one by hand. On 2026-10-24 that happened after every landing:

The merge=union driver that resolves such conflicts is in a maintainer's own git configuration, not this repository, and GitHub's merge never applied it. Nor does union merging keep the blank line between two entries.

A fragment is a file of its own, so two pull requests never touch the same lines, and GitHub's update-branch, which the queue uses, merges them cleanly.

Changes

  • tools/release/changelog.py (stdlib only):
    • check fails on a fragment outside a known section (added, changed, fixed, removed, security, research), an empty one, or one whose first line does not start an item (- **);
    • assemble puts each fragment at the top of its section under [Unreleased], making the heading in Keep a Changelog order where it is missing, one blank line apart, in name order, and deletes the fragments.
  • changelog.d/README.md: the format. changelog.d/changed/changelog-fragments.md: this PR's own entry.
  • .github/workflows/ci.yml: the check step, beside the conflict-marker guard.
  • RELEASE.md step 5 runs assemble first.
  • CONTRIBUTING.md, docs/maintaining.md and the PR template point at changelog.d/.
  • CHANGELOG.md's preamble says unreleased changes are also in changelog.d/.

This PR leaves the existing [Unreleased] entries where they are. The open pull requests' entries move into fragments in those pull requests, each with one last merge of main.

Testing

I ran the tool on a scratch copy of main's CHANGELOG.md:

  • check with three fragments: changelog.d: 3 fragment(s), each in a section and starting an item;
  • assemble put two added fragments at the top of ### Added, in name order with a blank line between, and made ### Security between ### Removed and ### Research; it deleted the three fragments and left README.md;
  • check on a fragment that does not start an item, and on one in an unknown directory: both reported, exit 1;
  • on this branch, check passes on its one fragment, and tools/ci/api-doc-ids.py and the YAML parse pass.

Audit-honesty checklist

  • README / docs reflect the current state after this PR
  • Commit messages describe WHAT changed and WHY
  • No emojis in code, docs, or commit messages
  • No private paths, personal email addresses, or internal jargon in committed files

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0 (see CONTRIBUTING.md)
  • This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (see CLEANROOM.md)

Breaking changes

None for users. Contributors write their entry under changelog.d/ from now on.

…e assembles, so landing one pull request no longer puts the others in conflict (#938)
@DrunkOnJava
DrunkOnJava merged commit 0a9a3e2 into main Oct 24, 2026
29 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/changelog-fragments branch October 24, 2026 19:33
@DrunkOnJava DrunkOnJava mentioned this pull request Oct 24, 2026
10 of 12 tasks
DrunkOnJava added a commit that referenced this pull request Oct 24, 2026
## Summary

Prepares v0.7.0 (RELEASE.md steps 4 to 8): the version files, the
`[0.7.0]` changelog section assembled from `changelog.d/`, the README's
release section, and corrections to the status docs where they still
described the state before RE-212 or before the BIM4LCA office was
measured. Merging this is not the release; the signed tag on its squash
commit is.

## Motivation

Griffin's go-ahead (2026-10-24, about 3:00 PM): tag v0.7.0 once #887,
#930, #935, #940, #942 and #943 are on main with CI green. All six have
landed, the last at b04c0cb (#930). #934 (`--revit-property-sets`,
breaking) and #923 (the `ElementId` newtype, breaking) go in the next
release.

## Changes

- **Version files** (0.6.1 to 0.7.0): `Cargo.toml`, `rvt-py/Cargo.toml`
(and its `=0.7.0` pin on `rvt`), `rvt-wasm/Cargo.toml`, the `rvt` pin in
`tools/stream_evidence/Cargo.toml`, `viewer/package.json`,
`CITATION.cff` (`date-released: 2026-10-24`),
`.release-please-manifest.json`, and the workspace crates' entries in
`Cargo.lock` and `fuzz/Cargo.lock`.
- **`CHANGELOG.md`**: `python3 tools/release/changelog.py assemble`
moved the nine fragments in, then `[Unreleased]` became `[0.7.0] —
2026-10-24`, with an introduction, credits to puzzbobb (#870, #886,
#887, #935) and n3ur0m4n (#882), and "Upgrading from 0.6": the research
readers behind `unstable-research`, the `#[non_exhaustive]` types, the
error variants (and Python's `ValueError`), `SimpleDecoder`, the
property set builders' `Vec`, the removed `ifc::pset_validate`, the
element walk failing closed, and changed exports. Headings in the
assembler's order (Added, Changed, Fixed, Removed, Research), one each.
`[Unreleased]` is left empty.
- **Entries corrected for the release as a whole**: #847's pipe-port
entry said In ports' axes were wrong because their flow direction was
not read, and that other family-instance ports had no placement; RE-212
and #943 changed both, and it now gives main's counts (Measure
40126110706, base side: 124 of 124 and 62 of 62 with Revit's axis;
joined ports 108 and 53 as Revit's, 10 and 6 opposite). The
unjoined-ports entry says Revit 2025 in its headline. RE-215's entry
adds the office.
- **`README.md`**: "Release 0.7.0 and main", what 0.7.0 adds in brief.
The 0.6.1 section listed RE-215 under 0.6.0's additions; it shipped in
neither.
- **`docs/support-matrix.json`**:
- `native-symbol-cut-sizes`: the BIM4LCA office's result, and
`user_impact` limited to families whose symbol cuts an outline;
- `element-record-mep-connections`: still said HVAC and piping
directions, names and descriptions are not read and In ports' axes are
reversed; it now states RE-212 (direction, `InPort_`/`OutPort_` names,
`Flow` descriptions, axes), keeps SystemType and the electrical
description as unread, and lists RE-212's probe, scorer, test and report
as evidence.
- **`docs/status.md`** and
**`reports/element-framing/RE-215-symbol-cut-loops.md`**: the office,
which §6 called NOT MEASURED, as measured on 2026-10-24 (Measure
40121636312 and 40122363218): 187 of its 269 doors cut an outline and
have Revit's sizes; its 269 windows and other 82 doors are drawn by
symbols with no cut loop (#810).

## Testing

Unit tests are banned in this repository: do not add them. Show the
change working end to end on real files instead.

- [ ] `tools/check-local.sh` passes: this PR's CI. No code changes; the
version string changes the IFC header.
- [x] Verified end to end on real Revit files: no behaviour changes; the
measurements cited are the runs named above.
- [ ] If this touches the IFC exporter: the IFC header carries the
version (#417), so both Core Interior `rvt-rs.json` observations and
their verdicts are refreshed from this PR's CI run (its
`octetproof-core-interior` artifact) in a follow-up commit here,
differing only in `witness_version` and the verdict hashes.
- N/A: performance.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR
- [x] The changelog section is assembled from the fragments;
`changelog.py check` passes with none left
- [x] Resolved limitations updated (RE-212's in the support matrix, the
office's NOT MEASURED)
- N/A: no new limitation
- [x] Commit messages describe what changed and why
- [x] No emojis in code, docs, or commit messages
- [x] No private paths, personal email addresses, or internal jargon in
committed files
- N/A: not a reverse-engineering finding

## Legal and contribution hygiene

- [x] Apache-2.0
- [x] No Autodesk proprietary content
- [x] No fixtures

## Breaking changes

The release's, listed under "Upgrading from 0.6" in `CHANGELOG.md`. This
PR itself changes no API.

## Screenshots or output samples

N/A: the IFC changes only in its header's version.
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
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.

Changelog fragments: every landing puts the other open PRs' changelog entries in conflict with main

1 participant