Repository navigation
fix(action): count observe runs as the GitHub Action surface - #285
Merged
adityankale190895 merged 1 commit intoNov 18, 2026
Merged
Conversation
The Observe step now sets DIFFCI_SURFACE=github-action, so usage events from the Action's default path are recorded as github-action rather than cli. The opt-in verify script already exported this, as do the GitLab and Azure wrappers. Fixes DiffCI#284 Signed-off-by: FredApps <[email protected]>
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.
Fixes #284
Changed behavior
The Observe step of the public
DiffCI/coreAction now setsDIFFCI_SURFACE=github-action. Usage events from the Action's default path (observe, withverifyoff) are recorded asgithub-action, notcli.action/verify.shalready exported this for the opt-in fast check. The GitLab component already sets its own surface (gitlab-component). The Azure DevOps task setsazure-devops-task, which telemetry doesn't recognise yet and counts ascli. That is tracked separately in #303 and is not changed here.Validation
tests/action-metadata.test.tsnow asserts the Observe step's environment. The test fails onmain(observe env DIFFCI_SURFACE: undefined); the output is in GitHub Action: observe runs are counted as surface=cli, because the Observe step never sets DIFFCI_SURFACE #284.npx tsx --test tests/action-metadata.test.ts tests/action-verify.test.ts tests/action-impact.test.ts tests/action-check-run.test.ts(35 pass, 0 fail),npm run typecheck.Unsupported cases
DIFFCI_SURFACEitself, are still counted ascli. That is unchanged.cli-version(0.3.54) already honoursDIFFCI_SURFACE; no CLI release is required.