Fix integration tests: replace AW workflow with regular GHA workflow - #179
Merged
pelikhan merged 3 commits intoJul 26, 2026
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix authentication error in integration tests
Fix integration tests: replace AW workflow with regular GHA workflow
Jul 26, 2026
pelikhan
reviewed
Jul 26, 2026
Comment on lines
+29
to
+50
| - name: Create failure issue | ||
| if: failure() | ||
| uses: actions/github-script@v7 | ||
| with: | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
| script: | | ||
| const run_url = `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`; | ||
| await github.rest.issues.create({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| title: `[rig-integration] Integration test run: failed`, | ||
| body: [ | ||
| `## Integration Test Results`, | ||
| ``, | ||
| `**Date**: ${new Date().toISOString().split("T")[0]}`, | ||
| `**Workflow run**: ${context.runId}`, | ||
| ``, | ||
| `Some or all integration tests in \`scripts/haiku.integration.test.ts\` failed.`, | ||
| ``, | ||
| `See the [workflow run](${run_url}) for full error output and stack traces.`, | ||
| ].join("\n"), | ||
| }); |
Collaborator
There was a problem hiding this comment.
@copilot remove and remove issues:write permissions, add copilot-requests:write permissions
Contributor
Author
There was a problem hiding this comment.
Done in e3a6ca7 — removed issues: write, added copilot-requests: write, and dropped the failure-issue step (which depended on that permission).
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
pelikhan
approved these changes
Jul 26, 2026
pelikhan
marked this pull request as ready for review
July 26, 2026 15:24
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.
The
haiku.integration.test.tsintegration tests were failing withAUTHENTICATION_FAILEDbecause the AWF security model explicitly excludesCOPILOT_GITHUB_TOKENfrom the sandbox container. WithCOPILOT_SDK_URIvisible (so tests ran) but no credentials reachable by child processes, all three tests failed every run.Changes
Remove
rig-integration.md+rig-integration.lock.yml: The agentic workflow approach is fundamentally incompatible with tests that spawn credentialed child processes — the AWF sandbox stripsCOPILOT_GITHUB_TOKENbefore the bash environment, so spawned subprocesses can never authenticate to the local SDK server at port 3002.Add
rig-integration.yml— a regular GitHub Actions workflow that:COPILOT_GITHUB_TOKENfrom repository secrets directly to the test environment--server(stdio) mode sinceCOPILOT_SDK_URIis absent; the bundled@github/copilotCLI inherits the token and authenticatesThe
COPILOT_GITHUB_TOKENsecret is already configured in the repository (it appeared in the AW workflow manifest).