Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: TestExitCode is flaky #1014

Closed
mtardy opened this issue May 22, 2023 · 0 comments · Fixed by #1015
Closed

test: TestExitCode is flaky #1014

mtardy opened this issue May 22, 2023 · 0 comments · Fixed by #1015
Labels
kind/ci-flake A flake in CI

Comments

@mtardy
Copy link
Member

mtardy commented May 22, 2023

For example, see:

=== RUN   TestExitCode
    jsonchecker.go:179: jsonTestCheck: opening: /tmp/tetragon.gotest.TestExitCode.1359798033.json
    exit_test.go:242: exitCode 0
    jsonchecker.go:138: JsonCheck (retry=0) took 11.44135ms
    jsonchecker.go:179: jsonTestCheck: opening: /tmp/tetragon.gotest.TestExitCode.1359798033.json
    exit_test.go:242: exitCode 0
    jsonchecker.go:138: JsonCheck (retry=0) took 6.2431ms
    jsonchecker.go:162: JsonCheck (retry=1) failed: JsonEOF: failed to match after 17 events: err:tetragon returns the exit code of the process uncorrectly. Retrying after 3s
    exit_test.go:242: exitCode 0
    jsonchecker.go:138: JsonCheck (retry=1) took 7.72733ms
    jsonchecker.go:162: JsonCheck (retry=2) failed: JsonEOF: failed to match after 20 events: err:tetragon returns the exit code of the process uncorrectly. Retrying after 3s
    exit_test.go:242: exitCode 0
    jsonchecker.go:138: JsonCheck (retry=2) took 7.97711ms
    exit_test.go:256: error: JsonTestCheck failed in retry cnt=2 and there were no new events from previous try: JsonEOF: failed to match after 20 events: err:tetragon returns the exit code of the process uncorrectly
    jsonchecker.go:179: jsonTestCheck: opening: /tmp/tetragon.gotest.TestExitCode.1359798033.json
    exit_test.go:242: exitCode 0
    jsonchecker.go:138: JsonCheck (retry=0) took 7.29139ms
    jsonchecker.go:162: JsonCheck (retry=1) failed: JsonEOF: failed to match after 21 events: err:tetragon returns the exit code of the process uncorrectly. Retrying after 3s
    exit_test.go:242: exitCode 42
    jsonchecker.go:138: JsonCheck (retry=1) took 8.69339ms
    jsonchecker.go:179: jsonTestCheck: opening: /tmp/tetragon.gotest.TestExitCode.1359798033.json
    exit_test.go:242: exitCode 125
    jsonchecker.go:138: JsonCheck (retry=0) took 7.96349ms
    jsonchecker.go:179: jsonTestCheck: opening: /tmp/tetragon.gotest.TestExitCode.1359798033.json
    exit_test.go:242: exitCode 126
    jsonchecker.go:138: JsonCheck (retry=0) took 8.21167ms
    jsonchecker.go:179: jsonTestCheck: opening: /tmp/tetragon.gotest.TestExitCode.1359798033.json
    exit_test.go:242: exitCode 226
    jsonchecker.go:138: JsonCheck (retry=0) took 10.00842ms
    jsonchecker.go:179: jsonTestCheck: opening: /tmp/tetragon.gotest.TestExitCode.1359798033.json
    exit_test.go:242: exitCode 225
    jsonchecker.go:138: JsonCheck (retry=0) took 9.42807ms
    jsonchecker.go:179: jsonTestCheck: opening: /tmp/tetragon.gotest.TestExitCode.1359798033.json
    exit_test.go:242: exitCode 224
    jsonchecker.go:138: JsonCheck (retry=0) took 10.15198ms
    jsonchecker.go:179: jsonTestCheck: opening: /tmp/tetragon.gotest.TestExitCode.1359798033.json
    exit_test.go:242: exitCode 223
    jsonchecker.go:138: JsonCheck (retry=0) took 10.59561ms
    jsonchecker.go:179: jsonTestCheck: opening: /tmp/tetragon.gotest.TestExitCode.1359798033.json
    exit_test.go:242: exitCode 222
    jsonchecker.go:138: JsonCheck (retry=0) took 10.86712ms
    filenames.go:49: deleting export file for TestExitCode (/tmp/tetragon.gotest.TestExitCode.1359798033.json)
--- FAIL: TestExitCode (15.78s)
FAIL

See examples here:

tetragon-vmtests-5.10-0-results.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/ci-flake A flake in CI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant