From 9c435e316a075b4bfa7267bc3865c782614f2bf6 Mon Sep 17 00:00:00 2001 From: Themis Valtinos <73662635+themisvaltinos@users.noreply.github.com> Date: Tue, 8 Jul 2025 14:50:01 +0300 Subject: [PATCH] Fix: Freeze time to make github test determinstic --- tests/integrations/github/cicd/test_github_controller.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/integrations/github/cicd/test_github_controller.py b/tests/integrations/github/cicd/test_github_controller.py index 46c7b2d85f..fafc6f6291 100644 --- a/tests/integrations/github/cicd/test_github_controller.py +++ b/tests/integrations/github/cicd/test_github_controller.py @@ -6,6 +6,7 @@ from unittest.mock import PropertyMock, call import pytest +import time_machine from pytest_mock.plugin import MockerFixture from sqlmesh.core import constants as c @@ -608,6 +609,7 @@ def test_uncategorized( assert "Run `sqlmesh plan hello_world_2` locally to apply these changes" in summary +@time_machine.travel("2025-07-07 00:00:00 UTC", tick=False) def test_get_plan_summary_doesnt_truncate_backfill_list( github_client, make_controller: t.Callable[..., GithubController] ):