You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
failure_msg=f"The following models could not be categorized automatically:\n"
939
+
forsnapshotinplan.uncategorized:
940
+
failure_msg+=f"- {snapshot.name}\n"
941
+
failure_msg+= (
942
+
f"\nRun `sqlmesh plan {self.pr_environment_name}` locally to apply these changes.\n\n"
943
+
"If you would like the bot to automatically categorize changes, check the [documentation](https://sqlmesh.readthedocs.io/en/stable/integrations/github/) for more information."
failure_msg=f"This is an unexpected error.\n\n**Exception:**\n```\n{traceback.format_exc()}\n```"
959
+
943
960
conclusion_to_summary= {
944
961
GithubCheckConclusion.SKIPPED: f":next_track_button: Skipped creating or updating PR Environment `{self.pr_environment_name}`. {skip_reason}",
945
962
GithubCheckConclusion.FAILURE: f":x: Failed to create or update PR Environment `{self.pr_environment_name}`.\n\n{failure_msg}",
946
963
GithubCheckConclusion.CANCELLED: f":stop_sign: Cancelled creating or updating PR Environment `{self.pr_environment_name}`",
947
-
GithubCheckConclusion.ACTION_REQUIRED: f":warning: Action Required to create or update PR Environment `{self.pr_environment_name}`. There are likely uncateogrized changes. Run `plan` locally to apply these changes. If you want the bot to automatically categorize changes, then check documentation (https://sqlmesh.readthedocs.io/en/stable/integrations/github/) for more information.",
964
+
GithubCheckConclusion.ACTION_REQUIRED: f":warning: Action Required to create or update PR Environment `{self.pr_environment_name}` :warning:\n\n{failure_msg}",
948
965
}
949
966
summary=conclusion_to_summary.get(
950
967
conclusion, f":interrobang: Got an unexpected conclusion: {conclusion.value}"
assertpr_checks_runs[2]["output"]["title"] =="PR Virtual Data Environment: hello_world_2"
666
666
assert (
667
667
pr_checks_runs[2]["output"]["summary"]
668
-
==":warning: Action Required to create or update PR Environment `hello_world_2`. There are likely uncateogrized changes. Run `plan` locally to apply these changes. If you want the bot to automatically categorize changes, then check documentation (https://sqlmesh.readthedocs.io/en/stable/integrations/github/) for more information."
668
+
==""":warning: Action Required to create or update PR Environment `hello_world_2` :warning:\n\nThe following models could not be categorized automatically:\n- "memory"."sushi"."waiter_revenue_by_day"\n\nRun `sqlmesh plan hello_world_2` locally to apply these changes.\n\nIf you would like the bot to automatically categorize changes, check the [documentation](https://sqlmesh.readthedocs.io/en/stable/integrations/github/) for more information."""
669
669
)
670
670
671
671
assert"SQLMesh - Prod Plan Preview"incontroller._check_run_mapping
0 commit comments