"vscode:/vscode.git/clone" did not exist on "80367cd1fb6d36ca6bdd99b70586aab4ffae1ae1"
Unverified Commit 506899d1 authored by Yih-Dar's avatar Yih-Dar Committed by GitHub
Browse files

Fix push CI channel (#17242)


Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
parent 7198b633
...@@ -311,6 +311,7 @@ jobs: ...@@ -311,6 +311,7 @@ jobs:
CI_SLACK_CHANNEL_ID: ${{ secrets.CI_SLACK_CHANNEL_ID }} CI_SLACK_CHANNEL_ID: ${{ secrets.CI_SLACK_CHANNEL_ID }}
CI_SLACK_CHANNEL_ID_DAILY: ${{ secrets.CI_SLACK_CHANNEL_ID_DAILY }} CI_SLACK_CHANNEL_ID_DAILY: ${{ secrets.CI_SLACK_CHANNEL_ID_DAILY }}
CI_SLACK_CHANNEL_DUMMY_TESTS: ${{ secrets.CI_SLACK_CHANNEL_DUMMY_TESTS }} CI_SLACK_CHANNEL_DUMMY_TESTS: ${{ secrets.CI_SLACK_CHANNEL_DUMMY_TESTS }}
CI_SLACK_REPORT_CHANNEL_ID: ${{ secrets.CI_SLACK_CHANNEL_ID }}
CI_EVENT: push CI_EVENT: push
# We pass `needs.setup.outputs.matrix` as the argument. A processing in `notification_service.py` to change # We pass `needs.setup.outputs.matrix` as the argument. A processing in `notification_service.py` to change
# `models/bert` to `models_bert` is required, as the artifact names use `_` instead of `/`. # `models/bert` to `models_bert` is required, as the artifact names use `_` instead of `/`.
......
...@@ -353,6 +353,7 @@ jobs: ...@@ -353,6 +353,7 @@ jobs:
CI_SLACK_CHANNEL_ID: ${{ secrets.CI_SLACK_CHANNEL_ID }} CI_SLACK_CHANNEL_ID: ${{ secrets.CI_SLACK_CHANNEL_ID }}
CI_SLACK_CHANNEL_ID_DAILY: ${{ secrets.CI_SLACK_CHANNEL_ID_DAILY }} CI_SLACK_CHANNEL_ID_DAILY: ${{ secrets.CI_SLACK_CHANNEL_ID_DAILY }}
CI_SLACK_CHANNEL_DUMMY_TESTS: ${{ secrets.CI_SLACK_CHANNEL_DUMMY_TESTS }} CI_SLACK_CHANNEL_DUMMY_TESTS: ${{ secrets.CI_SLACK_CHANNEL_DUMMY_TESTS }}
CI_SLACK_REPORT_CHANNEL_ID: ${{ secrets.CI_SLACK_CHANNEL_ID_DAILY }}
CI_EVENT: scheduled CI_EVENT: scheduled
# We pass `needs.setup.outputs.matrix` as the argument. A processing in `notification_service.py` to change # We pass `needs.setup.outputs.matrix` as the argument. A processing in `notification_service.py` to change
# `models/bert` to `models_bert` is required, as the artifact names use `_` instead of `/`. # `models/bert` to `models_bert` is required, as the artifact names use `_` instead of `/`.
......
...@@ -381,7 +381,7 @@ class Message: ...@@ -381,7 +381,7 @@ class Message:
print(json.dumps({"blocks": json.loads(payload)})) print(json.dumps({"blocks": json.loads(payload)}))
client.chat_postMessage( client.chat_postMessage(
channel=os.environ["CI_SLACK_CHANNEL_ID_DAILY"], channel=os.environ["CI_SLACK_REPORT_CHANNEL_ID"],
text="There was an issue running the tests.", text="There was an issue running the tests.",
blocks=payload, blocks=payload,
) )
...@@ -393,7 +393,7 @@ class Message: ...@@ -393,7 +393,7 @@ class Message:
text = f"{self.n_failures} failures out of {self.n_tests} tests," if self.n_failures else "All tests passed." text = f"{self.n_failures} failures out of {self.n_tests} tests," if self.n_failures else "All tests passed."
self.thread_ts = client.chat_postMessage( self.thread_ts = client.chat_postMessage(
channel=os.environ["CI_SLACK_CHANNEL_ID_DAILY"], channel=os.environ["CI_SLACK_REPORT_CHANNEL_ID"],
blocks=self.payload, blocks=self.payload,
text=text, text=text,
) )
...@@ -439,7 +439,7 @@ class Message: ...@@ -439,7 +439,7 @@ class Message:
print(json.dumps({"blocks": blocks})) print(json.dumps({"blocks": blocks}))
client.chat_postMessage( client.chat_postMessage(
channel=os.environ["CI_SLACK_CHANNEL_ID_DAILY"], channel=os.environ["CI_SLACK_REPORT_CHANNEL_ID"],
text=f"Results for {job}", text=f"Results for {job}",
blocks=blocks, blocks=blocks,
thread_ts=self.thread_ts["ts"], thread_ts=self.thread_ts["ts"],
...@@ -462,7 +462,7 @@ class Message: ...@@ -462,7 +462,7 @@ class Message:
print(json.dumps({"blocks": blocks})) print(json.dumps({"blocks": blocks}))
client.chat_postMessage( client.chat_postMessage(
channel=os.environ["CI_SLACK_CHANNEL_ID_DAILY"], channel=os.environ["CI_SLACK_REPORT_CHANNEL_ID"],
text=f"Results for {job}", text=f"Results for {job}",
blocks=blocks, blocks=blocks,
thread_ts=self.thread_ts["ts"], thread_ts=self.thread_ts["ts"],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment