Repository navigation
fix(ci): count only published-file commits in the unreleased-changes check - #425
Merged
Merged
Conversation
…check `src/__tests__/` lives under `src/`, so the check's `git log v<ver>..HEAD -- 'src/'` counted test-only and drift-harness-only commits as unreleased source changes. On `main` @ 8b0485b it warned about 2 "source commits" that touch only `src/__tests__/drift/*`, `drift-proposals/*` and `scripts/drift-sync*.ts` — none of which is in the published tarball. A warning that fires for work that cannot be released is a warning people learn to ignore. The pathspec is now derived from `package.json` "files" instead of being hard-coded, so it cannot drift again when the published set changes. `dist` is a build artifact and is not in git, so it is substituted with its git preimage — tsconfig's `include` roots minus its `exclude` entries — which is what drops `src/__tests__/`. Every other "files" entry is a tracked path and is used as-is, which also widens the check to `fixtures/`, `skills/`, `.claude-plugin/` and `CHANGELOG.md`: those ship, and the old `src/`-only pathspec missed them. An empty derived pathspec is now a hard error, because `git log -- ` with no paths silently matches every path.
Executes the workflow step's own `run:` body under bash against synthetic git repositories, so the guards are behavioural rather than text-shape: a test-only commit under `src/__tests__/` must not count, and — the half that matters more — a real `src/*.ts`, `skills/`, `fixtures/` or `CHANGELOG.md` commit still must. A check that stopped crying wolf by no longer barking at all would be a worse bug than the one being fixed. Also pins that an underivable published-file set is a hard error rather than an empty pathspec (which `git log` reads as "every path"), and that the extracted body is a literal substring of the committed workflow, so an extractor that paraphrases cannot make these vacuous. Mutation-tested: reverting the workflow to the `-- 'src/'` pathspec turns 7 of the 11 guards red.
commit: |
Merged
jpr5
added a commit
that referenced
this pull request
Sep 11, 2026
Cuts the accumulated `[Unreleased]` work. **MINOR** — a new provider surface (BytePlus Ark video) and new endpoints, no breaking changes. **Prepared, not merged.** `publish-release.yml` fires on push-to-main, so merging this publishes to npm, tags `v1.41.0`, cuts the GitHub Release, dispatches the Docker build, and posts to Slack. Merge when you want it live. ## What ships Only **#424** (plus its follow-up **#429**, which fixes the same never-released BytePlus code) touches the published package. Verified against `package.json` `files` + `tsconfig` include/exclude: ``` git log v1.40.0..origin/main --oneline -- src/ ':(exclude)src/__tests__/' fixtures/ .claude-plugin/ skills/ CHANGELOG.md ``` …returns byteplus commits only. #422, #423, #425, #426, #427, #428 touch scripts/, .github/ and docs/ exclusively and are deliberately **not** in the CHANGELOG. ### Added - BytePlus Ark (Seedance) video record/replay — submit, poll and retrieve, stored as the raw Ark task envelope - `--provider-byteplus` flag ### Changed - `/api/v3` chat and image requests are attributed to the `byteplus` provider - `aimock-pytest` pin moves to 1.41.0 ### Fixed - Startup error when a BytePlus provider base already ends in `/api/v3` ## Version surfaces — seven, all bumped Found by grepping the tree for `1.40.0`, not from a checklist. **Zero occurrences of the old string remain** (excluding `CHANGELOG.md` history, `fixtures/` and `pnpm-lock.yaml`): | File | Field | 1.40.0 → 1.41.0 | | --- | --- | --- | | `package.json` | `version` | ✔ | | `charts/aimock/Chart.yaml` | `appVersion` (chart `version` stays `0.1.0`) | ✔ | | `.claude-plugin/plugin.json` | `version` | ✔ | | `.claude-plugin/marketplace.json` | `plugins[0].source.version` (`^1.41.0`) | ✔ | | `docs/index.html` | demo banner `aimock v…` | ✔ | | `packages/aimock-pytest/src/aimock_pytest/_version.py` | `AIMOCK_VERSION` npm pin | ✔ | | `packages/aimock-pytest/README.md` | `--aimock-version` default | ✔ | `AIMOCK_VERSION` **must** move this release: `/api/v3/contents/generations/tasks` is a new server route, so a default-download pytest user on the 1.40.0 pin would run a server without it. `packages/aimock-pytest/pyproject.toml` is deliberately untouched — that package versions on its own PyPI cadence. There is **no version constant in `src/cli.ts`** and **no `metadata.version` in `marketplace.json`** in this tree; both surfaces exist only in the release checklist, not in the repo. ## Drive-by: the npm description has been `<div align="center">` since the README got a centered header `npm view @copilotkit/[email protected] description` returns the literal string `<div align="center">`. Both README-subtitle extractors — the inline `node -e` in `publish-release.yml` and `syncDescriptionFromReadme()` in `scripts/drift-sync.ts` — skip `#`, `[`, ` https://claude.ai/code/session_01AvkmhXVLqSSEW6FvPQHSu5
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.
The defect
.github/workflows/unreleased-check.ymlwarns when there are commits onmainsince the last release tag that changed "source", counted as
git log v<ver>..HEAD -- 'src/'.src/__tests__/lives undersrc/, so test-only and drift-harness-only workcounted as unreleased source changes. On
main@8b0485bit warned about 2"source commits" (from #422 and #423) that touch only
src/__tests__/drift/*,drift-proposals/*andscripts/drift-sync*.ts— none of which is in thepublished tarball (
filesis["dist","fixtures",".claude-plugin","skills","CHANGELOG.md"],and
tsconfig.jsonexcludessrc/__tests__).It is
::warning::with noexit 1, so it blocked nothing — but a check thatfires for work that cannot be released is a check people learn to ignore.
The approach
The pathspec is now derived from
package.json"files" rather thanhard-coded, so it cannot drift again when the published set changes:
distis a build artifact and is not in git, so it is substituted with itsgit preimage —
tsconfig.json'sincluderoots minus itsexcludeentries.That is what drops
src/__tests__/, and it follows the tsconfig rather thanrestating it.
filesentry is a real tracked path and is used as-is.Deriving from
filesalone was not possible (distis not in git); derivingsrc/alone would have re-encoded the same thing that drifted. The pair —filesfor the literal paths, tsconfig fordist's preimage — is the onlyformulation where both halves are read from the declarations that actually
govern the tarball.
This also widens the check:
fixtures/,skills/,.claude-plugin/andCHANGELOG.mdall ship and were invisible to the oldsrc/-only pathspec.An empty derived pathspec is now a hard
::error::+exit 1, becausegit log --with no paths silently matches every path.Red / green
RED — old command, current tree:
GREEN — new step body, same tree:
POSITIVE CONTROL — three throwaway commits on top of the fix (a real
src/logger.tschange, askills/write-fixtures/SKILL.mdchange, and onetouching only
scripts/drift-sync.ts+src/__tests__/drift/model-registry.ts):It still barks at the two real ones and ignores the tests+scripts one. Run
again with only the tests+scripts commit present, it reports clean.
What would still trip it
Any commit since the tag touching
src/**other thansrc/__tests__/,fixtures/,skills/,.claude-plugin/, orCHANGELOG.md.Deliberately still does not trip it:
package.jsonitself. A runtimedependency bump does change the published package, but git cannot distinguish
it from a devDependency bump, and including
package.jsonwould fire on everyRenovate PR. This is unchanged from the old behaviour, not a new blind spot.
Tests
src/__tests__/unreleased-check-workflow.test.tsexecutes the step's ownrun:body under bash against synthetic git repos — 11 guards, including thepositive controls above and the empty-pathspec refusal. Mutation-tested:
reverting the workflow to
-- 'src/'turns 7 of the 11 red.Gates
actionlint(this file) 0 ·prettier --check .0 ·eslint .0 ·pnpm typecheck0 ·vitest run0 (183 files, 5686 tests) ·commitlint --from origin/main --to HEAD0.Repo-wide
actionlintexits 1 on 8 pre-existing info-level SC2086 findings inother workflows — byte-identical at
8b0485b, none in this file.