Switch autoloop workflow pre-steps from Python to JavaScript (Node.js)#12
Open
Switch autoloop workflow pre-steps from Python to JavaScript (Node.js)#12
Conversation
…t (actions/github-script) Replace python3 heredocs with node heredocs in: - workflows/autoloop.md: pre-step scheduling logic - workflows/sync-branches.md: branch sync logic Update test infrastructure: - tests/conftest.py: extract JS functions and call via Node.js subprocess - tests/test_scheduling.py: update docstrings and line references All 88 existing tests pass. Agent-Logs-Url: https://github.com/githubnext/autoloop/sessions/639174de-6b45-471f-878b-05ffaca3cdfa Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
Agent-Logs-Url: https://github.com/githubnext/autoloop/sessions/639174de-6b45-471f-878b-05ffaca3cdfa Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
…d add inline comments for unicode escapes Agent-Logs-Url: https://github.com/githubnext/autoloop/sessions/639174de-6b45-471f-878b-05ffaca3cdfa Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update autoloop workflow to use actions/github-script
Switch autoloop workflow pre-steps from Python to JavaScript (Node.js)
Apr 3, 2026
Contributor
|
@copilot resolve the merge conflicts in this pull request |
Resolve merge conflict in .gitignore (keep both entries). Auto-merge for workflows/autoloop.md incorporated upstream changes (experiment log removal from PR #8). Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
Contributor
Author
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.
Replace
python3heredocs withnodeheredocs in both workflow files, aligning the pre-step runtime withactions/github-script.Workflow changes
workflows/autoloop.md: Scheduling pre-step rewritten in JS —parseMachineState,parseSchedule,getProgramName,readProgramState, program scanning, issue fetching viafetch(), selection logicworkflows/sync-branches.md: Branch sync rewritten in JS usingchild_process.spawnSyncfor git operationsBefore:
After:
Test infrastructure
tests/conftest.py: Extracts JS functions from theJSEOFheredoc, writes to a temp.cjsmodule, calls vianodesubprocess. Python wrappers handle type conversion (e.g.,parseSchedulereturns ms → wrapped totimedelta).tests/test_scheduling.py: Updated docstrings only; all 88 tests pass unchanged against the JS implementation.