sqlmesh 0.199.1.dev37__py3-none-any.whl → 0.199.1.dev39__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sqlmesh/_version.py +2 -2
- sqlmesh/core/console.py +3 -1
- sqlmesh/integrations/github/cicd/command.py +3 -1
- sqlmesh/integrations/github/cicd/config.py +1 -0
- sqlmesh/integrations/github/cicd/controller.py +10 -0
- {sqlmesh-0.199.1.dev37.dist-info → sqlmesh-0.199.1.dev39.dist-info}/METADATA +1 -1
- {sqlmesh-0.199.1.dev37.dist-info → sqlmesh-0.199.1.dev39.dist-info}/RECORD +11 -11
- {sqlmesh-0.199.1.dev37.dist-info → sqlmesh-0.199.1.dev39.dist-info}/WHEEL +0 -0
- {sqlmesh-0.199.1.dev37.dist-info → sqlmesh-0.199.1.dev39.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.199.1.dev37.dist-info → sqlmesh-0.199.1.dev39.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.199.1.dev37.dist-info → sqlmesh-0.199.1.dev39.dist-info}/top_level.txt +0 -0
sqlmesh/_version.py
CHANGED
|
@@ -17,5 +17,5 @@ __version__: str
|
|
|
17
17
|
__version_tuple__: VERSION_TUPLE
|
|
18
18
|
version_tuple: VERSION_TUPLE
|
|
19
19
|
|
|
20
|
-
__version__ = version = '0.199.1.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 199, 1, '
|
|
20
|
+
__version__ = version = '0.199.1.dev39'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 199, 1, 'dev39')
|
sqlmesh/core/console.py
CHANGED
|
@@ -3107,7 +3107,9 @@ class MarkdownConsole(CaptureTerminalConsole):
|
|
|
3107
3107
|
AUDIT_PADDING = 7
|
|
3108
3108
|
|
|
3109
3109
|
def __init__(self, **kwargs: t.Any) -> None:
|
|
3110
|
-
super().__init__(
|
|
3110
|
+
super().__init__(
|
|
3111
|
+
**{**kwargs, "console": RichConsole(no_color=True, width=kwargs.pop("width", None))}
|
|
3112
|
+
)
|
|
3111
3113
|
|
|
3112
3114
|
def show_environment_difference_summary(
|
|
3113
3115
|
self,
|
|
@@ -28,7 +28,9 @@ logger = logging.getLogger(__name__)
|
|
|
28
28
|
@click.pass_context
|
|
29
29
|
def github(ctx: click.Context, token: str) -> None:
|
|
30
30
|
"""Github Action CI/CD Bot. See https://sqlmesh.readthedocs.io/en/stable/integrations/github/ for details"""
|
|
31
|
-
|
|
31
|
+
# set a larger width because if none is specified, it auto-detects 80 characters when running in GitHub Actions
|
|
32
|
+
# which can result in surprise newlines when outputting dates to backfill
|
|
33
|
+
set_console(MarkdownConsole(width=1000))
|
|
32
34
|
ctx.obj["github"] = GithubController(
|
|
33
35
|
paths=ctx.obj["paths"],
|
|
34
36
|
token=token,
|
|
@@ -28,6 +28,7 @@ class GithubCICDBotConfig(BaseConfig):
|
|
|
28
28
|
pr_include_unmodified: t.Optional[bool] = None
|
|
29
29
|
run_on_deploy_to_prod: bool = False
|
|
30
30
|
pr_environment_name: t.Optional[str] = None
|
|
31
|
+
pr_min_intervals: t.Optional[int] = None
|
|
31
32
|
prod_branch_names_: t.Optional[str] = Field(default=None, alias="prod_branch_name")
|
|
32
33
|
|
|
33
34
|
@model_validator(mode="before")
|
|
@@ -402,6 +402,7 @@ class GithubController:
|
|
|
402
402
|
skip_linter=True,
|
|
403
403
|
categorizer_config=self.bot_config.auto_categorize_changes,
|
|
404
404
|
start=self.bot_config.default_pr_start,
|
|
405
|
+
min_intervals=self.bot_config.pr_min_intervals,
|
|
405
406
|
skip_backfill=self.bot_config.skip_pr_backfill,
|
|
406
407
|
include_unmodified=self.bot_config.pr_include_unmodified,
|
|
407
408
|
)
|
|
@@ -485,6 +486,12 @@ class GithubController:
|
|
|
485
486
|
print(f"{key}={value}", file=fh)
|
|
486
487
|
|
|
487
488
|
def get_plan_summary(self, plan: Plan) -> str:
|
|
489
|
+
# use Verbosity.VERY_VERBOSE to prevent the list of models from being truncated
|
|
490
|
+
# this is particularly important for the "Models needing backfill" list because
|
|
491
|
+
# there is no easy way to tell this otherwise
|
|
492
|
+
orig_verbosity = self._console.verbosity
|
|
493
|
+
self._console.verbosity = Verbosity.VERY_VERBOSE
|
|
494
|
+
|
|
488
495
|
try:
|
|
489
496
|
# Clear out any output that might exist from prior steps
|
|
490
497
|
self._console.clear_captured_outputs()
|
|
@@ -517,7 +524,10 @@ class GithubController:
|
|
|
517
524
|
|
|
518
525
|
return f"{difference_summary}\n{missing_dates}{plan_flags_section}"
|
|
519
526
|
except PlanError as e:
|
|
527
|
+
logger.exception("Plan failed to generate")
|
|
520
528
|
return f"Plan failed to generate. Check for pending or unresolved changes. Error: {e}"
|
|
529
|
+
finally:
|
|
530
|
+
self._console.verbosity = orig_verbosity
|
|
521
531
|
|
|
522
532
|
def run_tests(self) -> t.Tuple[ModelTextTestResult, str]:
|
|
523
533
|
"""
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
sqlmesh/__init__.py,sha256=QjwaamJIdW7voXoS880yAx7tHm-Im4_mqGA-XJgafos,7631
|
|
2
|
-
sqlmesh/_version.py,sha256=
|
|
2
|
+
sqlmesh/_version.py,sha256=YtnCXaNuMYkv_iGdHfwJUdOfShiuco0W0utZr8h_yn4,530
|
|
3
3
|
sqlmesh/magics.py,sha256=bEzYqXHcM0P3CjyUZ1O9arlmXAdLAhoglKbQ29fD9AE,41842
|
|
4
4
|
sqlmesh/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
sqlmesh/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -11,7 +11,7 @@ sqlmesh/cli/options.py,sha256=-4ZclMIeIg8tghLowtmQNmpEFlm0QtOVEh40NqRdFHA,2499
|
|
|
11
11
|
sqlmesh/cli/project_init.py,sha256=5JmDmUK0WJs39hM-p76uzHYdo1Hnx6fKuJg_pR3Hn5A,16419
|
|
12
12
|
sqlmesh/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
13
|
sqlmesh/core/_typing.py,sha256=e1f7xO2aZCy38M_3VoDy-XI3shyd99-IFctgIFSgXWM,497
|
|
14
|
-
sqlmesh/core/console.py,sha256=
|
|
14
|
+
sqlmesh/core/console.py,sha256=mrh0oTT4kVesXbmbaPFgamhbEt8mE94FhUIubLvrLAQ,160808
|
|
15
15
|
sqlmesh/core/constants.py,sha256=gUABXWYgH_XOSbaZAJsR5o1dmA61JDCvBDyxqqXX3LM,2630
|
|
16
16
|
sqlmesh/core/context.py,sha256=9a8RqBBHQXjH7nMYiTcQRtp5_NYpk_9EFpPoBfDx94o,124321
|
|
17
17
|
sqlmesh/core/context_diff.py,sha256=CeUmMBJzN__98YohrtAiIYPIZI9mrGBk6bVADWBLUw8,21692
|
|
@@ -160,9 +160,9 @@ sqlmesh/integrations/llm.py,sha256=URgp3JKr06HYv6hGlJ7DQ9m3QCc41xRWK23HzmGpbDI,1
|
|
|
160
160
|
sqlmesh/integrations/slack.py,sha256=nxLxu5WztGbZH3JdqnzyPqmJUMfRdJ_49LQ7zR-u39Q,6801
|
|
161
161
|
sqlmesh/integrations/github/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
162
162
|
sqlmesh/integrations/github/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
163
|
-
sqlmesh/integrations/github/cicd/command.py,sha256=
|
|
164
|
-
sqlmesh/integrations/github/cicd/config.py,sha256=
|
|
165
|
-
sqlmesh/integrations/github/cicd/controller.py,sha256=
|
|
163
|
+
sqlmesh/integrations/github/cicd/command.py,sha256=xMUMJmNT0z8nWb992SzgnFI2IOQu6HYrkN6_KAMnlqE,12301
|
|
164
|
+
sqlmesh/integrations/github/cicd/config.py,sha256=Gwc0Gj9gj3CSvr8g1LMVK0rK8g05BUw8xDCQ9BPdoIs,2149
|
|
165
|
+
sqlmesh/integrations/github/cicd/controller.py,sha256=xLItdmgjYAkN8e3oBuaaOOC51Vg_69UO8U4ITK1Az-s,52811
|
|
166
166
|
sqlmesh/lsp/api.py,sha256=_lA_buSPZFIoLJuINbS53LbNOOaHp3orb0uFTE3aCqI,2328
|
|
167
167
|
sqlmesh/lsp/completions.py,sha256=Nt1XpFL_-QAIRM8BBBC6Ia6YG0hMZriiNJra7nGfD4Q,6676
|
|
168
168
|
sqlmesh/lsp/context.py,sha256=2aD_lH-GqAwCjTFHfCavH2fZz2T4IXQZVS7LDMAa2X4,12815
|
|
@@ -282,7 +282,7 @@ sqlmesh/utils/pydantic.py,sha256=o_NsXbIpDqNpUA1Uc5xF0ZzoXQYYB0DfHwdRxBwXPNk,120
|
|
|
282
282
|
sqlmesh/utils/rich.py,sha256=BpB47G0-JcU41LkGkeGKroexj4NOV5fox4-GOIXPgIc,3545
|
|
283
283
|
sqlmesh/utils/windows.py,sha256=r7Yin4WEwbvH7sKA3hOJtRsclmscNuBeCklCfVPvtQs,611
|
|
284
284
|
sqlmesh/utils/yaml.py,sha256=hvo5lmybYLcIx4p6CQwufS8X4MbwS60lEBnCmYJCXmU,2336
|
|
285
|
-
sqlmesh-0.199.1.
|
|
285
|
+
sqlmesh-0.199.1.dev39.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
|
|
286
286
|
web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
287
287
|
web/client/dist/index.html,sha256=DAv6ABGogw4xRLb0T_92WP_S7XWyqVhwBgGKWtuQwU4,5472
|
|
288
288
|
web/client/dist/assets/Audits-BuHAmFO8.js,sha256=zbYUF6WdUGMbnMm01GMNPb7xAJwj-o5wMdL56vPo2qE,1041
|
|
@@ -400,8 +400,8 @@ web/server/api/endpoints/models.py,sha256=kwj0s7uve3iZSMfmjkoPVMFMeY1sD0peTeyrWf
|
|
|
400
400
|
web/server/api/endpoints/modules.py,sha256=8hqqgonGay_mJmpCw0IdbjsPhWlQH2VLdKAqha-myac,468
|
|
401
401
|
web/server/api/endpoints/plan.py,sha256=bbbY50W_2MsZSTxOHWMKz0tbIm75nsRSlPy8GI2fg9Q,9306
|
|
402
402
|
web/server/api/endpoints/table_diff.py,sha256=SCy3-pr5x6bEEiOaZGCDbiHQhpgxwmnz3Acqa2Ie6jI,2090
|
|
403
|
-
sqlmesh-0.199.1.
|
|
404
|
-
sqlmesh-0.199.1.
|
|
405
|
-
sqlmesh-0.199.1.
|
|
406
|
-
sqlmesh-0.199.1.
|
|
407
|
-
sqlmesh-0.199.1.
|
|
403
|
+
sqlmesh-0.199.1.dev39.dist-info/METADATA,sha256=crN0ufkUPgYb_N4dqgjOj4gewS3L-523a1Qs2Oh7JoI,26659
|
|
404
|
+
sqlmesh-0.199.1.dev39.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
405
|
+
sqlmesh-0.199.1.dev39.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
|
|
406
|
+
sqlmesh-0.199.1.dev39.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
|
|
407
|
+
sqlmesh-0.199.1.dev39.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|