Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
ydshieh committed Mar 22, 2024
1 parent d92a2f9 commit 2c0cea5
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 29 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/self-scheduled-caller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,15 @@ jobs:
uses: ./.github/workflows/self-scheduled.yml
with:
job: run_tests_gpu
secrets:
CI_SLACK_BOT_TOKEN: ${{ secrets.CI_SLACK_BOT_TOKEN }}
CI_SLACK_REPORT_CHANNEL_ID: ${{ secrets.CI_SLACK_CHANNEL_ID_DAILY }}
ACCESS_REPO_INFO_TOKEN: ${{ secrets.CI_SLACK_BOT_TOKEN }}
channel: CI_SLACK_CHANNEL_ID_DAILY
secrets: inherit



quantization-ci:
name: Quantization CI
uses: ./.github/workflows/self-scheduled.yml
with:
job: run_tests_quantization_torch_gpu
secrets:
CI_SLACK_BOT_TOKEN: ${{ secrets.CI_SLACK_BOT_TOKEN }}
CI_SLACK_REPORT_CHANNEL_ID: ${{ secrets.CI_SLACK_BOT_TOKEN }}
ACCESS_REPO_INFO_TOKEN: ${{ secrets.CI_SLACK_BOT_TOKEN }}
channel: CI_SLACK_CHANNEL_ID_DAILY
secrets: inherit
18 changes: 4 additions & 14 deletions .github/workflows/self-scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,9 @@ on:
job:
required: true
type: string
secrets:
CI_SLACK_BOT_TOKEN:
channel:
required: true
CI_SLACK_REPORT_CHANNEL_ID:
required: true
ACCESS_REPO_INFO_TOKEN:
required: true

type: string

env:
HF_HOME: /mnt/cache
Expand All @@ -30,9 +25,6 @@ env:
# For gated repositories, we still need to agree to share information on the Hub repo. page in order to get access.
# This token is created under the bot `hf-transformers-bot`.
HF_HUB_READ_TOKEN: ${{ secrets.HF_HUB_READ_TOKEN }}
CI_SLACK_BOT_TOKEN: ${{ secrets.CI_SLACK_BOT_TOKEN }}
CI_SLACK_REPORT_CHANNEL_ID: ${{ secrets.CI_SLACK_REPORT_CHANNEL_ID }}
ACCESS_REPO_INFO_TOKEN: ${{ secrets.ACCESS_REPO_INFO_TOKEN }}
SIGOPT_API_TOKEN: ${{ secrets.SIGOPT_API_TOKEN }}
TF_FORCE_GPU_ALLOW_GROWTH: true
RUN_PT_TF_CROSS_TESTS: 1
Expand Down Expand Up @@ -472,7 +464,5 @@ jobs:
uses: ./.github/workflows/slack-report.yml
with:
job: ${{ inputs.job }}
secrets:
CI_SLACK_BOT_TOKEN: ${{ secrets.CI_SLACK_BOT_TOKEN }}
CI_SLACK_REPORT_CHANNEL_ID: ${{ secrets.CI_SLACK_BOT_TOKEN }}
ACCESS_REPO_INFO_TOKEN: ${{ secrets.CI_SLACK_BOT_TOKEN }}
channel: ${{ inputs.channel }}
secrets: inherit
14 changes: 7 additions & 7 deletions .github/workflows/slack-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@ on:
job:
required: true
type: string
secrets:
CI_SLACK_BOT_TOKEN:
required: true
CI_SLACK_REPORT_CHANNEL_ID:
required: true
ACCESS_REPO_INFO_TOKEN:
channel:
required: true
type: string


jobs:
send_results:
Expand All @@ -31,7 +28,10 @@ jobs:
- name: Send message to Slack
env:
CI_SLACK_BOT_TOKEN: ${{ secrets.CI_SLACK_BOT_TOKEN }}
CI_SLACK_REPORT_CHANNEL_ID: ${{ secrets.CI_SLACK_REPORT_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_DUMMY_TESTS: ${{ secrets.CI_SLACK_CHANNEL_DUMMY_TESTS }}
CI_SLACK_REPORT_CHANNEL_ID: ${{ inputs.channel }}
ACCESS_REPO_INFO_TOKEN: ${{ secrets.ACCESS_REPO_INFO_TOKEN }}
CI_EVENT: scheduled
CI_SHA: ${{ github.sha }}
Expand Down
7 changes: 7 additions & 0 deletions utils/notification_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,13 @@ def prepare_reports(title, header, reports, to_truncate=True):


if __name__ == "__main__":

a = os.environ["CI_SLACK_REPORT_CHANNEL_ID"]
b = os.environ[a]
print(a)
print(b[:4])
exit(0)

# runner_status = os.environ.get("RUNNER_STATUS")
# runner_env_status = os.environ.get("RUNNER_ENV_STATUS")
setup_status = os.environ.get("SETUP_STATUS")
Expand Down
1 change: 1 addition & 0 deletions utils/split_model_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,5 @@
start = end
end = start + num_jobs_per_splits + (1 if idx < num_jobs % args.num_splits else 0)
model_splits.append(d[start:end])
model_splits = [["models/bertweet"], ["models/byt5"]]
print(model_splits)

0 comments on commit 2c0cea5

Please sign in to comment.