aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2023-07-24 12:19:13 +0200
committerTaras Madan <tarasmadan@google.com>2023-07-25 09:23:24 +0000
commitea375f8320bc8a00deb4199787bed09633328377 (patch)
tree26a5b7644d3959502025e3e0adfa4232c77473ba /.github
parent876ac09776767ab1ce15e134d0a3fa89110def6e (diff)
ci.yml: run any-env tests on k8s-env
Diffstat (limited to '.github')
-rw-r--r--.github/arc_config/runner.yaml38
-rw-r--r--.github/workflows/ci.yml6
2 files changed, 41 insertions, 3 deletions
diff --git a/.github/arc_config/runner.yaml b/.github/arc_config/runner.yaml
new file mode 100644
index 000000000..6dd1c89e1
--- /dev/null
+++ b/.github/arc_config/runner.yaml
@@ -0,0 +1,38 @@
+# Copyright 2023 syzkaller project authors. All rights reserved.
+# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
+
+apiVersion: actions.summerwind.dev/v1alpha1
+kind: RunnerDeployment
+metadata:
+ name: k8s-action-runner
+ namespace: actions-runner-system
+spec:
+ template:
+ spec:
+ repository: google/syzkaller
+ resources:
+ requests:
+ cpu: "31"
+ memory: "26Gi"
+ limits:
+ memory: "28Gi"
+ labels:
+ - k8s-env
+
+---
+
+apiVersion: actions.summerwind.dev/v1alpha1
+kind: HorizontalRunnerAutoscaler
+metadata:
+ name: k8s-action-runner-autoscaler
+ namespace: actions-runner-system
+spec:
+ scaleTargetRef:
+ kind: RunnerDeployment
+ name: k8s-action-runner
+ minReplicas: 3
+ maxReplicas: 10
+ metrics:
+ - type: TotalNumberOfQueuedAndInProgressWorkflowRuns
+ repositoryNames:
+ - google/syzkaller
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 33011edb0..c6b647296 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -36,7 +36,7 @@ jobs:
GITHUB_PR_COMMITS: ${{ github.event.pull_request.commits }}
run: gopath/src/github.com/google/syzkaller/.github/workflows/run.sh syz-env make presubmit_aux
build:
- runs-on: any-env
+ runs-on: k8s-env
steps:
- name: checkout
uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2
@@ -57,7 +57,7 @@ jobs:
files: gopath/src/github.com/google/syzkaller/.coverage.txt
flags: unittests
dashboard:
- runs-on: any-env
+ runs-on: k8s-env
steps:
- name: checkout
uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2
@@ -93,7 +93,7 @@ jobs:
- name: run
run: gopath/src/github.com/google/syzkaller/.github/workflows/run.sh syz-env make ${{ matrix.target }}
race:
- runs-on: any-env
+ runs-on: k8s-env
steps:
- name: checkout
uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2