Title: Write the interface changelog in the release flow (S-017-15) by shipmill-romamo[bot] · Pull Request #384 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: Write the interface changelog in the release flow (S-017-15) by shipmill-romamo[bot] · Pull Request #384 · cloudfall-dev/cloudfall
X Title: Write the interface changelog in the release flow (S-017-15) by shipmill-romamo[bot] · Pull Request #384 · cloudfall-dev/cloudfall
Description: Summary
The release bot never ran treaty changelog-add, so sdk/src/cloudfall/schema-changelog.json never existed and cloudfall changelog (which every generated AGENTS.md tells agents to read) had no entries. This adds the step to the release flow, as spec 017 recommends (open question 5, design (a)):
.github/shipmill.toml: after_stamp now runs uv run --frozen --no-dev treaty changelog-add cloudfall.app:app after uv lock --check. shipmill's prepare commits the stamped checkout with git add -A (shipmill/land.py, prepare(), the same in v0.135.0, which release.yml pins, and v0.141.0), so the changelog and its manifest snapshot sdk/src/cloudfall/cloudfall.manifest.json go into the release commit. Neither file is git-ignored, and both sit inside the sdk/src/cloudfall wheel package, so the wheel carries them. The publish.yml fallback isn't needed
CONTRIBUTING.md: the Releases section describes the bot's step and names no manual step
changelog.d/378-interface-changelog.md: an Added fragment
changelog-add is a no-op (exit 0) when the manifest's etag matches the newest entry, and exits non-zero only on a real error (the app can't be imported, or the changelog is malformed), which stops the release with treaty's message.
Plan
Serves: G-4
Files: .github/shipmill.toml, CONTRIBUTING.md, changelog.d/378-interface-changelog.md, sdk/tests/test_interface_changelog.py
Order: confirm in shipmill's source that prepare commits what after_stamp changes; run treaty changelog-add cloudfall.app:app once in a scratch copy stamped as a release, build its wheel and read cloudfall changelog from it; then the S-017-15 tests, the after_stamp command, the Releases section, the fragment
Proof: sdk/tests/test_interface_changelog.py (test_s017_15_*: the release stamp runs changelog-add on the App whose schema_changelog cloudfall changelog serves, the file and its snapshot are package data the wheel carries, the Releases section names no manual step); the scratch run below; S-017-15 is seen whole on the first rc after the merge
Test notes
sdk/tests/test_interface_changelog.py: four test_s017_15_* tests. Two of them failed before the change (no after_stamp command; Releases section had the manual console step) and pass after it. uv run pytest sdk/tests/test_interface_changelog.py sdk/tests/test_project.py passes, as do uv run ruff check . and uv run mypy. The full suite is left to CI
Scratch run, on a throwaway worktree of origin/main carrying this after_stamp (discarded afterwards):
uvx shipmill==0.135.0 prepare --lane rc --version 0.8.0rc9 --base
Open Graph Description: Summary The release bot never ran treaty changelog-add, so sdk/src/cloudfall/schema-changelog.json never existed and cloudfall changelog (which every generated AGENTS.md tells agents to read) had n...
X Description: Summary The release bot never ran treaty changelog-add, so sdk/src/cloudfall/schema-changelog.json never existed and cloudfall changelog (which every generated AGENTS.md tells agents to read) had n...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/pull/384
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:33b4cd28-911d-b074-36b2-0023af640ac6 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BB1C:2A8F8B:278CCA3:33DEFB5:6B0556C1 |
| html-safe-nonce | d7624dd0d91434bc9e509a4ab6695b67a2556d1d99b6db98f7bb4462855c14ca |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjFDOjJBOEY4QjoyNzhDQ0EzOjMzREVGQjU6NkIwNTU2QzEiLCJ2aXNpdG9yX2lkIjoiOTE2OTkyMzA4NjIwNjk4MTgyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 07ecc0810a0ac6a9d4293071704521a7c71b055eb05c11f0c7b6ee6753191050 |
| hovercard-subject-tag | pull_request:5325587322 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/cloudfall-dev/cloudfall/pull/384/files |
| twitter:image | https://avatars.githubusercontent.com/u/5600783?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/5600783?s=400&v=4 |
| og:image:alt | Summary The release bot never ran treaty changelog-add, so sdk/src/cloudfall/schema-changelog.json never existed and cloudfall changelog (which every generated AGENTS.md tells agents to read) had n... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | a79a02b7e7546ea306864e922ed2103ef4c04fac63168e11c2b2d4d816793080 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/cloudfall-dev/cloudfall git https://github.com/cloudfall-dev/cloudfall.git |
| octolytics-dimension-user_id | 339512759 |
| octolytics-dimension-user_login | cloudfall-dev |
| octolytics-dimension-repository_id | 1360999777 |
| octolytics-dimension-repository_nwo | cloudfall-dev/cloudfall |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1360999777 |
| octolytics-dimension-repository_network_root_nwo | cloudfall-dev/cloudfall |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 10dff83edfd4f3617a7792a152d44991587b434c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width