Commit Graph

625 Commits (624b47bc2fb1550f174c380bc9fa089973ca3167)

Author SHA1 Message Date
Earl Warren 624b47bc2f
chore(ci): skip cascade if [skip cascade] is found in the PR title (#476)
When there are multiple PRs in flight, using a var to disable the cascading PR that eventually runs the end to end tests (for instance because the change is about examples) is error prone.

Allowing each pull request to indivudually decide when it is relevant or not is more practical and fine grain.

## Testing

Using [an extra commit](1b8949ed3a) for debuging:

- https://code.forgejo.org/forgejo/runner/actions/runs/3328 skips the cascade on this PR
- https://code.forgejo.org/forgejo/runner/actions/runs/3326 tries to run the cascade on this PR  (and fails because it does not have secrets) because `[skip ZZ cascade]` is set in the title

Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/476
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-30 15:23:22 +00:00
Earl Warren dd88c37fff
chore(examples): upgrade the runner version to 6.2.1 (#473)
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/473
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-30 11:17:37 +00:00
Earl Warren 1c7dbeea62
chore(docs): 6.2.1 release notes (#472)
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/472
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-29 17:22:03 +00:00
Renovate Bot 1bee5882b3
Update module code.forgejo.org/forgejo/act to v1.24.1 (#471)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [code.forgejo.org/forgejo/act](https://code.forgejo.org/forgejo/act) | replace | patch | `v1.24.0` -> `v1.24.1` |

---

### Release Notes

<details>
<summary>forgejo/act (code.forgejo.org/forgejo/act)</summary>

### [`v1.24.1`](https://code.forgejo.org/forgejo/act/compare/v1.24.0...v1.24.1)

[Compare Source](https://code.forgejo.org/forgejo/act/compare/v1.24.0...v1.24.1)

</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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMzYuMSIsInVwZGF0ZWRJblZlciI6IjM5LjEzNi4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/471
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-29 11:17:15 +00:00
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 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 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 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 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
Renovate Bot ce7a3eaefe
Update module golang.org/x/term to v0.28.0 2025-01-06 00:02:27 +00:00
earl-warren 4f459ac1d3 Merge pull request 'Update module golang.org/x/time to v0.9.0' (#411) from renovate/golang.org-x-time-0.x into main
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/411
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2025-01-05 10:03:34 +00:00
Renovate Bot c2c47116b3
Update module golang.org/x/time to v0.9.0 2025-01-05 00:01:37 +00:00
earl-warren bf1dcaff8e Merge pull request 'examples: Version update for current release of runner' (#407) from edsouza/runner:examples-version into main
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/407
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2024-12-31 19:49:49 +00:00
Ellery D'Souza 00ba378d0e
examples: Version update for current release of runner
Updated runner image version from 3.0.0 to 5.0.4
Updated docker-dind version from 23.0.6-dind to 27.4.1-dind
2024-12-31 13:29:54 -05:00
earl-warren 5fef70c653 Merge pull request 'Update Tests to Latest Release' (#404) from Merith-TK/runner:bug-tests-fail into main
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/404
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2024-12-30 19:15:15 +00:00