Skip to content

Conversation

@ericsciple
Copy link
Collaborator

@ericsciple ericsciple commented Feb 2, 2026

  • Add HasDeprecatedSetOutput and HasDeprecatedSaveState flags to GlobalContext
  • Emit JobTelemetry once per job when deprecated commands are used
  • Add unit tests verifying once-per-job telemetry behavior

- Add HasDeprecatedSetOutput and HasDeprecatedSaveState flags to GlobalContext
- Emit JobTelemetry once per job when deprecated commands are used
- Add unit tests verifying once-per-job telemetry behavior
@ericsciple ericsciple force-pushed the users/ericsciple/26-02-setoutput branch from 94e3855 to 9167ce7 Compare February 2, 2026 22:18
@ericsciple ericsciple marked this pull request as ready for review February 2, 2026 22:20
@ericsciple ericsciple requested a review from a team as a code owner February 2, 2026 22:20
Copilot AI review requested due to automatic review settings February 2, 2026 22:20
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds telemetry tracking to detect usage of deprecated GitHub Actions commands (set-output and save-state). The implementation ensures telemetry is emitted only once per job when these deprecated commands are used, preventing duplicate telemetry entries.

Changes:

  • Added boolean flags to track first usage of deprecated commands in GlobalContext
  • Implemented telemetry emission logic that checks flags before adding telemetry entries
  • Added unit tests to verify once-per-job telemetry emission behavior

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/Runner.Worker/GlobalContext.cs Added HasDeprecatedSetOutput and HasDeprecatedSaveState boolean properties to track command usage
src/Runner.Worker/ActionCommandManager.cs Implemented telemetry emission logic with flag checks for both deprecated commands
src/Test/L0/Worker/ActionCommandManagerL0.cs Added command extensions to test setup and created unit tests verifying single telemetry emission per command type

@ericsciple
Copy link
Collaborator Author

Tested E2E

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.

2 participants