fix: inputs containing '-' don't function in LXC executor #1336
Labels
No labels
FreeBSD
Kind/Breaking
Kind/Bug
Kind/Chore
Kind/DependencyUpdate
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
Windows
linux-powerpc64le
linux-riscv64
linux-s390x
run-end-to-end-tests
run-forgejo-tests
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo/runner!1336
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "mfenniak/forgejo-runner:fix-lxc-hyphen"
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?
Due to a dependency update failure in #1331, I was able to identify that #1287 introduced a regression in handling inputs that contain hyphens (
-) in them. With actions that are executed asusing: node20(and similar), inputs are provided as environment variables, such asINPUT_KEEP-STATEfor an inputkeep-state.As part of replacing
lxc-enterwithnsenter, a small shell script with/bin/shwas used to change the current process's cgroup to.lxc, matching thelxc-enterbehaviour. Experimentally,/bin/shwas found to strip out theINPUT_KEEP-STATEenvironment variable. This fix replaces/bin/shwith/usr/bin/bash. Note that pathing does not need to be dynamic (eg. no need to do/usr/bin/env bash) because the LXC environment supports Debian Bookworm & Trixie only at this time.I've verified that I can reproduce the error identified in #1331 and that this fix continues past that error in release testing simulation.
The regression in behaviour is present in runner v12.6.0 & v12.6.1.
cascading-pr updated at actions/setup-forgejo#859