gvisor icon indicating copy to clipboard operation
gvisor copied to clipboard

unit tests fail in buildkite

Open avagin opened this issue 2 years ago • 5 comments

https://buildkite.com/gvisor/pipeline/builds/27652#018dcde9-5cb7-4241-ac53-31b58ccb5ee1

arm64:

Executing tests from //pkg/coretag:coretag_test
-----------------------------------------------------------------------------
--- FAIL: TestEnable (0.00s)
    coretag_test.go:36: Enable() got error failed to core tag sentry: no such device, wanted nil
FAIL
Executing tests from //pkg/metric:metric_test
-----------------------------------------------------------------------------
--- FAIL: TestBucketerPanics (0.00s)
    --- FAIL: TestBucketerPanics/NewDurationBucketer_@_80 (0.00s)
        metric_test.go:891: did not panic
Executing tests from //tools/tracereplay:tracereplay_test
-----------------------------------------------------------------------------
--- FAIL: TestBasic (0.00s)
    tracereplay_test.go:43: bind("/home/agent-022124-211216/.cache/bazel/_bazel_agent-022124-211216/4a0d88ceffd547a0b9e1ffa449277c63/sandbox/linux-sandbox/7179/execroot/__main__/_tmp/6735fe5df8f902949d58411549e47802/tracereplay1247788451/tracereplay.sock"): invalid argument

arm64 & amd64

Executing tests from //tools/tracereplay:tracereplay_test
-----------------------------------------------------------------------------
--- FAIL: TestBasic (0.00s)
    tracereplay_test.go:43: bind("/home/agent-022124-211216/.cache/bazel/_bazel_agent-022124-211216/4a0d88ceffd547a0b9e1ffa449277c63/sandbox/linux-sandbox/7179/execroot/__main__/_tmp/6735fe5df8f902949d58411549e47802/tracereplay1247788451/tracereplay.sock"): invalid argument
....
    trace_test.go:154: Processed 28 messages for MESSAGE_SYSCALL_READ
    trace_test.go:154: Processed 12 messages for MESSAGE_SYSCALL_WRITE
    trace_test.go:154: Processed 2 messages for MESSAGE_SYSCALL_SIGNALFD
    trace_test.go:154: Processed 6 messages for MESSAGE_SYSCALL_PIPE
FAIL
exec ${PAGER:-/usr/bin/less} "$0" || exit 1
Executing tests from //runsc/config:config_test
-----------------------------------------------------------------------------
I0221 23:06:54.723403      24 flags.go:470] Overriding flag --debug="true" from applying bundle debug.
I0221 23:06:54.723822      24 flags.go:470] Overriding flag --debug="true" from applying bundle debug-and-profile.
I0221 23:06:54.723866      24 flags.go:470] Overriding flag --profile="true" from applying bundle debug-and-profile.
I0221 23:06:54.724069      24 flags.go:468] Flag --debug has explicitly-set value "true", but bundle no-debug takes precedence and is overriding its value to --debug="false".
--- FAIL: TestBundleValidate (0.00s)
    --- FAIL: TestBundleValidate/invalid_value (0.00s)
        config_test.go:713: Validate failed: mismatch error: got: "parse error" want: "parsing \"invalid\": invalid syntax"
FAIL

avagin avatar Feb 22 '24 03:02 avagin

Is this fixed now?

tamird avatar Jan 08 '26 14:01 tamird

There are TODOs still referencing this issue:

  1. Makefile:233: Need to fix broken tests.

Search TODO

github-actions[bot] avatar Jan 09 '26 00:01 github-actions[bot]

Is this fixed now?

Well seems like not, we exclude

  • //pkg/metric:metric_test
  • //pkg/coretag:coretag_test
  • //runsc/config:config_test
  • //tools/tracereplay:tracereplay_test
  • //test/trace:trace_test

Need to fix all these tests

ayushr2 avatar Jan 09 '26 04:01 ayushr2

Hi! I'd like to work on the //pkg/metric:metric_test portion of this issue, specifically the TestBucketerPanics/NewDurationBucketer_@_80 failure. I'll reproduce it in the affected environment, determine whether the problem is in the test assumptions or bucketer validation, make a focused fix, and remove the test exclusion if appropriate.

abdeltaehass avatar Aug 15 '26 06:08 abdeltaehass

seems last implementation by @abdeltaehass got closed suddenly, has this been solved somewhere other place? i'm interested, seeking your help @ayushr2 thanks

0xzre avatar Oct 17 '26 15:10 0xzre