You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
observe: a path that isn't a git checkout is reported as 'worktree CHANGED - report this' (console, job summary, Action PR comment) #278
If the observed path is not a git checkout, the observation refuses, which is correct. But the console line, the job summary and the Action's pull request comment all say the working tree changed while DiffCI observed it, and ask the user to file a DiffCI bug. DiffCI changed nothing. There was simply no checkout to compare before and after.
This is easy to hit with the Action. Any job that checks out into a subdirectory (actions/checkout with path:, as examples/github-actions-check-plan.yml does) and keeps the default repository-path: ${{ github.workspace }} gets the false alarm.
DiffCI version
CLI 0.3.54 (the Action's pinned default); core main40aa308
status: REFUSED
non-interference: worktree CHANGED - report this, report written outside the checkout
The job summary has the same message:
> [!WARNING]
> The working tree changed while DiffCI observed it. Please report this at https://github.com/DiffCI/core/issues.
action/impact.mjs's formatComment puts the same warning in the PR comment when comment: "true". The report itself is accurate: nonInterference is {"worktreeUnchanged": false} with no headSha* or worktreeDigest* evidence at all.
Cause
observe() sets worktreeUnchanged to false whenever it cannot read HEAD or the tree (packages/diffci-cli/src/client/observe.ts:183-187). That is the right value for "not proven unchanged". But all three places that display it read false as "changed":
packages/diffci-cli/src/client/cli.ts:899
packages/diffci-cli/src/client/job-summary.ts:73
action/impact.mjs:115
Expected
When nothing could be read before or after (none of the four evidence fields is present), DiffCI has nothing to compare and makes no claim. The refusal reason is enough, and there is no "report this" warning. A real before/after difference, or evidence that disappears, still raises the warning. Narrowing does not change: a refused or unproven observation still never narrows.
Same area, also fixed in #283 (add3cc5): in this repro, the refusal reason told the user to add fetch-depth: 0, which can't help when the path isn't a git checkout at all. It now says this path is not a git checkout: and points at the Action's repository-path (the checkout step's path:), the Azure task's repositoryPath, or --repo. Real shallow clones keep the fetch-depth hint.
Activity
Point a path that is not a git checkout at repository-path, not fetch…
FredApps commentedon Nov 17, 2026
Same area, also fixed in #283 (add3cc5): in this repro, the refusal reason told the user to add
fetch-depth: 0, which can't help when the path isn't a git checkout at all. It now saysthis path is not a git checkout:and points at the Action'srepository-path(the checkout step'spath:), the Azure task'srepositoryPath, or--repo. Real shallow clones keep the fetch-depth hint.Do not report a changed worktree when there was no checkout to compare (