fix: interpolate job name after matrix expansion #1354

Merged
mfenniak merged 1 commit from aahlenst/runner:name-incomplete-matrix into main 2026-02-07 04:12:40 +00:00
Member

Currently, a job name is interpolated before an incomplete matrix is expanded. That is a problem when the job name references a matrix variable because the matrix variable is not known until the matrix is expanded and it gets replaced by an empty string instead of the matrix variable's value. This change delays the interpolation of the job name until after the matrix has been expanded so that the variable gets replaced with the proper value.

Fixes https://codeberg.org/forgejo/forgejo/issues/11177.

  • bug fixes
    • PR: fix: interpolate job name after matrix expansion
Currently, a job name is interpolated before an incomplete matrix is expanded. That is a problem when the job name references a matrix variable because the matrix variable is not known until the matrix is expanded and it gets replaced by an empty string instead of the matrix variable's value. This change delays the interpolation of the job name until after the matrix has been expanded so that the variable gets replaced with the proper value. Fixes https://codeberg.org/forgejo/forgejo/issues/11177. <!--start release-notes-assistant--> <!--URL:https://code.forgejo.org/forgejo/runner--> - bug fixes - [PR](https://code.forgejo.org/forgejo/runner/pulls/1354): <!--number 1354 --><!--line 0 --><!--description Zml4OiBpbnRlcnBvbGF0ZSBqb2IgbmFtZSBhZnRlciBtYXRyaXggZXhwYW5zaW9u-->fix: interpolate job name after matrix expansion<!--description--> <!--end release-notes-assistant-->
aahlenst force-pushed name-incomplete-matrix from 20ad4c0427
Some checks failed
issue-labels / release-notes (pull_request_target) Successful in 3s
checks / Build Forgejo Runner (pull_request) Failing after 18s
checks / integration tests (docker-latest) (pull_request) Has been skipped
checks / Build unsupported platforms (pull_request) Has been skipped
checks / integration tests (docker-stable) (pull_request) Has been skipped
checks / runner exec tests (pull_request) Has been skipped
checks / validate mocks (pull_request) Successful in 31s
checks / validate pre-commit-hooks file (pull_request) Successful in 35s
to e3637a08d6
All checks were successful
checks / Build Forgejo Runner (pull_request) Successful in 27s
checks / validate mocks (pull_request) Successful in 30s
checks / validate pre-commit-hooks file (pull_request) Successful in 31s
checks / Build unsupported platforms (pull_request) Successful in 19s
checks / runner exec tests (pull_request) Successful in 28s
checks / integration tests (docker-latest) (pull_request) Successful in 9m9s
checks / integration tests (docker-stable) (pull_request) Successful in 11m37s
issue-labels / release-notes (pull_request_target) Successful in 3s
cascade / debug (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Successful in 5s
cascade / forgejo (pull_request_target) Successful in 1m33s
2026-02-06 22:03:22 +00:00
Compare
Contributor

cascading-pr updated at actions/setup-forgejo#875

cascading-pr updated at https://code.forgejo.org/actions/setup-forgejo/pulls/875
mfenniak approved these changes 2026-02-06 22:40:34 +00:00
mfenniak left a comment
Owner

Looks good to me. 👍 Will run the supplemental tests and then we can give it a go. Requires a forgejo jobparser upgrade to make the fix effective.

Looks good to me. 👍 Will run the supplemental tests and then we can give it a go. Requires a forgejo jobparser upgrade to make the fix effective.
Contributor
cascading-pr updated at https://codeberg.org/forgejo/forgejo/pulls/11180
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 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
forgejo/runner!1354
No description provided.