Repository navigation
Investigate flaky test/async-hooks/test-callback-error #15985
Copy link
Copy link
Closed
Labels
async_hooksIssues and PRs related to the async hooks subsystem.Issues and PRs related to the async hooks subsystem.flaky-testIssues and PRs involving tests that fail intermittently in CI.Issues and PRs involving tests that fail intermittently in CI.macosIssues and PRs related to the macOS platform.Issues and PRs related to the macOS platform.testIssues and PRs related to Node.js core tests and test infrastructure.Issues and PRs related to Node.js core tests and test infrastructure.
Description
Running test/async-hooks/test-callback-error.js test on the master branch(no local changes) reports failures on async hooks tests.
- Version: v9.0.0-pre
- Platform: Darwin Kernel Version 15.5.0: Tue Apr 19 18:36:36 PDT 2016; root:xnu-3248.50.21~8/RELEASE_X86_64 x86_64
- Subsystem: async_hooks
$ ./node ./test/async-hooks/test-callback-error.js
start case 1
end case 1: 85.844ms
start case 2
end case 2: 86.863ms
start case 3
end case 3: 4.478ms
Error: test_callback_abort
at ActivityCollector.initHooks.oninit.common.mustCall (/Users/efreiberg/Documents/node_demo_2/node/test/async-hooks/test-callback-error.js:36:45)
at ActivityCollector.oninit (/Users/efreiberg/Documents/node_demo_2/node/test/common/index.js:517:15)
at ActivityCollector._init (/Users/efreiberg/Documents/node_demo_2/node/test/async-hooks/init-hooks.js:182:10)
at emitInitNative (async_hooks.js:466:43)
at Object.emitInitScript [as emitInit] (async_hooks.js:369:3)
at Object.<anonymous> (/Users/efreiberg/Documents/node_demo_2/node/test/async-hooks/test-callback-error.js:38:17)
at Module._compile (module.js:600:30)
at Object.Module._extensions..js (module.js:611:10)
at Module.load (module.js:521:32)
at tryModuleLoad (module.js:484:12)
1: node::Abort() [/Users/efreiberg/Documents/node_demo_2/node/out/Release/node]
2: node::Chdir(v8::FunctionCallbackInfo<v8::Value> const&) [/Users/efreiberg/Documents/node_demo_2/node/out/Release/node]
3: v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&)) [/Users/efreiberg/Documents/node_demo_2/node/out/Release/node]
4: v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) [/Users/efreiberg/Documents/node_demo_2/node/out/Release/node]
5: v8::internal::Builtin_Impl_HandleApiCall(v8::internal::BuiltinArguments, v8::internal::Isolate*) [/Users/efreiberg/Documents/node_demo_2/node/out/Release/node]
6: 0x35a344a0463d
$ sw_vers -productVersion
10.11.5
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
async_hooksIssues and PRs related to the async hooks subsystem.Issues and PRs related to the async hooks subsystem.flaky-testIssues and PRs involving tests that fail intermittently in CI.Issues and PRs involving tests that fail intermittently in CI.macosIssues and PRs related to the macOS platform.Issues and PRs related to the macOS platform.testIssues and PRs related to Node.js core tests and test infrastructure.Issues and PRs related to Node.js core tests and test infrastructure.
Activity
cjihrig commentedon Oct 7, 2017
Related to #15208?
Trott commentedon Oct 7, 2017
@Fishrock123 was investigating this at Code + Learn and might have some more information to add.
MylesBorins commentedon Nov 17, 2017
Just ran into this while running the 8.x test suite on my 10.10.5 machine
gibfahn commentedon Dec 13, 2017
I think I'm seeing the same thing on v8.x, on both macOS and Linux.
I'm also seeing cores dumped even when the test passes, which is odd. Testing with commit ab46b8e.
Trott commentedon Dec 14, 2017
@nodejs/async_hooks
kysnm commentedon Dec 19, 2017
Getting the same error in
v10.0.0-pre
sw_vers -productVersion
10.11.6
kysnm commentedon Dec 19, 2017
Error does not occur in the following environment
v 10.0.0-pre
sw_vers -productVersion
10.12.6
shisama commentedon May 25, 2018
Hasn't this problem been fixed yet?
Error occurs in
v 11.0.0-pre
sw_vers -productVersion
10.13.4
Trott commentedon May 25, 2018
Unless someone knows the source of the problem, how can anyone know if it's fixed? The error happens unpredictably. I'm not convinced the macOS version is a significant factor. I'm running 10.11.6 and do not see this error occurring.
shisama commentedon May 26, 2018
Sorry, I had a bad comment. I don't know the source of the problem.
The error occurs once yesterday. Today, the error doesn't occurs despite the same version.
6 remaining items
[-]Async hook test 'test/async-hooks/test-callback-error' fails on OSX 10.11.5[/-][+]Investigate flaky test/async-hooks/test-callback-error[/+]joyeecheung commentedon Aug 14, 2018
Note that this also happens on fedora
test: mark async-hooks/test-callback-error as flaky
test: mark async-hooks/test-callback-error as flaky
test: mark async-hooks/test-callback-error as flaky
addaleax commentedon Sep 2, 2018
I have a fix in #22655.
test: fix flaky async-hooks/test-callback-error
test: mark async-hooks/test-callback-error as flaky
test: fix flaky async-hooks/test-callback-error