gitforge/modules
limiting-factor 2d2029c598 tests: make buffer log writer thread safe (#11962)
When two goroutines attempt to access the content of the buffer log writer, they must be made thread safe with a write mutex.

The buffer log writer is only used in testing.

## Checklist

### Tests for Go changes

- I added test coverage for Go changes...
  - [x] in their respective `*_test.go` for unit tests.
  - [ ] in the `tests/integration` directory if it involves interactions with a live Forgejo server.
- I ran...
  - [ ] `make pr-go` before pushing

### Documentation

- [ ] I created a pull request [to the documentation](https://codeberg.org/forgejo/docs) to explain to Forgejo users how to use this change.
- [x] I did not document these changes and I do not expect someone else to do it.

### Release notes

- [ ] This change will be noticed by a Forgejo user or admin (feature, bug fix, performance, etc.). I suggest to include a release note for this change.
- [x] This change is not visible to a Forgejo user or admin (refactor, dependency upgrade, etc.). I think there is no need to add a release note for this change.

*The decision if the pull request will be shown in the release notes is up to the mergers / release team.*

The content of the `release-notes/<pull request number>.md` file will serve as the basis for the release notes. If the file does not exist, the title of the pull request will be used instead.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11962
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
Co-authored-by: limiting-factor <limiting-factor@posteo.com>
Co-committed-by: limiting-factor <limiting-factor@posteo.com>
2026-04-04 16:29:14 +02:00
..
actions chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
activitypub feat: backend DB model for fine-grained repo access tokens 2026-02-27 17:17:29 +01:00
analyze
assetfs feat: optimization: use fs.ReadFile (#10987) 2026-01-22 16:26:18 +01:00
auth chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
avatar chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
base feat(ui): dedicated icon for CITATION file (#10873) 2026-01-17 10:10:56 +01:00
cache chore: fix typos throughout the codebase (#10753) 2026-01-26 22:57:33 +01:00
card
charset chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
container
csv
emoji
eventsource ci: detect and prevent empty case statements in Go code (#11593) 2026-03-10 02:50:28 +01:00
forgefed chore: update github.com/go-ap/activitypub to 902f6cf (#11301) 2026-04-02 23:57:13 +02:00
generate chore: unify the usage of CryptoRandomString (#10110) 2025-11-15 13:24:53 +01:00
git fix: store pull mirror creds encrypted with keying (#11909) 2026-04-04 13:53:22 +02:00
gitrepo Update module github.com/golangci/golangci-lint/v2/cmd/golangci-lint to v2.6.1 (forgejo) (#10053) 2025-11-11 07:04:35 +01:00
graceful ci: detect and prevent empty case statements in Go code (#11593) 2026-03-10 02:50:28 +01:00
hcaptcha
highlight
hostmatcher chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
html
httpcache chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
httplib chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
indexer chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
issue/template chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
json
jwtx chore: Add JWT() method for convenience and clarity (#11067) 2026-02-07 01:01:30 +01:00
keying fix: store pull mirror creds encrypted with keying (#11909) 2026-04-04 13:53:22 +02:00
label chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
lfs
log tests: make buffer log writer thread safe (#11962) 2026-04-04 16:29:14 +02:00
markup chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
mcaptcha
metrics
migration ci: detect and prevent empty case statements in Go code (#11593) 2026-03-10 02:50:28 +01:00
nosql
optional chore: support Option[T] as a type on database schema structs (#11553) 2026-03-08 03:36:32 +01:00
options
packages chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
paginator
pprof
private chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
process
proxy
proxyprotocol ci: detect and prevent empty case statements in Go code (#11593) 2026-03-10 02:50:28 +01:00
public chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
queue chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
recaptcha
references
regexplru
repository chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
secret
session fix: only destroy session if exists 2026-03-19 02:18:52 +01:00
setting chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
sitemap
ssh fix: don't clobber authorized_keys file during installation (#10948) 2026-01-23 18:38:09 +01:00
storage chore: use require.Error() over require.Errorf() (#11037) 2026-01-25 19:36:02 +01:00
structs chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
svg
sync
system
templates fix: store pull mirror creds encrypted with keying (#11909) 2026-04-04 13:53:22 +02:00
test chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
testimport chore: move all test blank imports in a single package (#10662) 2026-01-02 05:32:32 +01:00
testlogger chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
timeutil
translation ci: detect and prevent empty case statements in Go code (#11593) 2026-03-10 02:50:28 +01:00
turnstile
typesniffer
updatechecker chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
uri
user
util chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
validation chore: update github.com/go-ap/activitypub to 902f6cf (#11301) 2026-04-02 23:57:13 +02:00
web chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
webhook
zstd