Skip to content

Commit

Permalink
compare
Browse files Browse the repository at this point in the history
  • Loading branch information
ydshieh committed Mar 29, 2024
1 parent b9ad1be commit 2f8c010
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/slack-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ jobs:
pip show slack_sdk
python utils/notification_service.py "${{ inputs.folder_slices }}"
# # Upload complete failure tables, as they might be big and only truncated versions could be sent to Slack.
# - name: Failure table artifacts
# if: ${{ always() }}
# uses: actions/upload-artifact@v3
# with:
# name: prev_ci_results
# path: prev_ci_results
# Upload complete failure tables, as they might be big and only truncated versions could be sent to Slack.
- name: Failure table artifacts
if: ${{ inputs.job == 'run_tests_gpu' }}
uses: actions/upload-artifact@v3
with:
name: prev_ci_results
path: prev_ci_results
25 changes: 13 additions & 12 deletions utils/notification_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -743,19 +743,20 @@ def post_reply(self):

time.sleep(1)

blocks = self.get_new_model_failure_blocks()
if blocks:
print("Sending the following reply")
print(json.dumps({"blocks": blocks}))

client.chat_postMessage(
channel=CI_SLACK_REPORT_CHANNEL_ID,
text="Results for new failures",
blocks=blocks,
thread_ts=self.thread_ts["ts"],
)
if self.n_model_failures > 0:
blocks = self.get_new_model_failure_blocks()
if blocks:
print("Sending the following reply")
print(json.dumps({"blocks": blocks}))

client.chat_postMessage(
channel=CI_SLACK_REPORT_CHANNEL_ID,
text="Results for new failures",
blocks=blocks,
thread_ts=self.thread_ts["ts"],
)

time.sleep(1)
time.sleep(1)


def retrieve_artifact(artifact_path: str, gpu: Optional[str]):
Expand Down

0 comments on commit 2f8c010

Please sign in to comment.