Skip to content

Use charting venv in API consumption report - #53675

Merged
pelikhan merged 2 commits into
mainfrom
copilot/aw-fix-missing-tools
Aug 18, 2026
Merged

Use charting venv in API consumption report#53675
pelikhan merged 2 commits into
mainfrom
copilot/aw-fix-missing-tools

Conversation

Copilot AI commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

The API consumption report workflow provisions scientific Python charting libraries in /tmp/gh-aw/python/venv, but the agent prompt ran chart generation with bare python3. In the reported run, that resolved to a PyPy interpreter without matplotlib/pandas/numpy/scipy.

  • Chart execution
    • Point chart generation at the prepared virtualenv interpreter.
    • Avoid falling back to the sandbox default Python.
/tmp/gh-aw/python/venv/bin/python3 /tmp/gh-aw/python/api_consumption_charts.py
  • Generated workflow
    • Recompiled the workflow lock file so the markdown source and executable workflow stay in sync.

@github-actions

Copy link
Copy Markdown
Contributor

PR Triage

Category: chore (WIP) | Risk: low | Priority: low (score 20)

  • Draft, opened minutes ago with 0 diff — agent still generating changes (Fix missing tools for chart generation in GitHub API Consumption Report Agent)
  • Batch: pr-batch:wip-drafts (6 similar just-opened WIP PRs)

Recommended action: defer — recheck once agent finishes and diff is populated

Generated by 🔧 PR Triage Agent · auto · 53.1 AIC · ⌖ 2.52 AIC · ⊞ 8.3K ·

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix missing tools for chart generation in GitHub API Consumption Report Agent Use charting venv in API consumption report Aug 18, 2026
Copilot AI requested a review from pelikhan August 18, 2026 12:34
@pelikhan
pelikhan marked this pull request as ready for review August 18, 2026 12:39
Copilot AI balanced review requested due to automatic review settings August 18, 2026 12:39
@pelikhan
pelikhan merged commit 6b734e6 into main Aug 18, 2026
@pelikhan
pelikhan deleted the copilot/aw-fix-missing-tools branch August 18, 2026 12:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates chart execution to target the prepared virtualenv, but that interpreter is incompatible with the agent sandbox’s glibc version.

Changes:

  • Uses the charting virtualenv interpreter explicitly.
  • Regenerates workflow metadata.
Show a summary per file
File Description
.github/workflows/api-consumption-report.md Updates chart execution instructions.
.github/workflows/api-consumption-report.lock.yml Refreshes the generated body hash.

Review details

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Suppressed comments (1)

.github/workflows/api-consumption-report.md:417

  • The sub-agent is also told that this host-created venv will be executable, but the linked run directly tested this exact path and it failed with a glibc 2.38/2.35 mismatch. Update this instruction only after provisioning a Python environment that is compatible with the agent container; otherwise the generated script still cannot be executed.
/tmp/gh-aw/python/venv/bin/python3 /tmp/gh-aw/python/api_consumption_charts.py
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Balanced


Use the `chart-script-writer` agent to write `/tmp/gh-aw/python/api_consumption_charts.py`,
then run it: `python3 /tmp/gh-aw/python/api_consumption_charts.py`.
then run it with the prepared charting environment: `/tmp/gh-aw/python/venv/bin/python3 /tmp/gh-aw/python/api_consumption_charts.py`.
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.87.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[aw] GitHub API Consumption Report Agent is missing required tool

3 participants