Peter Leitzen activity https://gitlab.com/splattael 2026-03-18T17:06:36Z tag:gitlab.com,2026-03-18:5218720860 Peter Leitzen commented on merge request !30 at GitLab.com / GitLab Infrastructure Team / sandbox / caproni-demo 2026-03-18T17:06:36Z splattael Peter Leitzen [email protected]

That's a one-off tasks on cluster startup. Are migrations are now running faster? 🤔

tag:gitlab.com,2026-03-18:5218715091 Peter Leitzen commented on merge request !30 at GitLab.com / GitLab Infrastructure Team / sandbox / caproni-demo 2026-03-18T17:05:21Z splattael Peter Leitzen [email protected]

@kkloss Thanks a lot 🙇

Locally, I removed all limits which improved start-up time of webservice pod from ~60s to ~40s!

Since I am testing caproni run a lot this saving is huge.

@gitlab-org/maintainers/caproni Thoughts on dropping even more limits (especially CPU) to speed-up caproni testing/usage? 🤔

tag:gitlab.com,2026-03-18:5218715084 Peter Leitzen commented on merge request !30 at GitLab.com / GitLab Infrastructure Team / sandbox / caproni-demo 2026-03-18T17:05:20Z splattael Peter Leitzen [email protected]

Question Were you able to run ./db_migrate.sh against the toolbox now? 🤔

tag:gitlab.com,2026-03-18:5217653021 Peter Leitzen opened merge request !93: Draft: feat: add paused_image and container options to mirror config at GitLab.com / GitLab Infrastructure Team / san... 2026-03-18T13:36:57Z splattael Peter Leitzen [email protected]

Adds two new optional fields to the mirror configuration.

container field on mirror target

Adds a container field to the mirror target configuration, allowing mirrord to intercept a specific container within a pod or deployment rather than the first container.

When set, the mirrord target path becomes {type}/{name}/container/{container} instead of {type}/{name}. This field is passed through to the mirrord config only — the deployment scale-down and copy logic is unaffected.

paused_image field on mirror reloader config

Adds a paused_image field to the mirror reloader configuration that controls which image the -caproni copy deployment uses:

  • copy_image (default): use GL_COPY_SLEEP_IMAGE
  • original: keep each container's existing image unchanged
  • any other value: use it directly as a Docker image reference

Example configuration

reloaders:
  my-service:
    type: mirror
    mirror:
      paused_image: original  # or 'copy_image' (default), or an explicit image ref like 'alpine:3.20'
      target:
        namespace: my-namespace
        kubernetes_type: deployment
        name: my-deployment
        container: my-container  # optional: intercept a specific container
tag:gitlab.com,2026-03-18:5217606852 Peter Leitzen commented on merge request !16 at GitLab.com / GitLab Infrastructure Team / sandbox / caproni-demo 2026-03-18T13:27:52Z splattael Peter Leitzen [email protected]

We could workaround the limitation by allowing to run sleep infinity (as k8s args) on original images. For example: caproni-cli!93

tag:gitlab.com,2026-03-18:5217600073 Peter Leitzen commented on merge request !16 at GitLab.com / GitLab Infrastructure Team / sandbox / caproni-demo 2026-03-18T13:26:40Z splattael Peter Leitzen [email protected]

With that sidekiq boots but I now the gitlab shell secret is created locally because Gitlab.config.gitlab_shell.secret_file is missing in config/gitlab-secret.yml (comapred to config/gitlab.yml in webservice):

@@ -207,41 +216,23 @@
   gitlab_shell:
     path: /home/git/gitlab-shell/
     hooks_path: /home/git/gitlab-shell/hooks/
     upload_pack: true
     receive_pack: true
     ssh_port: 22
-    secret_file: /etc/gitlab/shell/.gitlab_shell_secret

and now secret_path defaults to local gitlab/ folder. Verified via mirrord:

[1] pry(main)> Gitlab.config.gitlab_shell.secret_file
=> #<Pathname:/home/peter/devel/gitlab/caproni-demo/monolith-edit-mode/gitlab/.gitlab_shell_secret>
[2] pry(main)> Gitlab.config.gitlab_shell
=> #<GitlabSettings::Options:0x00007f68087994c0
 @options=
  {"path"=>"/home/git/gitlab-shell",
   "hooks_path"=>:deprecated_use_gitlab_shell_path_instead,
   "upload_pack"=>true,
   "receive_pack"=>true,
   "ssh_port"=>22,
   "authorized_keys_file"=>"/home/peter/.ssh/authorized_keys",
   "secret_file"=>#<Pathname:/home/peter/devel/gitlab/caproni-demo/monolith-edit-mode/gitlab/.gitlab_shell_secret>,
   "ssh_host"=>"gitlab.caproni.test",
   "ssh_user"=>"git",
   "owner_group"=>"git",
   "ssh_path_prefix"=>"[email protected]:",
   "git_timeout"=>10800}>
tag:gitlab.com,2026-03-18:5217406455 Peter Leitzen deleted project branch kev-wait-migrate at GitLab.com / GitLab Infrastructure Team / sandbox / caproni-demo 2026-03-18T12:46:37Z splattael Peter Leitzen [email protected]

Peter Leitzen (ecaa93b3) at 18 Mar 12:46

tag:gitlab.com,2026-03-18:5217405261 Peter Leitzen accepted merge request !29: feat(monolith): wait for deployment to be ready before migrating at GitLab.com / GitLab Infrastructure Team / sandb... 2026-03-18T12:46:24Z splattael Peter Leitzen [email protected]

What

This adds a wait for the deployment to be ready before migrating.

Why

Avoids a failure of mirrord when the webservice deployment's pod is currently starting.

tag:gitlab.com,2026-03-18:5217405246 Peter Leitzen pushed to project branch main at GitLab.com / GitLab Infrastructure Team / sandbox / caproni-demo 2026-03-18T12:46:24Z splattael Peter Leitzen [email protected]

Peter Leitzen (c61b7c70) at 18 Mar 12:46

Merge branch 'kev-wait-migrate' into 'main'

... and 1 more commit

tag:gitlab.com,2026-03-18:5217402319 Peter Leitzen approved merge request !29: feat(monolith): wait for deployment to be ready before migrating at GitLab.com / GitLab Infrastructure Team / sandb... 2026-03-18T12:45:54Z splattael Peter Leitzen [email protected]

What

This adds a wait for the deployment to be ready before migrating.

Why

Avoids a failure of mirrord when the webservice deployment's pod is currently starting.

tag:gitlab.com,2026-03-18:5217266037 Peter Leitzen approved merge request !120: feat: run edit_mode_prepare hooks after updating at GitLab.com / GitLab Infrastructure Team / sandbox / caproni-cli 2026-03-18T12:17:15Z splattael Peter Leitzen [email protected]

What

This adds logic to run the edit_mode_prepare lifecycle hook after successfully updating a repository.

Why

Avoids manual action after enabling edit mode.

See #13

tag:gitlab.com,2026-03-18:5217265356 Peter Leitzen commented on merge request !120 at GitLab.com / GitLab Infrastructure Team / sandbox / caproni-cli 2026-03-18T12:17:06Z splattael Peter Leitzen [email protected]

@kkloss As discussed in sync we decided to merge this MR already and only add context (and potentially renaming type -> on) later. We still can either introduce config v3 and make config migrate handle the changes or emit warnings in case users still use the old style 💪

Let's focus on enabling edit_mode_start first 💪

tag:gitlab.com,2026-03-18:5217209251 Peter Leitzen pushed to project branch pl-monolith-sidekiq at GitLab.com / GitLab Infrastructure Team / sandbox / caproni-demo 2026-03-18T12:05:37Z splattael Peter Leitzen [email protected]

Peter Leitzen (b9708356) at 18 Mar 12:05

Apply 1 suggestion(s) to 1 file(s)

tag:gitlab.com,2026-03-18:5217209198 Peter Leitzen commented on merge request !16 at GitLab.com / GitLab Infrastructure Team / sandbox / caproni-demo 2026-03-18T12:05:36Z splattael Peter Leitzen [email protected]
          "^(?<path>/(?:Users|home)/.*/gitlab/config/)gitlab.yml": "${path}/gitlab-sidekiq.yml"
tag:gitlab.com,2026-03-18:5217070064 Peter Leitzen commented on merge request !16 at GitLab.com / GitLab Infrastructure Team / sandbox / caproni-demo 2026-03-18T11:32:24Z splattael Peter Leitzen [email protected]

👋 @nao.hashizume @kkloss

Can you retest this config? 🙏 See the updated instructions in the MR description

tag:gitlab.com,2026-03-18:5217067458 Peter Leitzen commented on merge request !16 at GitLab.com / GitLab Infrastructure Team / sandbox / caproni-demo 2026-03-18T11:31:44Z splattael Peter Leitzen [email protected]

@kkloss

the sidekiq inits correctly (I don't see Proxy encountered an error!) but I'm getting this error:

We had to adjust the mappings and now it works - even with puma 🎉

See instructions above. Note that gitlab-org/gitlab!227873 (merged) is needed for this.

/cc @nao.hashizume

tag:gitlab.com,2026-03-18:5217036248 Peter Leitzen commented on merge request !16 at GitLab.com / GitLab Infrastructure Team / sandbox / caproni-demo 2026-03-18T11:24:32Z splattael Peter Leitzen [email protected]

See gitlab-org/gitlab!227873 (merged)

tag:gitlab.com,2026-03-18:5216939646 Peter Leitzen pushed to project branch pl-monolith-sidekiq at GitLab.com / GitLab Infrastructure Team / sandbox / caproni-demo 2026-03-18T11:01:56Z splattael Peter Leitzen [email protected]

Peter Leitzen (a816ffbd) at 18 Mar 11:01

Fix sidekiq boot in edit-mode