Skip to content

fix(action): count observe runs as the GitHub Action surface - #285

Merged
adityankale190895 merged 1 commit into
DiffCI:mainfrom
FredApps:fix/action-observe-surface
Nov 18, 2026
Merged

adityankale190895 merged 1 commit into
DiffCI:mainfrom
FredApps:fix/action-observe-surface

Conversation

@FredApps

@FredApps FredApps commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #284

Changed behavior

The Observe step of the public DiffCI/core Action now sets DIFFCI_SURFACE=github-action. Usage events from the Action's default path (observe, with verify off) are recorded as github-action, not cli.

action/verify.sh already exported this for the opt-in fast check. The GitLab component already sets its own surface (gitlab-component). The Azure DevOps task sets azure-devops-task, which telemetry doesn't recognise yet and counts as cli. That is tracked separately in #303 and is not changed here.

Validation

Unsupported cases

  • Runs of the published CLI from a workflow that does not use this Action, and does not set DIFFCI_SURFACE itself, are still counted as cli. That is unchanged.
  • This Action change takes effect for installations that pin a Core commit or release that includes it. The default cli-version (0.3.54) already honours DIFFCI_SURFACE; no CLI release is required.

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]>
@FredApps
FredApps marked this pull request as ready for review November 18, 2026 00:55
@adityankale190895
adityankale190895 merged commit 56ffe6c into DiffCI:main Nov 18, 2026
13 checks passed
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.

GitHub Action: observe runs are counted as surface=cli, because the Observe step never sets DIFFCI_SURFACE

2 participants