Merge pull request #33954 from ClickHouse/style-checker-aarch64

Add on-demand style-checker-aarch64 hosts
This commit is contained in:
Mikhail f. Shiryaev 2022-01-24 17:04:57 +01:00 committed by GitHub
commit 0eaeabd9d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 11 additions and 9 deletions

View File

@ -1,8 +1,9 @@
self-hosted-runner: self-hosted-runner:
labels: labels:
- builder - builder
- func-tester
- func-tester-aarch64
- fuzzer-unit-tester - fuzzer-unit-tester
- stress-tester - stress-tester
- style-checker - style-checker
- func-tester-aarch64 - style-checker-aarch64
- func-tester

View File

@ -10,7 +10,7 @@ on: # yamllint disable-line rule:truthy
- 'backport/**' - 'backport/**'
jobs: jobs:
DockerHubPushAarch64: DockerHubPushAarch64:
runs-on: [self-hosted, func-tester-aarch64] runs-on: [self-hosted, style-checker-aarch64]
steps: steps:
- name: Clear repository - name: Clear repository
run: | run: |

View File

@ -30,7 +30,7 @@ jobs:
python3 run_check.py python3 run_check.py
DockerHubPushAarch64: DockerHubPushAarch64:
needs: CheckLabels needs: CheckLabels
runs-on: [self-hosted, func-tester-aarch64] runs-on: [self-hosted, style-checker-aarch64]
steps: steps:
- name: Clear repository - name: Clear repository
run: | run: |

View File

@ -20,7 +20,7 @@ on: # yamllint disable-line rule:truthy
workflow_dispatch: workflow_dispatch:
jobs: jobs:
DockerHubPushAarch64: DockerHubPushAarch64:
runs-on: [self-hosted, func-tester-aarch64] runs-on: [self-hosted, style-checker-aarch64]
steps: steps:
- name: Clear repository - name: Clear repository
run: | run: |

View File

@ -22,7 +22,7 @@ jobs:
cd "$GITHUB_WORKSPACE/tests/ci" cd "$GITHUB_WORKSPACE/tests/ci"
python3 -m unittest discover -s . -p '*_test.py' python3 -m unittest discover -s . -p '*_test.py'
DockerHubPushAarch64: DockerHubPushAarch64:
runs-on: [self-hosted, func-tester-aarch64] runs-on: [self-hosted, style-checker-aarch64]
steps: steps:
- name: Clear repository - name: Clear repository
run: | run: |

View File

@ -46,7 +46,7 @@ jobs:
python3 -m unittest discover -s . -p '*_test.py' python3 -m unittest discover -s . -p '*_test.py'
DockerHubPushAarch64: DockerHubPushAarch64:
needs: CheckLabels needs: CheckLabels
runs-on: [self-hosted, func-tester-aarch64] runs-on: [self-hosted, style-checker-aarch64]
steps: steps:
- name: Clear repository - name: Clear repository
run: | run: |

View File

@ -13,7 +13,7 @@ on: # yamllint disable-line rule:truthy
jobs: jobs:
DockerHubPushAarch64: DockerHubPushAarch64:
runs-on: [self-hosted, func-tester-aarch64] runs-on: [self-hosted, style-checker-aarch64]
steps: steps:
- name: Clear repository - name: Clear repository
run: | run: |

View File

@ -174,6 +174,7 @@ def group_runners_by_tag(listed_runners):
"fuzzer-unit-tester", "fuzzer-unit-tester",
"stress-tester", "stress-tester",
"style-checker", "style-checker",
"style-checker-aarch64",
] ]
for runner in listed_runners: for runner in listed_runners:
for tag in runner.tags: for tag in runner.tags:

View File

@ -12,7 +12,7 @@ DIFF_IN_DOCUMENTATION_EXT = [".html", ".md", ".yml", ".txt", ".css", ".js", ".xm
def get_pr_for_commit(sha, ref): def get_pr_for_commit(sha, ref):
if not ref: if not ref:
return return None
try_get_pr_url = f"https://api.github.com/repos/{GITHUB_REPOSITORY}/commits/{sha}/pulls" try_get_pr_url = f"https://api.github.com/repos/{GITHUB_REPOSITORY}/commits/{sha}/pulls"
try: try:
response = requests.get(try_get_pr_url) response = requests.get(try_get_pr_url)