You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some of the ct testcases fail from time to time but not deterministically
This failure is quite common and hopeless to fix because of how timers work in Erlang. (A call to timer:sleep(20) is guaranteed to last at least 20 ms but there is no upper limit)
To make snapshots more deterministic (without waiting 1-2 seconds) is to add a function to xprof_core_trace_handler to trigger taking one synchronously (and callerlang:trace_delivered before). But as the key of the snapshots is the timestamp in seconds, there can only be one snapshot per second (and some testcases require two).
Or captured data is not yet available:
%%% xprof_http_e2e_SUITE ==> capture_data_with_formatted_exception_test: FAILED
%%% xprof_http_e2e_SUITE ==>
Failure/Error: ?assertMatch([ << "** exception error: no match of right hand side value ok" >> ], [ proplists : get_value ( << "res" >> , Item ) || Item <- proplists : get_value ( << "items" >> , Data ) ])
expected: = [ << "** exception error: no match of right hand side value ok" >> ]
got: [] line: 244
The text was updated successfully, but these errors were encountered:
Some of the ct testcases fail from time to time but not deterministically
This failure is quite common and hopeless to fix because of how timers work in Erlang. (A call to
timer:sleep(20)
is guaranteed to last at least 20 ms but there is no upper limit)Another example when samples are not yet available. (This happens quite often in
long_call
testcase)To make snapshots more deterministic (without waiting 1-2 seconds) is to add a function to
xprof_core_trace_handler
to trigger taking one synchronously (and callerlang:trace_delivered
before). But as the key of the snapshots is the timestamp in seconds, there can only be one snapshot per second (and some testcases require two).Or captured data is not yet available:
The text was updated successfully, but these errors were encountered: