Earl Warren
70154d2b7d
chore(ci): only run tests on the examples when they are modified ( #463 )
...
Save CPU horsepower.
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/463
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-01-28 15:39:43 +00:00
earl-warren
d89873dda7
fix: forgejo-runner-service.sh must not leak the env to the runner ( #461 )
...
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/461
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
2025-01-28 14:54:34 +00:00
Earl Warren
434e44b69e
fix: forgejo-runner-service.sh do not fail container does not exist
...
If the daemon cannot be stopped and the goal is to destroy the
container, just proceed instead of failing.
2025-01-28 15:46:45 +01:00
Earl Warren
625965c739
fix: forgejo-runner-service.sh must not leak the env to the runner
2025-01-28 15:46:45 +01:00
viceice
90ecfa1b29
build: use right mirror image of xx ( #459 )
...
Signed-off-by: viceice <michael.kriese@gmx.de>
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/459
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Co-authored-by: viceice <michael.kriese@gmx.de>
Co-committed-by: viceice <michael.kriese@gmx.de>
2025-01-28 12:39:41 +00:00
earl-warren
adad88969c
fix: forgejo-runner-service.sh misses LXC config & cache setting ( #455 )
...
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/455
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
2025-01-27 16:15:40 +00:00
Earl Warren
b79578d98e
feat: forgejo-runner-service.sh safeguard to avoid overheating
...
re-creating the LXC container from scratch is expensive. When
rebooting or when multiple units start at the same time, it may cause
an execessive load.
Use a global lock to guard this operation so they happen in sequence
and not in parallel. They typically take around one minute to complete
which means that in the event of a reboot, it will take around 1
minutes * the number of runners for the unlucky one to start.
During this interval workflows will have to wait.
2025-01-27 14:23:58 +01:00
Earl Warren
0232fe1255
fix: forgejo-runner-service.sh config.yml must point to the cache
...
It is not the default $HOME/.cache/actcache and must be set in
config.yml otherwise it won't be used.
2025-01-27 12:39:58 +01:00
Earl Warren
253eb51687
fix: forgejo-runner-service.sh misses LXC config
...
When re-creating the LXC container, the INPUTS_LXC_CONFIG must be
set otherwise it will always use the default.
2025-01-27 10:00:51 +01:00
Earl Warren
5f92ffdbc6
feat: systemd unit example for managing LXC containers ( #451 )
...
Refs: https://code.forgejo.org/forgejo/runner/issues/450
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/451
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-01-25 12:24:31 +00:00
Renovate Bot
5970e45df4
Update module google.golang.org/protobuf to v1.36.4 ( #453 )
...
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [google.golang.org/protobuf](https://github.com/protocolbuffers/protobuf-go ) | require | patch | `v1.36.3` -> `v1.36.4` |
---
### Release Notes
<details>
<summary>protocolbuffers/protobuf-go (google.golang.org/protobuf)</summary>
### [`v1.36.4`](https://github.com/protocolbuffers/protobuf-go/releases/tag/v1.36.4 )
[Compare Source](https://github.com/protocolbuffers/protobuf-go/compare/v1.36.3...v1.36.4 )
**Full Changelog**: https://github.com/protocolbuffers/protobuf-go/compare/v1.36.3...v1.36.4
Bug fixes:
[CL/642975](https://go-review.googlesource.com/c/protobuf/+/642975 ): reflect/protodesc: fix panic when working with dynamicpb
Maintenance:
[CL/643276](https://go-review.googlesource.com/c/protobuf/+/643276 ): internal_gengo: avoid allocations in rawDescGZIP() accessors
[CL/642857](https://go-review.googlesource.com/c/protobuf/+/642857 ): internal_gengo: switch back from string literal to hex byte slice
[CL/642055](https://go-review.googlesource.com/c/protobuf/+/642055 ): internal_gengo: use unsafe.StringData() to avoid a descriptor copy
[CL/638135](https://go-review.googlesource.com/c/protobuf/+/638135 ): internal_gengo: store raw descriptor in .rodata section
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "* 0-3 * * *" (UTC), Automerge - "* 0-3 * * *" (UTC).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMTcuMiIsInVwZGF0ZWRJblZlciI6IjM5LjExNy4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/453
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Co-authored-by: Renovate Bot <bot@kriese.eu>
Co-committed-by: Renovate Bot <bot@kriese.eu>
2025-01-25 06:53:56 +00:00
earl-warren
0e99df94b7
Merge pull request 'fix(tests): binds are not sorted' ( #97 ) from earl-warren/act:wip-test into main
...
Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/97
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
2025-01-23 16:45:52 +00:00
Earl Warren
d0abf2e1ea
chore(docs): 6.2.0 release notes ( #447 )
...
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/447
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-01-22 21:52:02 +00:00
Renovate Bot
80fd3f15fb
Update module code.forgejo.org/forgejo/act to v1.24.0 ( #448 )
...
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [code.forgejo.org/forgejo/act](https://code.forgejo.org/forgejo/act ) | replace | minor | `v1.23.1` -> `v1.24.0` |
---
### Release Notes
<details>
<summary>forgejo/act (code.forgejo.org/forgejo/act)</summary>
### [`v1.24.0`](https://code.forgejo.org/forgejo/act/compare/v1.23.1...v1.24.0 )
[Compare Source](https://code.forgejo.org/forgejo/act/compare/v1.23.1...v1.24.0 )
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "* 0-3 * * *" (UTC), Automerge - "* 0-3 * * *" (UTC).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMTcuMiIsInVwZGF0ZWRJblZlciI6IjM5LjExNy4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/448
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Co-authored-by: Renovate Bot <bot@kriese.eu>
Co-committed-by: Renovate Bot <bot@kriese.eu>
2025-01-22 21:43:29 +00:00
Earl Warren
e0facd1ee5
fix(tests): binds are not sorted
...
That creates false negative in test runs. Just keep one, there is no
value in having more.
2025-01-22 22:24:27 +01:00
Earl Warren
d92e4a8aff
feat: --hostname is allowed in container options ( #95 )
...
It is useful to set an alternative hostname when running a service
such as:
```yaml
services:
minio:
image: data.forgejo.org/oci/bitnami/minio:2024.8.17
options: >-
--hostname alternate.minio
```
Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/95
Reviewed-by: Kwonunn <kwonunn@noreply.code.forgejo.org>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-01-22 18:22:29 +00:00
Earl Warren
94f94a56d4
chore(release): migrate to invisible.forgejo.org ( #444 )
...
Also move all non-secret variables to `vars` so that they are easier
to maintain. The workflow was designed back when Forgejo Actions
variables did not exist.
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/444
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-01-22 10:35:09 +00:00
Renovate Bot
f6a0cd8954
Update module google.golang.org/protobuf to v1.36.3 ( #440 )
...
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [google.golang.org/protobuf](https://github.com/protocolbuffers/protobuf-go ) | require | patch | `v1.36.2` -> `v1.36.3` |
---
### Release Notes
<details>
<summary>protocolbuffers/protobuf-go (google.golang.org/protobuf)</summary>
### [`v1.36.3`](https://github.com/protocolbuffers/protobuf-go/releases/tag/v1.36.3 )
[Compare Source](https://github.com/protocolbuffers/protobuf-go/compare/v1.36.2...v1.36.3 )
**Full Changelog**: https://github.com/protocolbuffers/protobuf-go/compare/v1.36.2...v1.36.3
Bug fixes:
[CL/642575](https://go-review.googlesource.com/c/protobuf/+/642575 ): reflect/protodesc: fix panic when working with dynamicpb
[CL/641036](https://go-review.googlesource.com/c/protobuf/+/641036 ): cmd/protoc-gen-go: remove json struct tags from unexported fields
User-visible changes:
[CL/641876](https://go-review.googlesource.com/c/protobuf/+/641876 ): proto: add example for GetExtension, SetExtension
[CL/642015](https://go-review.googlesource.com/c/protobuf/+/642015 ): runtime/protolazy: replace internal doc link with external link
Maintenance:
[CL/641635](https://go-review.googlesource.com/c/protobuf/+/641635 ): all: split flags.ProtoLegacyWeak out of flags.ProtoLegacy
[CL/641019](https://go-review.googlesource.com/c/protobuf/+/641019 ): internal/impl: remove unused exporter parameter
[CL/641018](https://go-review.googlesource.com/c/protobuf/+/641018 ): internal/impl: switch to reflect.Value.IsZero
[CL/641035](https://go-review.googlesource.com/c/protobuf/+/641035 ): internal/impl: clean up unneeded Go<1.12 MapRange() alternative
[CL/641017](https://go-review.googlesource.com/c/protobuf/+/641017 ): types/dynamicpb: switch atomicExtFiles to atomic.Uint64 type
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "* 0-3 * * *" (UTC), Automerge - "* 0-3 * * *" (UTC).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMTUuMCIsInVwZGF0ZWRJblZlciI6IjM5LjExNS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/440
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Co-authored-by: Renovate Bot <bot@kriese.eu>
Co-committed-by: Renovate Bot <bot@kriese.eu>
2025-01-18 09:22:46 +00:00
Renovate Bot
8ef03b4e83
Update dependency go to v1.23.5 ( #439 )
...
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/439
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Renovate Bot <bot@kriese.eu>
Co-committed-by: Renovate Bot <bot@kriese.eu>
2025-01-17 11:08:06 +00:00
earl-warren
5240d4e0d4
Merge pull request 'Update actions/setup-forgejo action to v2.0.6' ( #437 ) from renovate/actions-setup-forgejo-2.x into main
...
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/437
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2025-01-16 06:27:25 +00:00
Renovate Bot
6de32c5c61
Update actions/setup-forgejo action to v2.0.6
2025-01-16 00:02:14 +00:00
earl-warren
3b56c3e8f1
Merge pull request 'fix: use data.forgejo.org/oci' ( #436 ) from earl-warren/runner:wip-default into main
...
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/436
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
2025-01-15 15:31:18 +00:00
Earl Warren
6567e23ca0
fix: upgrade forgejo-build-publish/build@v5.3.1
...
So that it does not use docker.io
2025-01-15 16:00:11 +01:00
Earl Warren
ee7b68842d
fix: use data.forgejo.org/oci
...
Otherwise it may get rate limited in the CI verifying it works
2025-01-15 14:44:16 +01:00
cobak78
ba78c11326
New "one shot" type of execution by adding a new command called one-job. ( #423 )
...
As commented here https://code.forgejo.org/forgejo/runner/issues/422 , this PR aims to allow a new type of one shot execution compatible with autoscaling features and other job types.
Co-authored-by: jaime merino <jaime.merino_mora@mail.schwarzª>
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/423
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Co-authored-by: cobak78 <cobak78@noreply.code.forgejo.org>
Co-committed-by: cobak78 <cobak78@noreply.code.forgejo.org>
2025-01-15 12:29:07 +00:00
earl-warren
a3cb2b7d6c
Merge pull request 'fix: example uses code.forgejo.org/oci' ( #434 ) from earl-warren/runner:wip-docker into main
...
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/434
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
2025-01-15 11:25:29 +00:00
Earl Warren
564134560b
fix: example uses code.forgejo.org/oci
...
Otherwise it may get rate limited in the CI verifying it works
2025-01-15 12:24:32 +01:00
earl-warren
48e0db5ddb
Merge pull request 'Update actions/setup-forgejo action to v2.0.5' ( #430 ) from renovate/actions-setup-forgejo-2.x into main
...
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/430
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2025-01-12 09:13:21 +00:00
gratux
72049ccff9
chore(docs): 6.1.0 release notes ( #428 )
...
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/428
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Co-authored-by: gratux <gratux@noreply.code.forgejo.org>
Co-committed-by: gratux <gratux@noreply.code.forgejo.org>
2025-01-12 06:03:21 +00:00
Renovate Bot
cd63166f34
Update actions/setup-forgejo action to v2.0.5
2025-01-12 00:01:33 +00:00
earl-warren
483a54dd08
Merge pull request 'expose "ForceRebuild" as a config option' ( #406 ) from gratux/runner:main into main
...
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/406
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2025-01-11 15:04:42 +00:00
earl-warren
f415dc9c34
Merge pull request 'Update module code.forgejo.org/forgejo/act to v1.23.1' ( #427 ) from renovate/code.forgejo.org-forgejo-act-1.x into main
...
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/427
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2025-01-11 14:53:02 +00:00
Renovate Bot
8fae35db44
Update module code.forgejo.org/forgejo/act to v1.23.1
2025-01-11 14:19:06 +00:00
Earl Warren
7d063c087d
chore(docs): 6.0.1 release notes
2025-01-11 12:05:43 +01:00
earl-warren
a8bfb47292
Merge pull request 'fix: do not ignore the config container.options when starting a job' ( #92 ) from earl-warren/act:wip-mount into main
...
Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/92
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
2025-01-11 11:01:26 +00:00
Earl Warren
790d1776e7
fix: do not ignore the config container.options when starting a job
2025-01-11 08:45:08 +01:00
earl-warren
4b080604b0
Merge pull request 'Update module code.forgejo.org/forgejo/act to v1.23.0' ( #424 ) from renovate/code.forgejo.org-forgejo-act-1.x into main
...
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/424
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2025-01-10 13:26:28 +00:00
Renovate Bot
139adb723a
Update module code.forgejo.org/forgejo/act to v1.23.0
2025-01-10 11:01:56 +00:00
Earl Warren
ed911869e1
fix: filter job container options with an allow list
...
The workflow can only contain the following options for a container:
- --volume
- --tmpfs
2025-01-09 12:10:21 +01:00
Earl Warren
1a77a34726
chore(refactor): split parseOptions out of mergeContainerConfigs
2025-01-09 12:10:21 +01:00
Earl Warren
fc518884f9
chore(refactor): split Options into ConfigOptions & JobOptions
...
They are both command line options to be parsed as if provided to
docker-run, but they are not to be trusted in the same way.
2025-01-09 12:10:21 +01:00
earl-warren
b03a6b9004
Merge pull request 'feat: Improve logging of error messages' ( #90 ) from vpotyarkin/act:feature/improve-error-logging into main
...
Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/90
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2025-01-09 10:29:17 +00:00
Vitaliy Potyarkin
591770bf63
refactor: Improve logging of error messages
...
Logging bare errors might lead to long troubleshooting sessions when error
is not specific enough. This commit adds helpful context messages to
logged errors.
Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
2025-01-09 12:36:30 +03:00
earl-warren
6ab318af04
Merge pull request 'Update module connectrpc.com/connect to v1.18.1' ( #418 ) from renovate/connectrpc.com-connect-1.x into main
...
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/418
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2025-01-09 07:02:24 +00:00
Renovate Bot
724b0e0115
Update module connectrpc.com/connect to v1.18.1
2025-01-09 00:02:03 +00:00
earl-warren
e15a421be5
Merge pull request 'Update module google.golang.org/protobuf to v1.36.2' ( #417 ) from renovate/google.golang.org-protobuf-1.x into main
...
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/417
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2025-01-08 08:21:28 +00:00
Renovate Bot
f93c145ee0
Update module google.golang.org/protobuf to v1.36.2
2025-01-08 00:01:25 +00:00
earl-warren
d0bb58d781
Merge pull request 'Update forgejo/forgejo-build-publish action to v5.3.0' ( #415 ) from renovate/forgejo-forgejo-build-publish-5.x into main
...
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/415
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2025-01-07 05:31:52 +00:00
Renovate Bot
53f8b6f0bb
Update forgejo/forgejo-build-publish action to v5.3.0
2025-01-07 00:01:08 +00:00
earl-warren
bb3e905b62
Merge pull request 'Update module golang.org/x/term to v0.28.0' ( #412 ) from renovate/golang.org-x-term-0.x into main
...
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/412
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2025-01-06 06:39:04 +00:00