-
Notifications
You must be signed in to change notification settings - Fork 277
Closed
Labels
Description
This causes the overall run to be marked a failure.
We should probably fail the earlier safe output MCP call for push_repo_memory if size is too large with error message suggesting the coding agent rewrite the notes to be smaller and try again
A friend reported repo assist hitting maximum memory size:
ERROR LOG
Disabling sparse checkout...
Checking out branch: memory/repo-assist...
Switched to branch 'memory/repo-assist'
Checked out existing branch: memory/repo-assist
No file glob filter - all files will be accepted
Error: File exceeds size limit: state.json (11379 bytes > 10240 bytes)
Error: File size validation failed
Error: Failed to scan artifact directory: File size validation failed
Now the repo-memory size issue text looks different (below). It happens after 14 correct runs.
A sample error run is here: https://github.com/lucabol/JediTestRepoV2/actions/runs/22798870252
push_repo_memory
Patch size (13 KB, 12379 bytes) exceeds maximum allowed size (12 KB, 12288 bytes, configured limit: 10 KB with 20% overhead allowance). Reduce the number or size of changes, or increase max-patch-size.
Run actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
with:
script: const { setupGlobals } = require('/opt/gh-aw/actions/setup_globals.cjs');
setupGlobals(core, github, context, exec, io);
const { main } = require('/opt/gh-aw/actions/push_repo_memory.cjs');
await main();
github-token: ***
debug: false
user-agent: actions/github-script
result-encoding: json
retries: 0
retry-exempt-status-codes: 400,401,403,404,422
env:
GH_TOKEN: ***
GITHUB_RUN_ID: 22798870252
GITHUB_SERVER_URL: https://github.com/
ARTIFACT_DIR: /tmp/gh-aw/repo-memory/default
MEMORY_ID: default
TARGET_REPO: lucabol/JediTestRepoV2
BRANCH_NAME: memory/repo-assist
MAX_FILE_SIZE: 10240
MAX_FILE_COUNT: 100
MAX_PATCH_SIZE: 10240
ALLOWED_EXTENSIONS: []
Environment configuration:
MEMORY_ID: default
MAX_FILE_SIZE: 10240
MAX_FILE_COUNT: 100
MAX_PATCH_SIZE: 10240
ALLOWED_EXTENSIONS: []
FILE_GLOB_FILTER: (empty - all files accepted)
FILE_GLOB_FILTER length: 0
Working in repository: /home/runner/work/JediTestRepoV2/JediTestRepoV2
Disabling sparse checkout...
Checking out branch: memory/repo-assist...
Switched to branch 'memory/repo-assist'
Checked out existing branch: memory/repo-assist
Destination directory: /home/runner/work/JediTestRepoV2/JediTestRepoV2
No file glob filter - all files will be accepted
Scan complete: Found 2 file(s) to copy
Files found:
- memory.json (5441 bytes)
- state.json (4680 bytes)
All file extensions are allowed in repo-memory directory
Copying 2 validated file(s)...
Copied: memory.json (5441 bytes)
Copied: state.json (4680 bytes)
Changes detected, committing and pushing...
Patch size: 13 KB (12379 bytes) (configured limit: 10 KB (10240 bytes), effective with 20% overhead: 12 KB (12288 bytes))
Error: Patch size (13 KB, 12379 bytes) exceeds maximum allowed size (12 KB, 12288 bytes, configured limit: 10 KB with 20% overhead allowance). Reduce the number or size of changes, or increase max-patch-size.
Reactions are currently unavailable