Skip to content

build: upstream_url not used for setup #1623

@efahl

Description

@efahl

@aparcar Not sure how you want to handle this one...

In https://github.com/openwrt/asu/blob/main/asu/build.py#L211

where we run setup.sh, the value of environment["UPSTREAM_URL"] is not set, so the default FILE_HOST=mirror-03.infra... is used, even when the config settings are set to downloads.... On my local host, this bypasses the CDN for a bunch of files, most importantly the imagebuilder itself, and can cause timeouts on builds:

$ podman run -ti ghcr.io/openwrt/imagebuilder:mediatek-filogic-main

buildbot@984608bff4e5:~$ echo $FILE_HOST
mirror-03.infra.openwrt.org

buildbot@984608bff4e5:~$ . setup.sh
2026-04-16 13:07:31 URL:https://mirror-03.infra.openwrt.org/...

If I change the environment as below, works for me, but will that be ok on the production server?

asu/build.py line 163

-    environment: dict[str, str] = {}
+    environment: dict[str, str] = {
+        "UPSTREAM_URL": settings.upstream_url,
+    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions