Skip to content

Commit fd164d9

Browse files
see if I can get more logs about why log-buckets fail often
1 parent 0c75d8f commit fd164d9

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
7171
- name: Run tests
7272
run: |
73-
pytest pioreactor/tests/ -vv --timeout 600 --random-order --durations 15
73+
pytest pioreactor/tests/ -vv --timeout 600 --random-order --durations 15 --log-level DEBUG
7474
pytest pioreactor/tests/test_automation_imports.py
7575
env:
7676
TESTING: 1

pioreactor/background_jobs/leader/mqtt_to_db_streaming.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,13 +349,13 @@ def parse_kalman_filter_outputs(topic: str, payload: pt.MQTTMessagePayload) -> d
349349
"timestamp": kf_output.timestamp,
350350
"state_0": kf_output.state[0],
351351
"state_1": kf_output.state[1],
352-
"state_2": kf_output.state[2],
352+
"state_2": 0.0, # prev acc
353353
"cov_00": kf_output.covariance_matrix[0][0],
354354
"cov_01": kf_output.covariance_matrix[0][1],
355-
"cov_02": kf_output.covariance_matrix[0][2],
355+
"cov_02": 0.0,
356356
"cov_11": kf_output.covariance_matrix[1][1],
357-
"cov_12": kf_output.covariance_matrix[1][2],
358-
"cov_22": kf_output.covariance_matrix[2][2],
357+
"cov_12": 0.0,
358+
"cov_22": 0.0,
359359
}
360360

361361

pioreactor/pubsub.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,9 @@ def __init__(self, log_level: str, unit: str, experiment: str) -> None:
331331
self.client: Client = subscribe_and_callback(
332332
self._collect_logs_into_bucket,
333333
f"pioreactor/{self.unit}/{self.experiment}/logs/app/{self.log_level.lower()}",
334+
allow_retained=False,
334335
)
336+
assert self.client.is_connected
335337

336338
def _collect_logs_into_bucket(self, message):
337339
# load the message

0 commit comments

Comments
 (0)