Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

runner-clean: normalize http(s)_proxy to runner's advertised apt proxy - #24

#24
Merged
igorpecovnik merged 1 commit into
mainarmbian/actions:mainfrom
fix/runner-clean-normalize-proxyarmbian/actions:fix/runner-clean-normalize-proxyCopy head branch name to clipboard
Jun 28, 2026
Merged

runner-clean: normalize http(s)_proxy to runner's advertised apt proxy#24
igorpecovnik merged 1 commit into
mainarmbian/actions:mainfrom
fix/runner-clean-normalize-proxyarmbian/actions:fix/runner-clean-normalize-proxyCopy head branch name to clipboard

Conversation

@igorpecovnik

Copy link
Copy Markdown
Member

Problem

Image builds were failing on self-hosted runners that have no proxy in NetBox (e.g. kspace, insanisfiction):

W: Failed to fetch http://ports.ubuntu.com/.../InRelease  Unable to connect to 10.0.40.2:3142

The runner's json entry is empty and the workflow only sets APT_PROXY_ADDR (also empty) — yet apt used 10.0.40.2:3142. Source: a stale http_proxy baked into the runner's own environment (a datacenter leftover; invisible to a host-filesystem grep, survives reboots, identical across hosts because runners are provisioned the same). build's docker.sh forwards http_proxy into the build container, so apt there points at an unreachable cache and times out.

Fix

runner-clean already resolves this runner's config from the NetBox json. Make that json the single source of truth for the generic proxy env too: set http_proxy/https_proxy (lower+upper) to the advertised apt_proxy, or blank them when the runner has none. Written via $GITHUB_ENV, so it overrides whatever the runner injected, for every later step and for docker.sh.

Net effect: a stale runner proxy can no longer leak into builds. Datacenter runners (with a real apt_proxy) are unchanged; proxy-less runners get a clean environment.

Scope

Pre-existing issue (the old generated workflows hit it too). Fixing it here covers every consumer of runner-clean@main at once, without touching each runner's provisioning.

…proxy

A stale http_proxy in a self-hosted runner's own environment (a datacenter
leftover not visible to a host-filesystem grep) leaked into builds: docker.sh
forwards http_proxy into the build container, so apt on a runner with no proxy
pointed at an unreachable cache (10.0.40.2:3142) and timed out — breaking image
builds on non-datacenter runners (kspace, insanisfiction, ...).

Make the NetBox json the single source of truth: set http_proxy/https_proxy
(lower+upper) to the runner's advertised apt_proxy, or blank them when it has
none. Written via $GITHUB_ENV so it overrides the runner-injected value for all
later steps and docker.sh.

Signed-off-by: Igor Pecovnik <igor@armbian.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.