Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions actions/setup/js/write_daily_aic_usage_cache.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ const { findJSONLFiles, sumAICFromUsageJSONLFiles } = require("./daily_aic_workf
const { AIC_USAGE_CACHE_FILE_PATH, CACHE_RETENTION_MS, pruneStaleJSONLCacheLines } = require("./daily_aic_cache_helpers.cjs");
const { getErrorMessage } = require("./error_helpers.cjs");

/** Path where the restored (and updated) usage cache lives on the runner. */
const CACHE_FILE_PATH = AIC_USAGE_CACHE_FILE_PATH;

/**
* Directory prepared by the "Collect usage artifact files" step in the conclusion job.
* Contains agent_usage.jsonl and agent/token_usage.jsonl which mirror the contents of
Expand Down Expand Up @@ -48,7 +45,7 @@ function logCache(message, details) {
* @returns {Promise<void>}
*/
async function mainWithPaths(cacheFilePath, usageDir) {
const cachePath = cacheFilePath || CACHE_FILE_PATH;
const cachePath = cacheFilePath || AIC_USAGE_CACHE_FILE_PATH;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@copilot Fix the code for all comments in this review comment.

When a review comment includes a suggested change, apply the suggestion exactly.

Do not make changes beyond what is described in the linked review comment.

const usageDirPath = usageDir || USAGE_DIR;
try {
const runId = Number(process.env.GITHUB_RUN_ID || 0);
Expand Down
Loading