Skip to content

v1.16.3

Choose a tag to compare

@github-actions github-actions released this 28 Oct 12:58
· 81 commits to main since this release
v1.16.3
3d2e8b0

A documentation release. references/testing.md now explains how to test that a fix closes a race window, and the CodeQL description matches the shared security workflow.

Testing

  • New subsection "Testing an Interleaving: Hold the Lock, Don't Stress It" under Race Detection. A test that repeats a scenario and hopes to hit a microsecond window is a weak guard; the subsection describes the two reliable approaches instead: take the lock that orders the competing operation, or hold the production mutex from the test so the code stops between two steps. It includes an example whose cleanup releases the mutex and waits for the goroutine under test, and notes that the sync.RWMutex reader-before-writer order it relies on is an implementation detail. Measurements from lufox-digital/ofelia#900 and lufox-digital/ofelia#901, by @CybotTM in #122.

Documentation

  • CodeQL is described as the codeql job of security.yml, by @CybotTM in #116.

Maintenance

  • pre-commit hooks: markdownlint-cli2 v0.24.0 (#119) and ruff-pre-commit v0.17.2 (#121).

Full Changelog: v1.16.2...v1.16.3