Skip to content

Commit 8401103

Browse files
authored
metadata-service[orchestrator]: change success slack message for stale metadata detection (#43419)
1 parent 6a6e54b commit 8401103

File tree

1 file changed

+6
-3
lines changed
  • airbyte-ci/connectors/metadata_service/orchestrator/orchestrator/assets

1 file changed

+6
-3
lines changed

airbyte-ci/connectors/metadata_service/orchestrator/orchestrator/assets/github.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import datetime
77
import hashlib
88
import os
9+
import textwrap
910

1011
import pandas as pd
1112
import yaml
@@ -134,11 +135,13 @@ def stale_gcs_latest_metadata_file(context, github_metadata_definitions: list, m
134135
send_slack_message(context, channel, f"🚨 Stale metadata detected! (cc. <!subteam^{TOOLING_TEAM_SLACK_TEAM_ID}>)")
135136
send_slack_message(context, channel, stale_report_md, enable_code_block_wrapping=True)
136137
else:
137-
message = f"""
138-
Analyzed {len(github_metadata_definitions)} metadata files on our master branch and {len(metadata_definitions)} latest metadata files hosted in GCS.All MD5 hashes of these files.
139-
All MD5 hashes of our metadata files on master match the latest metadata files on GCS.
138+
message = textwrap.dedent(
139+
f"""
140+
Analyzed {len(latest_versions_on_github)} metadata files on our master branch and {len(latest_versions_on_gcs)} latest metadata files hosted in GCS.
141+
All dockerImageTag value on master match the latest metadata files on GCS.
140142
No stale metadata: GCS metadata are up to date with metadata hosted on GCS.
141143
"""
144+
)
142145
send_slack_message(context, channel, message)
143146
return output_dataframe(stale_connectors_df)
144147

0 commit comments

Comments
 (0)