chore: update forgejo-runner exec defaults and reword the help #1004
No reviewers
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
run-multi-platform-tests
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
forgejo/runner!1004
Loading…
Reference in a new issue
No description provided.
Delete branch "earl-warren/runner:wip-exec"
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?
The help is trimmed to a subset of options that are implemented. The unsupported options are made less visible in this way while still being available to avoid a breaking change. They can then be deprecated one by one at a later time.
Refs forgejo/runner#619
Refs forgejo/runner#577
65339d685cd26e633b71--container-daemon-socketparameter does not apply to runner #577@ -478,1 +478,4 @@// Trim the help to a subset of options that are supported. The unsupported options// are made less visible in this way while still being available to avoid a breaking change.// They can then be deprecated one by one.Not sure about deprecating some of them.
Are they deprecated because of known issues? If so, I'm not aware of them.
--forgejo-instanceis still necessary to get the origin parsing working--dryrunis a huge help in not having to manually addif: falselines again and again. If it doesn't fully work, I'd rather it be kept with a warning like "Experimental, might not work in all cases" and an issue somewhere to collect the cases where it needs improvement--listis extremely helpful when you aren't entirely sure how the runner finds workflows, and is much easier than tolsa bunch of different directories--insecure-secretsis actually very helpful for security: If I wanted to check whether my custom action accidentally logs a secret, I can set that to a known value, then grep the log. It's much harder to grep for the replacement value--pulland--rebuildcould be helpful, even if just for something like "let's make absolutely sure the runner has the newest image, so I can rule out that and look elsewhere"--networkis probably helpful in certain environments, e.g. when the hosted runner would also have access to some shared resources and you want to simulate that locallyWhen running within a repository with the origin remote set, here is what I get:
What specifically
--forgejo-instanceprovides in addition to this?The inconsistencies detailed at #619 are still happening.
Yes, I closed this pull request: fixing
--forgejo-instanceshould be handled in another pull request.@ -479,0 +488,4 @@-d, --debug enable debug log.--default-actions-url string Defines the default base url of the action. (default "https://data.forgejo.org")-C, --directory string working directory. (default ".")--env stringArray env to make available to actions with optional value (e.g. --env myenv=foo or --env myenv).Why not
-eas well?because it is not implemented currently
@ -479,0 +490,4 @@-C, --directory string working directory. (default ".")--env stringArray env to make available to actions with optional value (e.g. --env myenv=foo or --env myenv).--env-file string environment file to read and use as env in the containers. (default ".env")-E, --event string run a event name (e.g push, pull_request, ...).Should probably mention that the default is what
--detect-eventdid.good point
@ -479,0 +495,4 @@-i, --image string Docker image to use. (default "node:20-bookworm")-j, --job string run a specific job ID.-s, --secret stringArray secret to make available to actions with optional value (e.g. -s mysecret=foo or -s mysecret).--var stringArray variable to make available to actions with optional value (e.g. --var myvar=foo or --var myvar).Why not
-vas well?because it is not implemented currently
Pull request closed