GitHub: Upgrade to upload/download-artifact v4 #1226
GitHub Actions / Test Results
failed
Jun 28, 2024 in 0s
1 fail, 366 skipped, 1 953 pass in 48m 16s
34 files 34 suites 48m 16s ⏱️
2 320 tests 1 953 ✅ 366 💤 1 ❌
41 110 runs 34 881 ✅ 6 228 💤 1 ❌
Results for commit e041649.
Annotations
Check warning on line 0 in tests.component.test_task_events
github-actions / Test Results
1 out of 10 runs failed: test___event_callback_that_raises_exceptions___run_finite_acquisition___exceptions_ignored[grpc_init_kwargs] (tests.component.test_task_events)
test_results/system-py312-grpc-win-10-py64.xml [took 45s]
Raw output
TimeoutError: Event observer did not observe the expected number of events.
ai_task = Task(name=_unnamedTask<200>)
@pytest.mark.filterwarnings("ignore::pytest.PytestUnraisableExceptionWarning")
def test___event_callback_that_raises_exceptions___run_finite_acquisition___exceptions_ignored(
ai_task: nidaqmx.Task,
) -> None:
done_event_exception = RuntimeError("done event error")
done_event_observer = DoneEventObserver(side_effect=done_event_exception)
every_n_samples_event_count = 10
every_n_samples_event_exception = RuntimeError("every n samples event error")
every_n_samples_event_observer = EveryNSamplesEventObserver(
side_effect=every_n_samples_event_exception
)
ai_task.register_done_event(done_event_observer.handle_done_event)
ai_task.register_every_n_samples_acquired_into_buffer_event(
100, every_n_samples_event_observer.handle_every_n_samples_event
)
ai_task.timing.cfg_samp_clk_timing(
rate=10000.0, sample_mode=AcquisitionType.FINITE, samps_per_chan=1000
)
ai_task.start()
done_event_observer.wait_for_events()
> every_n_samples_event_observer.wait_for_events(every_n_samples_event_count)
tests\component\test_task_events.py:602:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <tests._event_utils.EveryNSamplesEventObserver object at 0x0000018263FFB410>
count = 10, timeout = 10.0
def wait_for_events(self, count=1, timeout=10.0) -> None:
"""Waits for the specified number of events."""
timeout_time = time.monotonic() + timeout
for _ in range(count):
remaining_time = max(0.0, timeout_time - time.monotonic())
if not self._event_semaphore.acquire(timeout=remaining_time):
> raise TimeoutError("Event observer did not observe the expected number of events.")
E TimeoutError: Event observer did not observe the expected number of events.
tests\_event_utils.py:52: TimeoutError
Loading