Codeberg/Community
54
327
Fork
You've already forked Community
12

Matrix evaluation for jobs.*.runs-on appears to have regressed #2320

Open
opened 2026年01月17日 03:54:22 +01:00 by alexrp · 3 comments

Comment

Since the v14 deployment, Zig's translate-c CI has been doing weird things: https://codeberg.org/ziglang/translate-c/actions/runs/66

If you click into each job, you can see that they're all picked up by zach and orange - both aarch64-macos-labeled machines! So something is funky with matrix evaluation, I suspect. What's interesting is that these matrix.host checks seem to be seeing the correct values, but if I schedule a run manually, all 4 jobs are waiting for a runner with the labels self-hosted and aarch64-macos.

cc @Gusted @mfenniak

### Comment Since the v14 deployment, Zig's translate-c CI has been doing weird things: https://codeberg.org/ziglang/translate-c/actions/runs/66 If you click into each job, you can see that they're all picked up by `zach` and `orange` - both `aarch64-macos`-labeled machines! So something is funky with matrix evaluation, I suspect. What's interesting is that [these](https://codeberg.org/ziglang/translate-c/src/commit/827524d4c4b7dac3c5ee584d311c928b0a1c70ac/.forgejo/workflows/ci.yml#L51-L68) `matrix.host` checks seem to be seeing the correct values, but if I schedule a run manually, all 4 jobs are waiting for a runner with the labels `self-hosted` and `aarch64-macos`. cc @Gusted @mfenniak

I'll take a look into this, but I am stacked up with other Forgejo 14 issues as well. Can you provide the label configs for your runners so that I can set up a similar reproduction case? The workflow looks straight forward, but this additional info would provide the information I'd need on the runner side to make a clean reproduction.

I'll take a look into this, but I am stacked up with other Forgejo 14 issues as well. Can you provide the label configs for your runners so that I can set up a similar reproduction case? The workflow looks straight forward, but this additional info would provide the information I'd need on the runner side to make a clean reproduction.
Author
Copy link

FreeBSD:

 "labels": [
 "self-hosted:host",
 "x86_64-freebsd:host"
 ]

Linux:

 "labels": [
 "self-hosted:host",
 "x86_64-linux:host"
 ]

macOS:

 "labels": [
 "self-hosted:host",
 "aarch64-macos:host"
 ]

Windows:

 "labels": [
 "self-hosted:host",
 "x86_64-windows:host"
 ]
FreeBSD: ``` "labels": [ "self-hosted:host", "x86_64-freebsd:host" ] ``` Linux: ``` "labels": [ "self-hosted:host", "x86_64-linux:host" ] ``` macOS: ``` "labels": [ "self-hosted:host", "aarch64-macos:host" ] ``` Windows: ``` "labels": [ "self-hosted:host", "x86_64-windows:host" ] ```

This is a regression in the workflow parser in Forgejo 14, specifically when runs-on is an array and references ${{ matrix.... }} in an expression. PR for the core fix is up at https://code.forgejo.org/forgejo/runner/pulls/1307, but as it is an update to a library used by Forgejo it will require a few additional steps to get into a Forgejo release after merge.

As a short-term workaround: runs-on: ${{ fromJSON(format('["self-hosted", "{0}"]', matrix.host)) }} avoids the bug and behaves the same.

This is a regression in the workflow parser in Forgejo 14, specifically when `runs-on` is an array and references `${{ matrix.... }}` in an expression. PR for the core fix is up at https://code.forgejo.org/forgejo/runner/pulls/1307, but as it is an update to a library used by Forgejo it will require a few additional steps to get into a Forgejo release after merge. As a short-term workaround: `runs-on: ${{ fromJSON(format('["self-hosted", "{0}"]', matrix.host)) }}` avoids the bug and behaves the same.
Sign in to join this conversation.
No Branch/Tag specified
main
No results found.
Labels
Clear labels
accessibility

Reduces accessibility and is thus a "bug" for certain user groups on Codeberg.
bug

Something is not working the way it should. Does not concern outages.
bug
infrastructure

Errors evidently caused by infrastructure malfunctions or outages
Codeberg

This issue involves Codeberg's downstream modifications and settings and/or Codeberg's structures.
contributions welcome

Please join the discussion and consider contributing a PR!
docs

No bug, but an improvement to the docs or UI description will help
duplicate

This issue or pull request already exists
enhancement

New feature
infrastructure

Involves changes to the server setups, use `bug/infrastructure` for infrastructure-related user errors.
legal

An issue directly involving legal compliance
licence / ToS

involving questions about the ToS, especially licencing compliance
please chill
we are volunteers

Please consider editing your posts and remember that there is a human on the other side. We get that you are frustrated, but it's harder for us to help you this way.
public relations

Things related to Codeberg's external communication
question

More information is needed
question
user support

This issue contains a clearly stated problem. However, it is not clear whether we have to fix anything on Codeberg's end, but we're helping them fix it and/or find the cause.
s/Forgejo

Related to Forgejo. Please also check Forgejo's issue tracker.
s/Forgejo/migration

Migration related issues in Forgejo
s/Pages

Issues related to the Codeberg Pages feature
s/Weblate

Issue is related to the Weblate instance at https://translate.codeberg.org
s/Woodpecker

Woodpecker CI related issue
security

involves improvements to the sites security
service

Add a new service to the Codeberg ecosystem (instead of implementing into Gitea)
upstream

An open issue or pull request to an upstream repository to fix this issue (partially or completely) exists (i.e. Gitea, Forgejo, etc.)
wontfix

Codeberg's current set of contributors are not planning to spend time on delegating this issue.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Codeberg/Community#2320
Reference in a new issue
Codeberg/Community
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?