Open
Conversation
Agent-Logs-Url: https://github.com/githubnext/autoloop/sessions/df881075-c8de-46ce-8314-6945f02f4f05 Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add end-to-end install integration test for Copilot CLI
Add end-to-end install integration test harness
Apr 23, 2026
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.
Manual-dispatch test that drives
install.mdend-to-end against a long-lived target repo (mrjf/autoloop-test) using the Copilot CLI as the agent, then exercises one iteration each across the program-source × strategy matrix and tears down test debris on exit. Catches regressions ininstall.md,gh aw compileidempotency, scheduler discovery, strategy-section bleed, and first-iteration completion — none of which any other test covers.Driver (
tests/install-integration/run.sh)gh,copilot,python3,git,gh auth), capturesorigin/mainSHA, pre-test reset (idempotent), clones target to a temp dir.prompt.mdtocopilot --allow-all-tools; grepsINSTALL_PR=<url>from stdout.mainand creates oneautoloop-program-labelled issue, then sequentiallygh workflow run autoloop.lock.yml -f program=…, polls, and callsverify-phase2.shper program.trap EXIT; honors--keep/KEEP_STATE_ON_FAILURE=1.Prompt (
prompt.md)External so it can be edited without touching the driver. Tells the agent to follow
install.mdexactly through Step 5 and emitINSTALL_PR=<url>; explicitly stops before Step 6 so program creation stays deterministic.Phase 1 (
verify-phase1.sh)gh aw initartifacts,autoloop.md,shared/,autoloop.lock.yml, issue template,.autoloop/programs/.shasum -a 256before/after a secondgh aw compile autoloop; diffs the lock on mismatch.EXPECT_SYNC_BRANCHEStoggle (set by the driver from the source repo) keeps it correct after Remove sync-branches workflow — made redundant by per-iteration Step 3 ahead/behind logic #52 lands.Phase 2 (
verify-phase2.sh <repo> <program> <run-id> <strategy>)Per-program assertions matching the comment's seven points:
conclusion == success.[Autoloop: <name>]issue exists.<!-- AUTOLOOP:STATUS -->comment present.<name>.mdonmemory/autoloopwith a Machine State table.autoloop/<name>branch exists OR latest comment carries a rejection marker.plain, a negative assertion that neither## 🧬 Populationnor## ✅ Test Harnessappears (catches strategy-discovery bleed).## 🧬 Population## ✅ Test Harness## 📊 Iteration History+ negativeTeardown (
teardown.sh <repo> <base-sha>)Idempotent. Force-resets
mainto the captured base SHA only if drifted, closesautoloop-program-labelled and[Autoloop:-titled issues, closes test PRs (autoloop/*,install-autoloop) with--delete-branch, then sweeps remainingautoloop/*/install-autoloop/memory/autolooprefs viagh api -X DELETE.Actions wrapper (
.github/workflows/install-integration-test.yml)workflow_dispatchonly — not on push, PR, or schedule. Inputs:keep_state_on_failure,install_test_repo. Installsgh-awand@github/copilot, runsrun.shwithINSTALL_TEST_TOKEN(PAT withreposcope on the target).Notes for reviewers
gh/gitcalls use portable flags (shasum -a 256,base64 --decode) so local mode works on macOS as well as Linux runners.memory/autoloopbranch.program.mdreferencesstrategy/openevolve.mdand program 2 referencesstrategy/test-driven.md; the test treats those strategy files as the iteration's responsibility (issue body's expected behavior), which lets the harness ship before the strategy templates do.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/bogus.invalid/bogus/issues/usr/bin/python /usr/bin/python /home/REDACTED/work/autoloop/autoloop/workflows/scripts/autoloop_scheduler.py(http block)https://api.github.com/repos/bogus.invalid/bogus/pulls/usr/bin/python /usr/bin/python /home/REDACTED/work/autoloop/autoloop/workflows/scripts/autoloop_scheduler.py(http block)If you need me to access, download, or install something from one of these locations, you can either: