fleet-alert-property
checks.x86_64-linux.fleet-alert
· build #1615
· raw
1ok: transition.jq equals the reference model on every generated timeline2ok: a rule without expr but with a results entry fires and resolves as its expr twin3ok: a rule without expr or results entry, and results named for internal rules, produce nothing4ok: a RESOLVED follows 5 min of absence observed while neither the store nor the host is frozen5Traceback (most recent call last):6 File "/nix/store/31vqmxzl3xfpw253yvbim0lhy5h6cn6d-fleet-alert/test_transition.py", line 309, in <module>7 test_transition_matches_model()8 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^9 File "/nix/store/31vqmxzl3xfpw253yvbim0lhy5h6cn6d-fleet-alert/test_transition.py", line 162, in test_transition_matches_model10 derandomize=True,11 ^^^12 File "/nix/store/5a7fjh1dm85cxwdigw9007kfcbb4bw0a-python3-3.14.8-env/lib/python3.14/site-packages/hypothesis/core.py", line 2295, in wrapped_test13 raise the_error_hypothesis_found14 File "/nix/store/31vqmxzl3xfpw253yvbim0lhy5h6cn6d-fleet-alert/test_transition.py", line 175, in test_transition_matches_model15 assert want == got, f"run {index}: model posts {want}, transition.jq posts {got}"16 ^^^^^^^^^^^17AssertionError: run 2: model posts [{'title': '[FIRING] Crit magnetite', 'priority': 'high', 'kind': 'repost', 'id': '["Crit",[{"key":"host_name","value":"magnetite"}]]'}], transition.jq posts []18Failing test case: test_transition_matches_model(19 # The test always failed when commented parts were varied together.20 steps=[{21 'dt': 60, # or any other generated value22 'storeError': False, # or any other generated value23 'reporting': ['magnetite',24 'stibnite'], # or any other generated value25 'results': {26 'Crit': [], # or any other generated value27 'Warn': [], # or any other generated value28 'Info': [], # or any other generated value29 },30 'failAt': None, # or any other generated value31 },32 {33 'dt': 60, # or any other generated value34 'storeError': False,35 'reporting': ['magnetite', 'stibnite'],36 'results': {37 'Crit': ['magnetite'],38 'Warn': [], # or any other generated value39 'Info': [], # or any other generated value40 },41 'failAt': None,42 },43 {44 'dt': 86400,45 'storeError': False,46 'reporting': ['magnetite', 'stibnite'],47 'results': {48 'Crit': ['magnetite'],49 'Warn': [], # or any other generated value50 'Info': [], # or any other generated value51 },52 'failAt': None, # or any other generated value53 }],54)55Explanation:56 These lines were always and only run by failing test cases:57 /nix/store/31vqmxzl3xfpw253yvbim0lhy5h6cn6d-fleet-alert/model.py:14358 /nix/store/5a7fjh1dm85cxwdigw9007kfcbb4bw0a-python3-3.14.8-env/lib/python3.14/contextlib.py:157