From d793d3622b72833b27e6f61d64bd3f5a43e70cda Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Mon, 31 Oct 2022 13:54:13 -0700 Subject: [PATCH 1/2] test_models: fix runaway memory growth for long running tests (#26295) * delete can msgs * only can msgs --- selfdrive/car/tests/test_models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/selfdrive/car/tests/test_models.py b/selfdrive/car/tests/test_models.py index e4e141153f..8cf748e746 100755 --- a/selfdrive/car/tests/test_models.py +++ b/selfdrive/car/tests/test_models.py @@ -109,6 +109,10 @@ class TestCarModelBase(unittest.TestCase): assert cls.CP assert cls.CP.carFingerprint == cls.car_model + @classmethod + def tearDownClass(cls): + del cls.can_msgs + def setUp(self): self.CI = self.CarInterface(self.CP, self.CarController, self.CarState) assert self.CI From 3fc373b4e4829b03ddc363741006af0589d97588 Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Tue, 1 Nov 2022 04:59:16 +0800 Subject: [PATCH 2/2] Cabana: fix mouse freezes / hangs (#26292) * fix mouseReleaseEvent * trigger ci --- tools/cabana/chartswidget.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/cabana/chartswidget.cc b/tools/cabana/chartswidget.cc index 21fd71b8ea..56346c6d6e 100644 --- a/tools/cabana/chartswidget.cc +++ b/tools/cabana/chartswidget.cc @@ -402,10 +402,13 @@ void ChartView::mouseReleaseEvent(QMouseEvent *event) { // zoom in if selected range is greater than 0.5s emit zoomIn(min, max); } + event->accept(); } else if (event->button() == Qt::RightButton) { emit zoomReset(); + event->accept(); + } else { + QGraphicsView::mouseReleaseEvent(event); } - event->accept(); } void ChartView::mouseMoveEvent(QMouseEvent *ev) {