Extract autoloop scheduler into a standalone script to fix oversized run: expression#170
Merged
Merged
Conversation
The inline heredoc in autoloop.md compiled to a ~23.2 KB `run:` expression, exceeding GitHub Actions' 20.5 KB per-expression limit. Move the scheduler body to .github/workflows/scripts/autoloop_scheduler.py and invoke it from the run step. Recompile the lock file with gh aw compile. Agent-Logs-Url: https://github.com/githubnext/tsessebe/sessions/fbfa0828-7972-46b0-ab02-c8f37dfc544c Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix expression value exceeded maximum allowed size error
Extract autoloop scheduler into a standalone script to fix oversized Apr 21, 2026
run: expression
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
gh aw compilefailed with:The "Check which programs are due" step embedded a ~500-line Python heredoc in
run: |, which inlined intoautoloop.lock.ymlas a single 23.2 KBrun:string — above GitHub Actions' 20.5 KB per-expression limit.Changes
.github/workflows/scripts/autoloop_scheduler.py(de-indented, shebang + docstring added; no logic changes)..github/workflows/autoloop.mdwith a one-liner;env:block is unchanged so the script reads the same variables:autoloop.lock.ymlviagh aw compile autoloop. Largest compiledrun:expression drops from 23.2 KB → 3.5 KB.The script resolves at runtime because the workflow's existing
checkout:step makes it available at the Actions workspace root.Not addressed
Code review flagged two pre-existing nits in the moved code (duplicate
programs_dir/autoloop_dir, unusedfile_program_titles). Left alone — unrelated to the size fix and present in the original heredoc.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/actions/github-script/git/ref/tags/v9/usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq .object.sha .py(http block)https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v0.68.3/usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v0.68.3 --jq .object.sha(http block)If you need me to access, download, or install something from one of these locations, you can either: