Skip to content

Conversation

mbg
Copy link
Member

@mbg mbg commented Sep 23, 2025

Adds information about the results of restoring and storing dependency caches.

Note: Do not merge until corresponding, internal PRs are done.

Risk assessment

For internal use only. Please select the risk level of this change:

  • Low risk: Changes are fully under feature flags, or have been fully tested and validated in pre-production environments and are highly observable, or are documentation or test only.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Consider adding a changelog entry for this change.
  • Confirm the readme and docs have been updated if necessary.

@mbg mbg requested a review from a team as a code owner September 23, 2025 10:51
@Copilot Copilot AI review requested due to automatic review settings September 23, 2025 10:51
@mbg mbg force-pushed the mbg/dep-caching/telemetry branch from 63beaa0 to 249a3cb Compare September 23, 2025 10:52
Copy link
Contributor

@Copilot 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 support for dependency caching operations by capturing and reporting metrics about cache restore and upload activities. The changes enable tracking of cache hit rates, download/upload sizes, and operation durations for different programming languages.

  • Introduces new types and enums to represent cache operation results and status
  • Modifies existing cache functions to return detailed telemetry data instead of simple success indicators
  • Updates status reporting to include dependency cache metrics in telemetry payloads

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/dependency-caching.ts Adds telemetry types and modifies cache functions to collect performance metrics
src/status-report.ts Updates status report interface to include dependency cache restore results
src/init-action.ts Captures dependency cache restore telemetry and passes it to status reporting
src/analyze-action.ts Captures dependency cache upload telemetry and includes it in final status reports
src/status-report.test.ts Updates test to handle new parameter in createInitWithConfigStatusReport
lib/init-action.js Generated JavaScript reflecting TypeScript changes for init action
lib/analyze-action.js Generated JavaScript reflecting TypeScript changes for analyze action

@mbg mbg requested a review from henrymercer September 25, 2025 23:26
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