git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] gitlab-ci: upgrade machine type of Linux runners

From
Patrick Steinhardt <ps@pks.im>
Date
Sep 18, 2024, 06:49 UTC
Message-ID
<0dfcb4a7b38ca66ec50775928ecfb31c4bc2008b.1726642142.git.ps@pks.im>

With the recent effort to make the test suite free of memory leaks we now run a lot more of test suites with the leak-sanitizer enabled. While we were originally only executing around 23000 tests, we're now at 30000 tests. Naturally, this has a significant impact on the runtime of such a test run.

Naturally, this impact can also be felt for our leak-checking CI jobs. While macOS used to be the slowest-executing job on GitLab CI with ~15 minutes of runtime, nowadays it is our leak checks which take around 45 to 55 minutes.

Our Linux runners for GitLab CI are untagged, which means that they default to the "small" machine type with two CPU cores [1]. Upgrade these to the "medium" runner, which provide four CPU cores and which should thus provide a noticeable speedup.

In theory, we could upgrade to an ever larger machine than that. The official mirror [2] has an Ultimate license, so we could get up to 128 cores. But anybody running a fork of the Git project without such a license wouldn't be able to use those beefier machines and thus their pipelines would fail.

[1]: https://docs.gitlab.com/ee/ci/runners/hosted_runners/linux.html [2]: https://gitlab.com/git-scm/git/

Signed-off-by: Patrick Steinhardt <ps@pks.im>
---

A test run can be found at [1]. This change decreases the runtime by about 20 minutes to 25 - 28 minutes in total. I'd be open to adjust this to use "large" runners, but as mentioned in the commit message that would cause problems when somebody hosts their own Git repository at GitLab. Is this something we care about?

Patrick
[1]: https://gitlab.com/gitlab-org/git/-/merge_requests/215
 .gitlab-ci.yml | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 80b1668ebe..4abfbc3e20 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,6 +9,8 @@ workflow:
 
 test:linux:
   image: $image
+  tags:
+    - saas-linux-medium-amd64
   variables:
     CUSTOM_PATH: "/custom"
   before_script:

base-commit: 3fb745257b30a643ee78c9a7c52ab107c82e4745
-- 
2.46.0.551.gc5ee8f2d1c.dirty
Message 1 of 1 in “gitlab-ci: upgrade machine type of Linux runners”
  1. gitlab-ci: upgrade machine type of Linux runnersPatrick Steinhardt, Sep 18, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.