Mathieu Fenniak
1a633ad513
chore: prepare for runner v13 release ( #1645 )
...
Global search and replace of `runner/v12` for `runner/v13`.
<!--start release-notes-assistant-->
<!--URL:https://code.forgejo.org/forgejo/runner-- >
- other
- [PR](https://code.forgejo.org/forgejo/runner/pulls/1645 ): <!--number 1645 --><!--line 0 --><!--description Y2hvcmU6IHByZXBhcmUgZm9yIHJ1bm5lciB2MTMgcmVsZWFzZQ==-->chore: prepare for runner v13 release<!--description-->
<!--end release-notes-assistant-->
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/1645
Reviewed-by: Andreas Ahlenstorf <aahlenst@noreply.code.forgejo.org >
2026-08-03 15:55:53 +00:00
Andreas Ahlenstorf
9a617b497b
test: use flags instead of env variables for skipping tests ( #1591 )
...
https://code.forgejo.org/forgejo/runner/pulls/1585 introduced the environment variable `TEST_FEATURES` for switching tests related to particular feature on and off. For example, with `TEST_FEATURES=""`, tests that require Docker would be skipped. Unfortunately, that technique has multiple problems. Environment variables might not be passed on to child processes without it being clearly visible. Also, the usage differs by platform. On top of that, informational messages that are only related to testing were printed by the release binary.
Instead of the environment variable `TEST_FEATURES`, the command line flag `-features` is introduced:
```
$ go test ./... -args -features "docker,lxc"
```
That runs all tests that require the presence of Docker and LXC. It is also the default.
If tests that require Docker should be skipped, run:
```
$ go test ./... -args -features "lxc"
```
To exclude all tests that require the presence of a particular feature, run:
```
$ go test ./... -args -features "-"
```
At the moment, `-features` cannot be controlled when using make targets. That means that `make integration-test` runs all tests that require Docker or LXC.
Supersedes https://code.forgejo.org/forgejo/runner/pulls/1588 .
<!--start release-notes-assistant-->
<!--URL:https://code.forgejo.org/forgejo/runner-- >
- other
- [PR](https://code.forgejo.org/forgejo/runner/pulls/1591 ): <!--number 1591 --><!--line 0 --><!--description dGVzdDogdXNlIGZsYWdzIGluc3RlYWQgb2YgZW52IHZhcmlhYmxlcyBmb3Igc2tpcHBpbmcgdGVzdHM=-->test: use flags instead of env variables for skipping tests<!--description-->
<!--end release-notes-assistant-->
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/1591
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.code.forgejo.org >
2026-07-05 22:26:52 +00:00
Renovate Bot
4f4058814c
Update module github.com/golangci/golangci-lint/v2/cmd/golangci-lint to v2.10.1 ( #1396 )
...
This PR contains the following updates:
| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/ ) | [Confidence](https://docs.renovatebot.com/merge-confidence/ ) |
|---|---|---|---|
| [github.com/golangci/golangci-lint/v2/cmd/golangci-lint](https://github.com/golangci/golangci-lint ) | `v2.8.0` β `v2.10.1` |  |  |
---
### Release Notes
<details>
<summary>golangci/golangci-lint (github.com/golangci/golangci-lint/v2/cmd/golangci-lint)</summary>
### [`v2.10.1`](https://github.com/golangci/golangci-lint/blob/HEAD/CHANGELOG.md#v2101 )
[Compare Source](https://github.com/golangci/golangci-lint/compare/v2.10.0...v2.10.1 )
*Released on 2026-02-17*
1. Fixes
- buildssa panic
### [`v2.10.0`](https://github.com/golangci/golangci-lint/blob/HEAD/CHANGELOG.md#v2100 )
[Compare Source](https://github.com/golangci/golangci-lint/compare/v2.9.0...v2.10.0 )
*Released on 2026-02-17*
1. Linters new features or changes
- `ginkgolinter`: from 0.22.0 to 0.23.0
- `gosec`: from 2.22.11 to 2.23.0 (new rules: `G117`, `G602`, `G701`, `G702`, `G703`, `G704`, `G705`, `G706`)
- `staticcheck`: from 0.6.1 to 0.7.0
2. Linters bug fixes
- `godoclint`: from 0.11.1 to 0.11.2
### [`v2.9.0`](https://github.com/golangci/golangci-lint/blob/HEAD/CHANGELOG.md#v290 )
[Compare Source](https://github.com/golangci/golangci-lint/compare/v2.8.0...v2.9.0 )
*Released on 2026-02-10*
1. Enhancements
- π go1.26 support
2. Linters new features or changes
- `arangolint`: from 0.3.1 to 0.4.0 (new rule: detect potential query injections)
- `ginkgolinter`: from 0.21.2 to 0.22.0 (support for wrappers)
- `golines`: from 0.14.0 to 0.15.0
- `misspell`: from 0.7.0 to 0.8.0
- `revive`: from v1.13.0 to v1.14.0 (new rules: `epoch-naming`, `use-slices-sort`)
- `unqueryvet`: from 1.4.0 to 1.5.3 (new options: `check-n1`, `check-sql-injection`, `check-tx-leaks`, `allow`, `custom-rules`)
- `wsl_v5`: from 5.3.0 to 5.6.0 (new rule: `after-block`)
3. Linters bug fixes
- `modernize`: from 0.41.0 to 0.42.0
- `prealloc`: from 1.0.1 to 1.0.2
- `protogetter`: from 0.3.18 to 0.3.20
4. Misc.
- Log information about files when configuration verification
- Emit an error when no linters enabled
- Do not collect VCS information when loading code
</details>
---
### Configuration
π
**Schedule**: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC).
π¦ **Automerge**: Enabled.
β» **Rebasing**: Whenever PR is behind base branch, 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:eyJjcmVhdGVkSW5WZXIiOiI0My41LjAiLCJ1cGRhdGVkSW5WZXIiOiI0My41LjAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbIktpbmQvRGVwZW5kZW5jeVVwZGF0ZSIsInJ1bi1lbmQtdG8tZW5kLXRlc3RzIl19-->
Co-authored-by: Mathieu Fenniak <mathieu@fenniak.net >
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/1396
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.code.forgejo.org >
Co-authored-by: Renovate Bot <bot@kriese.eu >
Co-committed-by: Renovate Bot <bot@kriese.eu >
2026-02-21 02:44:12 +00:00
Mathieu Fenniak
9c333b412d
test: run lint-check during CI, add forbidigo, cleanup linter exclusions ( #1181 )
...
v12.0.0 had a `println` statement from debugging left in the release. Whoops. `forbidigo` wasn't in enabled in golangci and golangci wasn't running in CI. Made a couple other cleanups at the same time.
<!--start release-notes-assistant-->
<!--URL:https://code.forgejo.org/forgejo/runner-- >
- other
- [PR](https://code.forgejo.org/forgejo/runner/pulls/1181 ): <!--number 1181 --><!--line 0 --><!--description dGVzdDogcnVuIGBsaW50LWNoZWNrYCBkdXJpbmcgQ0ksIGFkZCBmb3JiaWRpZ28sIGNsZWFudXAgbGludGVyIGV4Y2x1c2lvbnM=-->test: run `lint-check` during CI, add forbidigo, cleanup linter exclusions<!--description-->
<!--end release-notes-assistant-->
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/1181
Reviewed-by: limiting-factor <limiting-factor@noreply.code.forgejo.org >
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org >
Co-authored-by: Mathieu Fenniak <mathieu@fenniak.net >
Co-committed-by: Mathieu Fenniak <mathieu@fenniak.net >
2025-11-23 15:01:52 +00:00
Michael Kriese
27f425987c
chore: modernize code ( #857 )
...
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/857
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org >
Reviewed-by: Gusted <gusted@noreply.code.forgejo.org >
Co-authored-by: Michael Kriese <michael.kriese@visualon.de >
Co-committed-by: Michael Kriese <michael.kriese@visualon.de >
2025-08-15 04:54:13 +00:00
ChristopherHX
75baa9dc3b
feat: workflowpattern package ( #1618 )
...
* feat: workflowpattern package
* nolint:gocyclo
---------
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-02-23 18:21:08 +00:00