Skip to content

Forward Go cache paths to the agent - #11415

Merged
lpcox merged 3 commits into
mainfrom
copilot/fix-go-builtin-support
Nov 10, 2026
Merged

lpcox merged 3 commits into
mainfrom
copilot/fix-go-builtin-support

Conversation

Copilot AI commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Go builds could lose their configured build and module cache paths when launched through AWF. Forwarding these variables lets Go use workflow-provisioned caches.

  • Environment passthrough: Forward GOCACHE and GOMODCACHE by default, while preserving the existing environment-exclusion behavior.
  • Example:
    GOCACHE=/tmp/gh-aw/agent/go-build-cache
    GOMODCACHE=/tmp/gh-aw/agent/go-mod-cache

Copilot AI linked an issue Nov 10, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Fix go builtin support issue Forward Go cache paths to the agent Nov 10, 2026
Copilot AI requested a review from lpcox November 10, 2026 16:35
@lpcox
lpcox marked this pull request as ready for review November 10, 2026 16:38
Copilot AI adaptive review requested due to automatic review settings November 10, 2026 16:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the Go cache environment passthrough change.

No open issues 🎉

What changed in this PR

This PR lets Go builds launched through AWF retain workflow-configured cache paths, addressing the cache environment passthrough portion of #11414.

Changes:

  • Forward GOCACHE and GOMODCACHE by default through the existing environment-exclusion mechanism.
  • Add a regression test confirming both cache paths reach the agent environment.
File Description
src/​services/​agent-environment/​env-passthrough.ts Adds Go cache variables to the default passthrough list.
src/​services/​agent-environment/​env-passthrough.test.ts Tests forwarding of Go build and module cache paths.

Review effort: Balanced (auto)

@lpcox

lpcox commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

@copilot merge main and resolve conflicts

Copilot AI commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

@copilot merge main and resolve conflicts

Merged main cleanly; no conflicts needed resolution. Merge commit: 454146b.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Copilot review passed with no inline comments.

@copilot Add the ready-for-aw label to this PR to trigger agentic CI smoke tests.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Coverage Check Passed

Overall Coverage

Metric Base PR Delta
Lines 93.83% 93.83% ➡️ +0.00%
Statements 92.38% 92.38% ➡️ +0.00%
Functions 93.06% 93.06% ➡️ +0.00%
Branches 86.76% 86.76% ➡️ +0.00%
📁 Per-file Coverage Changes (1 files)
File Lines (Before → After) Statements (Before → After)
src/commands/main-action.ts 92.0% → 91.7% (-0.25%) 91.7% → 91.4% (-0.24%)

Coverage comparison generated by scripts/ci/compare-coverage.ts

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤

📰 BREAKING: Report filed by Smoke Copilot

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Smoke Cloud Hypervisor completed. Cloud Hypervisor + Copilot passed.

Cloud Hypervisor + Copilot smoke test by Smoke Cloud Hypervisor

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded.

Smoke Chroot

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Smoke Chroot · auto (Claude Sonnet 5.5) · ~14 AIC · ⊞ 8.2K · ◷

Tested by Smoke Chroot

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

🛡️ Smoke Copilot Network Isolation confirmed the egress allowlist is enforced. ✅

Smoke Copilot Network Isolation

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Smoke Copilot Network Isolation · auto (Claude Sonnet 5.5) · ~15 AIC · ⊞ 9.8K · ◷

🛡️ Egress verdict from Smoke Copilot Network Isolation

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Security Guard has started processing this pull request

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

✅ Build Test Suite completed successfully!

Generated by Build Test Suite for #11415

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

✅ Smoke Claude passed

Generated by Smoke Claude for #11415

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓

🔑 BYOK report filed by Smoke Copilot BYOK

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

🔌 Smoke Services — All services reachable! ✅

🔌 Service connectivity validated by Smoke Services

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅

📡 OTel tracing validated by Smoke OTel Tracing

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟

Smoke Codex

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Smoke Codex · gpt54 · ~14 AIC · ⊞ 22.5K · ◷

🔮 The oracle has spoken through Smoke Codex

@github-actions

Copy link
Copy Markdown
Contributor

Smoke Test: Claude Engine Validation

Check Result
API status ✅ PASS
GitHub check ✅ PASS
File status ✅ PASS

Overall result: PASS

Generated by Smoke Claude for #11415 · claude · haiku45 · ~36 AIC · ⊞ 6.3K · ◷
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor

Chroot Version Comparison

Runtime Host Version Chroot Version Match?
Python Python 3.12.16 Python 3.12.16 ✅
Node.js v24.22.2 v22.23.2 ❌
Go go1.22.12 go1.22.12 ✅

Result: Not all tests passed. Node.js differs between the host (v24) and the chroot (v22), so the smoke-chroot label was not added.

Tested by Smoke Chroot
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor

Cloud Hypervisor + Copilot smoke test

  1. Merged PR lookup: PASS
  2. github.com connectivity: PASS (HTTP 200)
  3. File write/read: PASS
  4. example.com blocked: PASS (HTTP 000)

