Uh oh!
There was an error while loading. Please reload this page.
report: print common items first for readability - #27367
Conversation
richardlau
left a comment
There was a problem hiding this comment.
Can you update the timer example in the docs too? Otherwise LGTM.
gengjiawen
commented
Apr 23, 2019
I am not sure which part. Can you post a link or snippet ? Thanks. |
richardlau
commented
Apr 23, 2019
GitHub makes it hard to link to snippets in markdown docs but the |
gengjiawen
commented
Apr 24, 2019
I see. I will try to fix it after I watched |
a21e361 to
78cfd6fComparegengjiawen
commented
Apr 24, 2019
@richardlau Fixed. |
jasnell
commented
Apr 25, 2019
Hmm... are there no tests that are verifying the actual output here? I know there's quite a bit that's non-deterministic but there should at least be some validation in the test. Changing the order of these these should break at least something in the tests :-) |
richardlau
commented
Apr 25, 2019
We have a test that verifies the libuv handle information ( |
jasnell
commented
Apr 25, 2019
Hmm... ok, I think that's definitely something we can improve. A basic message type test that checks the unparsed output would be worthwhile |
gengjiawen
commented
Apr 25, 2019
Is there any example I can reference for output key sort ? |
Now we have nested structure like this, looks like more hard to match 😭 |
Will try something like this in test-report-uv-handles {constget_libuv=/"libuv":\s\[([\s\S]*?)\]/gm;constget_handle_inner=/{([\s\S]*?),*?}/gm;constlibuv_handles_str=get_libuv.exec(stdout)[1];constlibuv_handles_array=libuv_handles_str.match(get_handle_inner);libuv_handles_array.map(i=>{// exclude nested structureif(i.includes('type')){consthandle_keys=i.match(/(".*"):/gm);assert(handle_keys[0],'type');assert(handle_keys[1],'is_active');}});} |
d6bef39 to
005d602CompareNot know why this test keep failed on my win10, so just let's travis run the tests ... Debugger attached.assert.js:87 throw new AssertionError(obj); ^AssertionError [ERR_ASSERTION]: Process exited unexpectedly with code1 at ChildProcess.<anonymous> (D:\Developer\node\test\report\test-report-uv-handles.js:88:12) at ChildProcess.<anonymous> (D:\Developer\node\test\common\index.js:373:15) at ChildProcess.emit (events.js:194:13) at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)Waiting for the debugger to disconnect.. |
005d602 to
c0228e4Comparegengjiawen
commented
Apr 25, 2019
@richardlau@jasnell I add related test and CI is green, can you review this again ? thanks. |
nodejs-github-bot
commented
Apr 27, 2019
targos
commented
Apr 27, 2019
Landed in 38f3526 |
PR-URL: #27367 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
PR-URL: #27367 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
cc @richardlau
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes