chore: Queue a config event even if the last modified header is old #996
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.19 | |
- name: Test | |
run: RACE=1 make test | |
- name: Test that CGO is not required for native bucketing | |
run: CGO_ENABLED=0 go test -run="^$" ./... | |
- name: Test that variable evaluation requires zero heap allocations | |
run: > | |
go test -run=^$ -bench "^Benchmark.*_VariableSerial$" -benchmem . | |
| tee /dev/stderr | |
| grep '0 allocs/op' | |
|| ( echo "::error title=Heap allocations detected in variable evaluations::The variable evaluation flow cannot have any allocations, or performance will degrade at high concurrency. See https://www.notion.so/How-to-profile-with-Go-613eb85b95c74df898552958f6b1541f for more information on how to resolve this."; false ) | |