Skip to content

Commit

Permalink
metadata-service[orchestrator]: change success slack message for stal…
Browse files Browse the repository at this point in the history
…e metadata detection (#43419)
  • Loading branch information
alafanechere authored Aug 9, 2024
1 parent 6a6e54b commit 8401103
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import datetime
import hashlib
import os
import textwrap

import pandas as pd
import yaml
Expand Down Expand Up @@ -134,11 +135,13 @@ def stale_gcs_latest_metadata_file(context, github_metadata_definitions: list, m
send_slack_message(context, channel, f"🚨 Stale metadata detected! (cc. <!subteam^{TOOLING_TEAM_SLACK_TEAM_ID}>)")
send_slack_message(context, channel, stale_report_md, enable_code_block_wrapping=True)
else:
message = f"""
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.
All MD5 hashes of our metadata files on master match the latest metadata files on GCS.
message = textwrap.dedent(
f"""
Analyzed {len(latest_versions_on_github)} metadata files on our master branch and {len(latest_versions_on_gcs)} latest metadata files hosted in GCS.
All dockerImageTag value on master match the latest metadata files on GCS.
No stale metadata: GCS metadata are up to date with metadata hosted on GCS.
"""
)
send_slack_message(context, channel, message)
return output_dataframe(stale_connectors_df)

Expand Down

0 comments on commit 8401103

Please sign in to comment.