Skip to content

TestSafeFuncHappyPath test flake #15348

Closed

Description

@irbekrm

What is the issue?

TestSafeFuncHappyPath flaked:

...
=== RUN   TestSafeFuncHappyPath
    expvarx_test.go:62: got <nil>, want 1
--- FAIL: TestSafeFuncHappyPath (0.00s)
FAIL
FAIL	tailscale.com/util/expvarx	0.019s
...

https://github.com/tailscale/tailscale/actions/runs/13926323640/job/38971700813?pr=15307

Activity

  1. added
    bug
    flaky-test
    and removed
    bug
    on Mar 18, 2025
  2. alexwlchan commented on Aug 20, 2025

    @alexwlchan
    Member

    Quick note for future readers: I found the stress utility really helpful for reproducing this issue locally. Here's the test script I used:

    #!/usr/bin/env bash
    
    set -o errexit
    set -o nounset
    set -o verbose
    
    rm -f expvar.test
    ./tool/go clean -testcache
    ./tool/go test -o expvar.test ./util/expvarx/ -run=TestSafeFuncHappyPath
    stress ./expvar.test -test.run=TestSafeFuncHappyPath⏎
  3. added a commit that references this issue on Sep 8, 2025
    7cf4b09
  4. added a commit that references this issue on Sep 8, 2025
    1cb855f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    flaky-test

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions