Skip to content

Add scheduled “Agentic workflow logs” trace indexer and refactor activity reports to consume cached logs#27932

Closed
Copilot wants to merge 2 commits intomainfrom
copilot/update-agentic-maintenance-action-generator
Closed

Add scheduled “Agentic workflow logs” trace indexer and refactor activity reports to consume cached logs#27932
Copilot wants to merge 2 commits intomainfrom
copilot/update-agentic-maintenance-action-generator

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 23, 2026

CraterPort requested moving workflow log downloading into a single scheduled maintenance job and having activity reporting reuse cached data. This change adds a dedicated trace-indexing job with resilient cache updates and refactors activity reports to read pre-indexed artifacts instead of downloading logs directly.

  • Maintenance workflow generation

    • Added a new agentic_workflow_logs job (display name: Agentic workflow logs) to both primary and side-repo maintenance generators.
    • Job runs on schedule and on operation == activity_report.
    • Added cache restore/save flow with a run-scoped key and broad restore keys for rolling reuse.
    • Configured trace refresh step with continue-on-error: true and unconditional cache save (if: always()).
  • Activity report execution model

    • Updated activity_report jobs to depend on agentic_workflow_logs and restore the same cache.
    • Removed direct log-download cache wiring from activity_report; report generation now consumes ./.cache/gh-aw/agentic-workflow-logs.
  • Action scripts

    • Added run_trace_indexer.cjs to refresh 24h/7d log windows via gh aw logs, persist markdown sections into cache, and fail the step on partial refresh failure (while still allowing workflow continuation via continue-on-error).
    • Refactored run_activity_report.cjs to load cached markdown sections from disk and publish the issue from cached trace data.
  • Test updates

    • Added focused tests for run_trace_indexer.cjs.
    • Updated run_activity_report tests for cache-backed behavior.
    • Updated maintenance workflow generator tests (main + side-repo) for new job, dependency, cache paths, and setup-go usage count.
agentic_workflow_logs:
  name: Agentic workflow logs
  if: ${{ ...scheduled_or_activity_report... }}
  steps:
    - uses: actions/cache/restore@...
    - name: Refresh agentic workflow logs trace index
      continue-on-error: true
      uses: actions/github-script@...
    - name: Save agentic workflow logs cache
      if: ${{ always() }}
      uses: actions/cache/save@...

Copilot AI and others added 2 commits April 22, 2026 21:11
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