Skip to content

Restore beta proxy env support with EnvHttpProxyAgent#342

Draft
parkerbxyz wants to merge 3 commits intobetafrom
issue-134-remove-custom-proxy-functionality
Draft

Restore beta proxy env support with EnvHttpProxyAgent#342
parkerbxyz wants to merge 3 commits intobetafrom
issue-134-remove-custom-proxy-functionality

Conversation

@parkerbxyz
Copy link
Contributor

@parkerbxyz parkerbxyz commented Mar 12, 2026

beta currently has no proxy handling in lib/request.js, but Node's built-in env-proxy support still requires NODE_USE_ENV_PROXY=1 at process startup. This restores proxy support on beta without respawning the action process, and adds CI coverage so future changes keep exercising the proxy path.

  • use Undici's EnvHttpProxyAgent in the shared request client whenever proxy env vars are present, so both main.js and post.js inherit the behavior automatically
  • add focused tests for proxy usage and NO_PROXY=* bypass
  • add an end-to-end workflow job that starts a local CONNECT proxy, runs the action with https_proxy, and asserts that traffic actually tunneled through the proxy
  • regenerate the AVA snapshots and bundled dist/ output

This keeps the runtime fix localized to lib/request.js and avoids the subprocess workaround explored in #284. I'd appreciate extra eyes on the proxy smoke test job since it becomes the long-term guardrail for this behavior.

Created with GitHub Desktop

Use Undici's EnvHttpProxyAgent in the shared request client so the beta branch keeps proxy support without relying on NODE_USE_ENV_PROXY or respawning the action process.

Add focused proxy tests and regenerate snapshots/dist.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@parkerbxyz parkerbxyz changed the base branch from main to beta March 12, 2026 18:32
@parkerbxyz parkerbxyz self-assigned this Mar 12, 2026
parkerbxyz and others added 2 commits March 12, 2026 12:19
Add a real end-to-end proxy job that starts a local CONNECT proxy, runs the action with https_proxy, and asserts that traffic actually tunneled through the proxy.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Remove the extra post-action API request from the proxy workflow job so it only verifies the action succeeds and that proxy traffic occurred.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant