sqlmesh 0.188.2.dev22__py3-none-any.whl → 0.188.2.dev23__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 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.188.2.dev22'
21
- __version_tuple__ = version_tuple = (0, 188, 2, 'dev22')
20
+ __version__ = version = '0.188.2.dev23'
21
+ __version_tuple__ = version_tuple = (0, 188, 2, 'dev23')
@@ -185,9 +185,11 @@ def _deploy_production(controller: GithubController) -> bool:
185
185
  skip_reason=str(e),
186
186
  )
187
187
  return False
188
- except PlanError:
188
+ except PlanError as e:
189
189
  controller.update_prod_environment_check(
190
- status=GithubCheckStatus.COMPLETED, conclusion=GithubCheckConclusion.ACTION_REQUIRED
190
+ status=GithubCheckStatus.COMPLETED,
191
+ conclusion=GithubCheckConclusion.ACTION_REQUIRED,
192
+ plan_error=e,
191
193
  )
192
194
  return False
193
195
  except Exception:
@@ -977,6 +977,7 @@ class GithubController:
977
977
  status: GithubCheckStatus,
978
978
  conclusion: t.Optional[GithubCheckConclusion] = None,
979
979
  skip_reason: t.Optional[str] = None,
980
+ plan_error: t.Optional[PlanError] = None,
980
981
  ) -> None:
