-
Notifications
You must be signed in to change notification settings - Fork 429
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
Intermittent Unit Test Failures #4485
Comments
Tks @ShohamBit. @NDStrahilevitz if you're able (time) would you mind checking those? The first is already documented: tracee/pkg/signatures/engine/engine_test.go Lines 346 to 350 in 4cdea40
tracee-rules one is also well known, but it was decided to leave it as is as a reminder of its deprecation (expected to be removed soon). |
@geyslan could it be that there is also an issue in the TestMetricsandPprofExist in performance tests? |
no, I didn't see any change. I checked the performance tests in the main and they failed his is the output of
|
It seems a flaky test, see that tracee timedout in your env: |
let me check |
Description
While running
make test-unit
on themain
branch to validate my PR, I noticed that some tests are failing intermittently. This issue appears to affect the following tests:TestEngine_ConsumeSources/happy_path_-_with_one_matching_selector
Test_setupOutput/happy_path_with_tracee_event_and_default_output
I observed that sometimes one of these tests passes while the other fails, indicating an inconsistency in the test suite.
Steps to Reproduce
Start the Docker environment:
Run the unit tests:
Expected Behavior
All unit tests should pass consistently.
Actual Behavior
The tests mentioned above fail intermittently, producing the following output:
=== NAME TestEngine_ConsumeSources/happy_path_-_with_one_matching_selector engine_test.go:380: Error Trace: /tracee/pkg/signatures/engine/engine_test.go:380 Error: Not equal: expected: 1 actual : 0 Test: TestEngine_ConsumeSources/happy_path_-_with_one_matching_selector Messages: happy path - with one matching selector === RUN TestEngine_LoadSignature/load_two_signatures --- PASS: TestEngine_LoadSignature (0.02s) --- PASS: TestEngine_LoadSignature/load_one_signature (0.01s) --- PASS: TestEngine_LoadSignature/load_two_signatures (0.00s) === RUN TestEngine_ConsumeSources/happy_path_-_with_no_matching_event_selector === RUN TestEngine_ConsumeSources/happy_path_-_with_all_events_selector === RUN TestEngine_ConsumeSources/happy_path_-_with_all_events_selector,_no_name === RUN TestEngine_ConsumeSources/happy_path_-_with_one_matching_selector_including_event_origin_from_container === RUN TestEngine_ConsumeSources/happy_path_-_with_one_matching_selector_with_mismatching_event_origin_from_container === RUN TestEngine_ConsumeSources/happy_path_-_with_one_matching_selector_including_event_origin_from_host === RUN TestEngine_ConsumeSources/sad_path_-_with_all_events_selector,_no_source === RUN TestEngine_ConsumeSources/sad_path_-_signature_init_fails === RUN TestEngine_ConsumeSources/sad_path_-_getSelectedEvents_returns_an_error === RUN TestEngine_ConsumeSources/sad_path_-_getMetadata_returns_an_error === RUN TestEngine_ConsumeSources/happy_path_-_signature_receives_a_non_tracee_event === RUN TestEngine_ConsumeSources/happy_path_-_signature_with_partial_selector_and_non_tracee_source --- FAIL: TestEngine_ConsumeSources (14.14s) --- FAIL: TestEngine_ConsumeSources/happy_path_-_with_one_matching_selector (1.00s) --- PASS: TestEngine_ConsumeSources/happy_path_-_with_no_matching_event_selector (1.19s) --- PASS: TestEngine_ConsumeSources/happy_path_-_with_all_events_selector (1.23s) --- PASS: TestEngine_ConsumeSources/happy_path_-_with_all_events_selector,_no_name (1.00s) --- PASS: TestEngine_ConsumeSources/happy_path_-_with_one_matching_selector_including_event_origin_from_container (1.53s) --- PASS: TestEngine_ConsumeSources/happy_path_-_with_one_matching_selector_with_mismatching_event_origin_from_container (1.00s) --- PASS: TestEngine_ConsumeSources/happy_path_-_with_one_matching_selector_including_event_origin_from_host (1.02s) --- PASS: TestEngine_ConsumeSources/sad_path_-_with_all_events_selector,_no_source (1.01s) --- PASS: TestEngine_ConsumeSources/sad_path_-_signature_init_fails (1.01s) --- PASS: TestEngine_ConsumeSources/sad_path_-_getSelectedEvents_returns_an_error (1.02s) --- PASS: TestEngine_ConsumeSources/sad_path_-_getMetadata_returns_an_error (1.01s) --- PASS: TestEngine_ConsumeSources/happy_path_-_signature_receives_a_non_tracee_event (1.08s) --- PASS: TestEngine_ConsumeSources/happy_path_-_signature_with_partial_selector_and_non_tracee_source (1.00s) FAIL coverage: 11.9% of statements FAIL github.com/aquasecurity/tracee/pkg/signatures/engine 14.765s
Output of
tracee version
:Output of
uname -a
:Additional details
The text was updated successfully, but these errors were encountered: