fix: token analyzers should always run and close older issues#1626
fix: token analyzers should always run and close older issues#1626
Conversation
Remove skip-if-match from both Copilot and Claude token usage analyzers so they run daily even when a previous report issue is still open. Add close-older-issues: true to automatically close the previous report when a new one is created. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (1 files)
Coverage comparison generated by |
There was a problem hiding this comment.
Pull request overview
This PR updates the daily Copilot/Claude token usage analyzer workflows so they no longer skip execution when a prior report issue is still open, and instead automatically close the previous report issue when a new one is created.
Changes:
- Removed
skip-if-matchgating so both analyzers run on their schedule regardless of existing open report issues. - Added
close-older-issues: trueto thecreate-issuesafe output configuration so new reports automatically close older ones. - Recompiled the generated lock workflows (bringing along gh-aw/AWF/tooling version bumps and related generated workflow step changes).
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| .github/workflows/copilot-token-usage-analyzer.md | Removes skip gating; enables auto-closing older Copilot token usage report issues. |
| .github/workflows/copilot-token-usage-analyzer.lock.yml | Regenerated workflow reflecting removal of pre-activation skip gating + updated safe-outputs config and toolchain versions. |
| .github/workflows/claude-token-usage-analyzer.md | Removes skip gating; enables auto-closing older Claude token usage report issues. |
| .github/workflows/claude-token-usage-analyzer.lock.yml | Regenerated workflow reflecting removal of pre-activation skip gating + updated safe-outputs config and toolchain versions. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @@ -78,14 +73,14 @@ jobs: | |||
| GH_AW_INFO_MODEL: ${{ vars.GH_AW_MODEL_AGENT_COPILOT || 'auto' }} | |||
| GH_AW_INFO_VERSION: "latest" | |||
| GH_AW_INFO_AGENT_VERSION: "latest" | |||
| GH_AW_INFO_CLI_VERSION: "v0.65.3" | |||
| GH_AW_INFO_CLI_VERSION: "v0.65.5" | |||
| GH_AW_INFO_WORKFLOW_NAME: "Daily Copilot Token Usage Analyzer" | |||
| GH_AW_INFO_EXPERIMENTAL: "false" | |||
| GH_AW_INFO_SUPPORTS_TOOLS_ALLOWLIST: "true" | |||
| GH_AW_INFO_STAGED: "false" | |||
| GH_AW_INFO_ALLOWED_DOMAINS: '["github","*.blob.core.windows.net"]' | |||
| GH_AW_INFO_FIREWALL_ENABLED: "true" | |||
| GH_AW_INFO_AWF_VERSION: "v0.25.5" | |||
| GH_AW_INFO_AWF_VERSION: "v0.25.10" | |||
| GH_AW_INFO_AWMG_VERSION: "" | |||
There was a problem hiding this comment.
This lockfile recompile upgrades the gh-aw toolchain (v0.65.3→v0.65.5) and AWF (v0.25.5→v0.25.10), which introduces additional workflow behavior changes beyond the PR description (e.g., different action SHAs/scripts, container image tags). If the intent is only to remove skip-if-match and auto-close prior reports, consider either (1) calling out these version bumps explicitly in the PR description, or (2) recompiling with the previous gh-aw version to keep the diff minimal.
| @@ -78,14 +73,14 @@ jobs: | |||
| GH_AW_INFO_MODEL: ${{ vars.GH_AW_MODEL_AGENT_COPILOT || 'auto' }} | |||
| GH_AW_INFO_VERSION: "latest" | |||
| GH_AW_INFO_AGENT_VERSION: "latest" | |||
| GH_AW_INFO_CLI_VERSION: "v0.65.3" | |||
| GH_AW_INFO_CLI_VERSION: "v0.65.5" | |||
| GH_AW_INFO_WORKFLOW_NAME: "Daily Claude Token Usage Analyzer" | |||
| GH_AW_INFO_EXPERIMENTAL: "false" | |||
| GH_AW_INFO_SUPPORTS_TOOLS_ALLOWLIST: "true" | |||
| GH_AW_INFO_STAGED: "false" | |||
| GH_AW_INFO_ALLOWED_DOMAINS: '["github","*.blob.core.windows.net"]' | |||
| GH_AW_INFO_FIREWALL_ENABLED: "true" | |||
| GH_AW_INFO_AWF_VERSION: "v0.25.5" | |||
| GH_AW_INFO_AWF_VERSION: "v0.25.10" | |||
| GH_AW_INFO_AWMG_VERSION: "" | |||
There was a problem hiding this comment.
This lockfile recompile upgrades the gh-aw toolchain (v0.65.3→v0.65.5) and AWF (v0.25.5→v0.25.10), which introduces additional workflow behavior changes beyond the PR description (updated action SHAs/scripts and container image tags). If the intent is only to remove skip-if-match and auto-close prior reports, either document these version bumps in the PR description or recompile with the older gh-aw version to keep the change focused.
|
Smoke Test Results ✅ GitHub MCP — feat: add daily token optimization advisor workflows (#1620), perf: reduce smoke-copilot token usage with pre-steps and tool trimming (#1613) Overall: PASS
|
🔬 Smoke Test Results
Overall: PARTIAL — MCP and bash functional; pre-step data (HTTP code, file path) was not injected into agent context. PR by @lpcox · Reviewers:
|
|
Smoke test results for PR #1626
|
🏗️ Build Test Suite Results
Overall: 8/8 ecosystems passed — ✅ PASS
|
Smoke Test: GitHub Actions Services Connectivity ✅All checks passed:
|
Removes
skip-if-matchfrom both token usage analyzers so they run every day regardless of whether a previous report issue is still open. Addsclose-older-issues: trueso the previous report is automatically closed when a new one is created.Before: Analyzers skipped if any open issue with the report label existed — meaning they'd only run again after someone manually closed the issue.
After: Analyzers always run on schedule. New report auto-closes the previous one.
Note: Recompiling the lock files also picked up gh-aw toolchain (v0.65.3 → v0.65.5) and AWF (v0.25.5 → v0.25.10) version bumps, which update action SHAs, scripts, and container image tags in the generated workflows.