981
982
  """
982
983
  Updates the status of the merge commit for the prod environment.
@@ -990,6 +991,7 @@ class GithubController:
990
991
  GithubCheckConclusion.CANCELLED: "Cancelled deploying to prod",
991
992
  GithubCheckConclusion.SKIPPED: skip_reason,
992
993
  GithubCheckConclusion.FAILURE: "Failed to deploy to prod",
994
+ GithubCheckConclusion.ACTION_REQUIRED: "Failed due to error applying plan",
993
995
  }
994
996
  title = (
995
997
  conclusion_to_title.get(conclusion)
@@ -1002,6 +1004,11 @@ class GithubController:
1002
1004
  summary = (
1003
1005
  captured_errors or f"{title}\n\n**Error:**\n```\n{traceback.format_exc()}\n```"
1004
1006
  )
1007
+ elif conclusion.is_action_required:
1008
+ if plan_error:
1009
+ summary = f"**Plan error:**\n```\n{plan_error}\n```"
1010
+ else:
1011
+ summary = "Got an action required conclusion but no plan error was provided. This is unexpected."
1005
1012
  else:
1006
1013
  summary = "**Generated Prod Plan**\n" + self.get_plan_summary(self.prod_plan)
1007
1014
  return conclusion, title, summary
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sqlmesh
3
- Version: 0.188.2.dev22
3
+ Version: 0.188.2.dev23
4
4
  Summary: Next-generation data transformation framework
5
5
  Author-email: "TobikoData Inc." <engineering@tobikodata.com>
6
6
  License: Apache License
@@ -1,5 +1,5 @@
1
1
  sqlmesh/__init__.py,sha256=69xw6bTmi4cW90M-sl3g6wLDgxVcLHcKg1q8GS3lqyA,7466
2
- sqlmesh/_version.py,sha256=a_P3i7E4C_5im2RYFEc9wDfj_D_OsFBQKwC0vHftMkM,530
2
+ sqlmesh/_version.py,sha256=1QD3HEdq_p-wg_mOYBMLE4yQPVoUKRRJ5ZEhaQj6ERg,530
3
3
  sqlmesh/magics.py,sha256=fu7-OeT_0_TAkWZOLoiioE3-3iFpvTRxFCbQUlRnfuw,39944
4
4
  sqlmesh/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  sqlmesh/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -152,9 +152,9 @@ sqlmesh/integrations/llm.py,sha256=URgp3JKr06HYv6hGlJ7DQ9m3QCc41xRWK23HzmGpbDI,1
152
152
  sqlmesh/integrations/slack.py,sha256=nxLxu5WztGbZH3JdqnzyPqmJUMfRdJ_49LQ7zR-u39Q,6801
153
153
  sqlmesh/integrations/github/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
154
154
  sqlmesh/integrations/github/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
155
- sqlmesh/integrations/github/cicd/command.py,sha256=3toifUNTXpYvvOVXb_BiOAgna8CNOQfFEyUTFuDyK10,11515
155
+ sqlmesh/integrations/github/cicd/command.py,sha256=KPnD08Jjt7L5_nPZ7OYrkZXO9u-2aG918YSVIULlITo,11559
156
156
  sqlmesh/integrations/github/cicd/config.py,sha256=tRhMZaLf1p6AWXvi67n85Q-lptJNGt1Wk_Jr61ytpiM,2104
157
- sqlmesh/integrations/github/cicd/controller.py,sha256=FmOO93RF5auSU6aDU2beiP5LblLs38eAUYgHGWB9jYc,41666
157
+ sqlmesh/integrations/github/cicd/controller.py,sha256=VM9zL1wsuhTTyDb-P27-RmZGQhTsLF5qeLmaZJ1l7_w,42100
158
158
  sqlmesh/lsp/api.py,sha256=LJdECSaEZoPbu_Xl4KscVG-WLt7_g4dY-zKGO68dH14,2162
159
159
  sqlmesh/lsp/completions.py,sha256=Ufe5XyqmT8ttXqQDbhH2RtuGC0cVuVfSnGqDMl6KmB4,3601
160
160
  sqlmesh/lsp/context.py,sha256=ozkrw-897_Scbbn4AnKdeTQhrUb0CI0e34vcV-5U2DA,6158
@@ -270,7 +270,7 @@ sqlmesh/utils/pydantic.py,sha256=I898jAFqa3qU6lG2uPpRebVFncOUo8ZrLWM_R3K3DHU,116
270
270
  sqlmesh/utils/rich.py,sha256=xNZyPCqEc4TAlJlsEthg-5eYUWpaizz0QjBzO7a1Yv4,1509
271
271
  sqlmesh/utils/windows.py,sha256=r7Yin4WEwbvH7sKA3hOJtRsclmscNuBeCklCfVPvtQs,611
272
272
  sqlmesh/utils/yaml.py,sha256=np-WVcwmwsKghCgAj1OBBMsK1SXSRn4wR-H37cGiFr8,2282
273
- sqlmesh-0.188.2.dev22.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
273
+ sqlmesh-0.188.2.dev23.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
274
274
  web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
275
275
  web/client/dist/index.html,sha256=LbR9XrOXE77otBPoDnaomssYz6h2TBwLANs6hUJ0p2M,5472
276
276
  web/client/dist/assets/Audits-DB1HcP9M.js,sha256=eGI_Soj69Jntsixw1NqQpdwG94N5jipQZv7T1Y7WUSs,1041
@@ -388,8 +388,8 @@ web/server/api/endpoints/models.py,sha256=ud-lRwriyI_OYg9tZchrBgeiXELiRTLNEodraf
388
388
  web/server/api/endpoints/modules.py,sha256=8hqqgonGay_mJmpCw0IdbjsPhWlQH2VLdKAqha-myac,468
389
389
  web/server/api/endpoints/plan.py,sha256=OYuQ_4dgbhG9ibTcX1a8mvYgH3ANxw9Fhbb4wg6QWqc,9222
390
390
  web/server/api/endpoints/table_diff.py,sha256=Wd5YxeKbZB7AkrDvqFgvV9ZQlnKYOF1n5W_w2EHE_Zw,2085
391
- sqlmesh-0.188.2.dev22.dist-info/METADATA,sha256=Q0X7Jrg-7IIRhRprCB6x79s_waV6xLfUI4P-i7hDn6k,26532
392
- sqlmesh-0.188.2.dev22.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
393
- sqlmesh-0.188.2.dev22.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
394
- sqlmesh-0.188.2.dev22.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
395
- sqlmesh-0.188.2.dev22.dist-info/RECORD,,
391
+ sqlmesh-0.188.2.dev23.dist-info/METADATA,sha256=h0uAu684f0VZ6HugPgdvOFpsDUVagMOjGxPLXOlNApk,26532
392
+ sqlmesh-0.188.2.dev23.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
393
+ sqlmesh-0.188.2.dev23.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
394
+ sqlmesh-0.188.2.dev23.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
395
+ sqlmesh-0.188.2.dev23.dist-info/RECORD,,