runner/RELEASE-NOTES.md
rowan-allspice 30029567f7
feat: allow graceful shutdowns (#546)
Add a `Shutdown(context.Context) error` method to the Poller. Calling this method will first shutdown all active polling, preventing any new jobs from spawning. It will then wait for either all jobs to finish, or for the context to be cancelled. If the context is cancelled, it will then force all jobs to end, and then exit.

Fixes https://gitea.com/gitea/act_runner/issues/107

Co-authored-by: Rowan Bohde <rowan.bohde@gmail.com>
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/546
Reviewed-by: Jason Song <i@wolfogre.com>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: rowan-allspice <rowan-allspice@noreply.gitea.com>
Co-committed-by: rowan-allspice <rowan-allspice@noreply.gitea.com>
(cherry picked from commit d1d3cad4b0bfd0bfc5df344306f304043ff63223)

Conflicts:
	internal/pkg/config/config.example.yaml
	internal/pkg/config/config.go
	scripts/run.sh
	trivial context conflicts
2024-06-03 15:14:50 +02:00

4.9 KiB

Release Notes

3.5.0

3.4.1

  • Fixes a regression introduced in 3.4.0 by which a job with no image explicitly set would be bound to the host network instead of a custom network (empty string in the configuration file).

3.4.0

Although this version is able to run actions/upload-artifact@v4 and actions/download-artifact@v4, these actions will fail because it does not run against GitHub.com. A fork of those two actions with this check disabled is made available at:

and they can be used as shown in an example from the end-to-end test suite.

  • When running against codeberg.org, the default poll frequency is 30s instead of 2s.
  • Fix compatibility issue with actions/{upload,download}-artifact@v4.
  • Upgrade ACT v1.20.0 which brings:
    • [container].options from the config file is exposed in containers created by the workflows
    • the expressions in the value of jobs.<job-id>.runs-on are evaluated
    • fix a bug causing the evaluated expression of jobs.<job-id>.runs-on to fail if it was an array
    • mount act-toolcache:/opt/hostedtoolcache instead of act-toolcache:/toolcache
    • a few improvements to the readability of the error messages displayed in the logs
    • amd64 can be used instead of x86_64 and arm64 intead of aarch64 when specifying the architecture
    • fixed YAML parsing bugs preventing dispatch workflows to be parsed correctly
    • add support for runs-on.labels which is equivalent to runs-on followed by a list of labels
    • the expressions in the service ports and volumes values are evaluated
    • network aliases are only supported when the network is user specified, not when it is provided by the runner
  • If [runner].insecure is true in the configuration, insecure cloning actions is allowed

3.3.0

  • Support IPv6 with addresses from a private range and NAT for docker:// with --enable-ipv6 and [container].enable_ipv6 lxc:// always

3.2.0

3.1.0

The self-hosted label that was hardwired to be a LXC container running debian:bullseye was reworked and documented (user guide and admin guide).

There now are two different schemes: lxc:// for LXC containers and host:// for running directly on the host.

  • Support the host:// scheme for running directly on the host.
  • Support the lxc:// scheme in labels
  • Update code.forgejo.org/forgejo/act v1.14.0 to implement both self-hosted and LXC schemes

3.0.3

3.0.2

3.0.1

3.0.0

  • Publish a rootless OCI image
  • Refactor the release process

2.5.0

2.4.0

2.3.0