Overall: PASS

Cloud Hypervisor + Copilot smoke test by Smoke Cloud Hypervisor
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor

Smoke Copilot: PRs: "Enable Copilot tool images in API-proxy mode", "chore: upgrade gh-aw workflows to v1.2.2"

  • GitHub MCP ✅
  • GitHub.com ✅
  • File write/read ✅

Overall: PASS — @Copilot @lpcox

📰 BREAKING: Report filed by Smoke Copilot
Add label ready-for-aw to run again

@github-actions github-actions Bot added the smoke-copilot-network-isolation Copilot network-isolation egress smoke test label Nov 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

EGRESS_RESULT allow=pass deny=pass

  • ✅ Allowed domain (api.github.com): HTTP 200
  • ✅ Blocked domain (example.com): blocked
  • Overall: PASS — cc @lpcox

🛡️ Egress verdict from Smoke Copilot Network Isolation
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor

🏗️ Build Test Suite Results

Ecosystem Project Build/Install Tests Status
Bun elysia ✅ 1/1 passed ✅ PASS
Bun hono ✅ 1/1 passed ✅ PASS
C++ fmt ✅ N/A ✅ PASS
C++ json ✅ N/A ✅ PASS
Deno oak N/A 1/1 passed ✅ PASS
Deno std N/A 1/1 passed ✅ PASS
.NET hello-world ✅ N/A ✅ PASS
.NET json-parse ✅ N/A ✅ PASS
Go color ✅ ok ✅ PASS
Go env ✅ ok ✅ PASS
Go uuid ✅ ok ✅ PASS
Java gson ❌ 0/0 (not run) ❌ FAIL
Java caffeine ❌ 0/0 (not run) ❌ FAIL
Node.js clsx ✅ all passed ✅ PASS
Node.js execa ✅ all passed ✅ PASS
Node.js p-limit ✅ all passed ✅ PASS
Rust fd ✅ 1/1 passed ✅ PASS
Rust zoxide ✅ 1/1 passed ✅ PASS

Overall: 7/8 ecosystems passed — FAIL

Failure details

  • Java: mvn compile failed. First run: Could not create local repository at /home/runner/.m2/repository (~/.m2 is root-owned). Retried with a temp local repo: Plugin org.apache.maven.plugins:maven-resources-plugin:3.4.0 or one of its dependencies could not be resolved (PluginResolutionException). The prescribed squid-proxy:3128 proxy in settings.xml is probably not reachable in this environment.
  • .NET needed XDG_RUNTIME_DIR set to a writable directory because /run/user/1001 was missing. It passed after that.

The build-test label was not added because of the Java failures.

Generated by Build Test Suite for #11415 · copilot · auto (Claude Sonnet 5.5) · ~27 AIC · ⊞ 5.9K · ◷
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor

OTEL smoke test

  • ✅ S1: otel.js loads; exports startRequestSpan, setTokenAttributes, setBudgetAttributes, endSpan, endSpanError, routerCallTracing, shutdown, isEnabled
  • ✅ S2: 3 OTEL suites, 75/75 tests pass
  • ✅ S3: trace ctx forwarded in env-passthrough.ts; OTEL vars in api-proxy-env-config.ts
  • ✅ S4: onUsage hook present in token-tracker-http.js
  • ✅ S5: /tmp/gh-aw/otel.jsonl has 1 record (span export observed)

📡 OTel tracing validated by Smoke OTel Tracing
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor

Merged PRs: Enable Copilot tool images in API-proxy mode; chore: upgrade gh-aw workflows to v1.2.2
PR details: Allow Runner Doctor to review untrusted PR content; Require source-level evidence in Runtime Doctor reviews
Playwright: ❌
File write/read: ✅
Build AWF: ✅
Discussion comment: ❌
Overall: FAIL

🔮 The oracle has spoken through Smoke Codex
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor

Services smoke test: PASS

  • ✅ Redis PING → PONG
  • ✅ pg_isready → accepting connections
  • ✅ psql SELECT 1 → 1

🔌 Service connectivity validated by Smoke Services
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor

Smoke Test: Copilot BYOK (Direct) Mode

✅ PASS

Test Results:

  • ✅ GitHub MCP connectivity (recent merged PRs verified)
  • ✅ GitHub.com connectivity (HTTP 200)
  • ✅ File write/read test (smoke test artifact confirmed)
  • ✅ BYOK inference path (direct BYOK mode via api-proxy → api.githubcopilot.com)

Running in direct BYOK mode (COPILOT_PROVIDER_API_KEY) with api-proxy sidecar injection.

🔑 BYOK report filed by Smoke Copilot BYOK
Add label ready-for-aw to run again

@lpcox
lpcox merged commit 7771bc4 into main Nov 10, 2026
136 of 137 checks passed
@lpcox
lpcox deleted the copilot/fix-go-builtin-support branch November 10, 2026 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Go builtin support broken

3 participants