Skip to content

workflows: rebuild branch containers on a schedule - #208

Merged
aparcar merged 1 commit into
openwrt:mainfrom
BKPepe:scheduled-rebuilds
Aug 17, 2026
Merged

workflows: rebuild branch containers on a schedule#208
aparcar merged 1 commit into
openwrt:mainfrom
BKPepe:scheduled-rebuilds

Conversation

@BKPepe

@BKPepe BKPepe commented Aug 13, 2026

Copy link
Copy Markdown
Member

The -openwrt-24.10 container tags on Docker Hub were last pushed on 2025-12-14 with kernel 6.6.119 baked in. The 24.10-SNAPSHOT feeds have since moved to kernel 6.6.151, and the old kmods directories were removed from the download server. As a result, opkg update inside the containers fails with a 404 on the kmods feed.

This currently breaks the runtime-test phase of openwrt/packages PRs against openwrt-24.10 (see e.g. openwrt/packages#30260, where the package compiles on all architectures but the runtime tests fail with a 404).

containers.yml is only triggered manually, and release-tag dispatches do not refresh the branch snapshot tags, so the branch containers can become stale until someone manually rebuilds them.

Add a schedule trigger to containers.yml: a scheduled run only dispatches the workflow for main and the maintained release branches and skips the build jobs, so scheduled runs stay identical to manual ones (a schedule event carries no ref input). GITHUB_TOKEN should be sufficient to create the workflow_dispatch events, so no additional secrets are needed. The cron and the branch list can be adjusted as needed.

In the meantime, could a maintainer please dispatch containers.yml with ref=openwrt-24.10 (and ideally ref=openwrt-25.12) by hand? Dispatching requires admin rights, so I cannot do it myself.

References

Copilot AI lite review requested due to automatic review settings August 13, 2026 09:11

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@BKPepe

BKPepe commented Aug 13, 2026

Copy link
Copy Markdown
Member Author

@aparcar Please can you take a look what is going on? We have broken CI/CD for stable branches in the packages feed for a few months already.

@aparcar

aparcar commented Aug 17, 2026

Copy link
Copy Markdown
Member

Why is this in its own file instead of the workflow it's actually triggering?

The rootfs, sdk and imagebuilder containers for the release branches
are only rebuilt when someone triggers containers.yml by hand. The
-openwrt-24.10 tags on Docker Hub were last pushed in December 2025
with kernel 6.6.119 baked in, while the 24.10-SNAPSHOT feeds have
moved on to 6.6.151, so every runtime test in the packages CI fails
with a 404 on the kmods feed.

Add a schedule trigger: a scheduled run only dispatches the workflow
for main and the maintained release branches and skips the build
jobs. Going through workflow_dispatch keeps scheduled runs identical
to manual ones, since a schedule event carries no ref input and the
rest of the workflow is driven by it. GITHUB_TOKEN may create
workflow_dispatch events, so no extra secrets are needed.
@BKPepe
BKPepe force-pushed the scheduled-rebuilds branch from d328d30 to 5c4901d Compare August 17, 2026 07:49
@BKPepe

BKPepe commented Aug 17, 2026

Copy link
Copy Markdown
Member Author

Okay, good suggestion! Reworked. Hopefully, it is okay now.

Verified in my fork that the schedule path dispatches the three branch runs and skips the build jobs: https://github.com/BKPepe/docker/actions/runs/32011045091

@aparcar
aparcar merged commit 09ba01e into openwrt:main Aug 17, 2026
200 of 202 checks passed
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.

3 participants