Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runner config updated, enable integration test and scaler to zero ci nodes #3317

Merged
merged 1 commit into from
Apr 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 32 additions & 13 deletions kube/manifest/runner/runner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,25 @@ spec:
template:
spec:
nodeSelector:
starcoin/node-pool: ci-pool
node-pool: ci-pool
image: starcoin/starcoin-builder:sha-cbd4ad4
env:
- name: RUNNER_FEATURE_FLAG_EPHEMERAL
value: "true"
repository: starcoinorg/starcoin
ephemeral: true
tolerations:
- key: "app"
operator: "Equal"
value: "ci"
effect: "NoExecute"
serviceAccountName: github-runner
resources:
requests:
cpu: "30.0"
memory: "64Gi"
#cpu: "30.0"
#memory: "64Gi"
cpu: "15.0"
memory: "32Gi"
ephemeral-storage: "40Gi"
limits:
ephemeral-storage: "50Gi"
# If set to false, there are no privileged container and you cannot use docker.
dockerEnabled: true
# If set to true, runner pod container only 1 container that's expected to be able to run docker, too.
Expand All @@ -25,8 +33,13 @@ spec:
# Valid if dockerdWithinRunnerContainer is not true
dockerdContainerResources:
requests:
cpu: "30.0"
memory: "64Gi"
#cpu: "30.0"
#memory: "64Gi"
cpu: "15.0"
memory: "32Gi"
ephemeral-storage: "40Gi"
limits:
ephemeral-storage: "50Gi"

---
apiVersion: actions.summerwind.dev/v1alpha1
Expand All @@ -36,10 +49,16 @@ metadata:
spec:
scaleTargetRef:
name: starcoin-runner-deployment
minReplicas: 1
minReplicas: 0
maxReplicas: 6
scaleDownDelaySecondsAfterScaleOut: 120
metrics:
- type: TotalNumberOfQueuedAndInProgressWorkflowRuns
repositoryNames:
- starcoinorg/starcoin
scaleUpTriggers:
- githubEvent:
pullRequest:
types: ["synchronize"]
branches: ["master"]
checkRun:
types: ["created"]
status: "queued"
amount: 2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里的 amount 2 代表什么?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

对于每次回调事件,在duration时间内,启动2个runner

duration: "2m"