Skip to content

[aw-failures] [aw-fix] daily-code-metrics push_repo_memory hard-red — history.jsonl (112KB) exceeds max-file-size 100KB, memory [Content truncated due to length] #43865

Description

@github-actions

Raise max-file-size and add JSONL retention pruning in daily-code-metrics — the append-only history.jsonl has crossed the 100KB per-file cap, so push_repo_memory hard-fails every run and the metrics memory branch no longer advances.

Parent report: #43552 · Sibling repo-memory bug (different cause): #43846

Problem statement

Daily Code Metrics and Trend Tracking Agent completes its agent job successfully, but the downstream push_repo_memory job fails file-size validation and turns the whole run red:

##[error]File exceeds size limit: history.jsonl (114736 bytes > 102400 bytes)
##[error]File size validation failed
##[error]Failed to scan artifact directory: File size validation failed

Because the file already exceeds the cap, the memory push is rejected on every subsequent run — the daily/daily-code-metrics branch is frozen and 90-day trend history stops accumulating.

Affected workflow and runs

Workflow Run Result
Daily Code Metrics and Trend Tracking Agent §28816127677 push_repo_memory failed (agent job = success)

Deterministic and recurring: any future run pushing the same/larger history.jsonl reproduces it.

Probable root cause

  • .github/workflows/daily-code-metrics.md:26 sets max-file-size: 102400 (100KB).
  • The agent appends daily rows to /tmp/gh-aw/repo-memory/default/history.jsonl (daily-code-metrics.md:95) with a 90-day retention goal (daily-code-metrics.md:239), but nothing prunes old rows — the file has grown to 114,736 bytes and permanently exceeds 100KB.
  • A prior partial fix already bumped max-patch-size for this exact file (daily-code-metrics.md:27 comment), leaving max-file-size as the remaining bottleneck.

Proposed remediation

  1. Root fix — enforce retention (preferred): in the "Update Memory" step, prune history.jsonl to the documented 90-day window before writing (drop rows older than 90 days), keeping the file bounded regardless of cadence.
  2. Immediate unblock: raise max-file-size in .github/workflows/daily-code-metrics.md from 102400 to 262144 (256KB) so the current 112KB file pushes; recompile the lock file.

Apply both: (2) unblocks now, (1) prevents recurrence.

Success criteria / verification

Generated by 🔍 [aw] Failure Investigator (6h) · 125.3 AIC · ⌖ 38.8 AIC · ⊞ 5.2K ·

  • expires on Jul 13, 2026, 11:31 AM UTC-08:00

Activity

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions