[ruby-core:113854] ruby/ruby Cirrus CI improvement
From:
"Jun Aruga (he / him) via ruby-core" <ruby-core@...>
Date:
2023-06-09 10:57:16 UTC
List:
ruby-core #113854
Hello Fedor @ Cirrus CI,
CC: Ruby Core mailing list.
Thank you for helping the Ruby project for adding Cirrus CI. I am
sending an email to ask you for help to improve the Cirrus CI. We are
running 4 parallel jobs (2 gcc cases ARM, 2 clang cases ARM) in the
Cirrus CI.
However, I am seeing some challenges such as the queue is stopping,
and the clang cases are 2 or 3 times slower than gcc cases. So, today
we stopped the 2 clang cases in a compromised way.
Could you check our .cirrus.yml file on the reverted commit, and give
advice to us and ideally just send a pull-request to the master branch
for that?
https://github.com/ruby/ruby/blob/master/.cirrus.yml
```
$ git clone https://github.com/ruby/ruby.git
$ cd ruby
$ git revert 72f07f0a5f882e87e305d668587152fa209a0568.
```
I suspect the current `cpu:` value might not be correct. And we may
need the following change.
```
diff --git a/.cirrus.yml b/.cirrus.yml
index be76e4ab4a..8b820be1a2 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -16,10 +16,10 @@ task:
image: ghcr.io/ruby/ruby-ci-image:$CC
# Define the used cpu core in each matrix task. We can use total 16 cpu
# cores in entire matrix. [cpu] = [total cpu: 16] / [number of tasks]
- cpu: 8
+ cpu: 4
# We can request maximum 4 GB per cpu.
# [memory per task] = [memory per cpu: 4 GB] * [cpu]
- memory: 32G
+ memory: 16G
env:
CIRRUS_CLONE_DEPTH: 50
optflags: '-O1'
@@ -71,10 +71,10 @@ yjit_task:
image: ghcr.io/ruby/ruby-ci-image:$CC
# Define the used cpu core in each matrix task. We can use total 16 cpu
# cores in entire matrix. [cpu] = [total cpu: 16] / [number of tasks]
- cpu: 8
+ cpu: 4
# We can request maximum 4 GB per cpu.
# [memory per task] = [memory per cpu: 4 GB] * [cpu]
- memory: 32G
+ memory: 16G
env:
CIRRUS_CLONE_DEPTH: 50
optflags: '-O1'
```
Thank you for your help!
--
Jun | He - Him | Timezone: UTC+1 or 2, Czech Republic
See <https://www.worldtimebuddy.com/czech-republic-prague-to-utc> for
the timezone.
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/