Emily Chui activity https://gitlab.com/echui-gitlab 2026-03-18T04:55:16Z tag:gitlab.com,2026-03-18:5215681333 Emily Chui commented on merge request !8565 at GitLab.org / Gitaly 2026-03-18T04:55:16Z echui-gitlab Emily Chui

I have suggested an optimization, the rest looks good.

tag:gitlab.com,2026-03-18:5215681242 Emily Chui commented on merge request !8565 at GitLab.org / Gitaly 2026-03-18T04:55:13Z echui-gitlab Emily Chui

A pool with N members would keep making the same calls N times if there was no upstream found ( this would be odd, but wouldn't rule it ) or if there was no public upstream. So we should cache this result to avoid the O(N) calls.

We should add a test for this case to check the number of calls is 1 as well.

tag:gitlab.com,2026-03-16:5206535146 Emily Chui pushed to project branch master at GitLab.org / Gitaly 2026-03-16T06:04:50Z echui-gitlab Emily Chui

Emily Chui (915398f9) at 16 Mar 06:04

Merge branch 'renovate-tools/gitaly-init-cgroups/github.com-contain...

... and 1 more commit

tag:gitlab.com,2026-03-16:5206533347 Emily Chui deleted project branch renovate-tools/gitaly-init-cgroups/github.com-containerd-cgroups-v3-3.x at gitlab-renovate-forks / Gitaly 2026-03-16T06:04:04Z echui-gitlab Emily Chui

Emily Chui (bd364bb6) at 16 Mar 06:04

tag:gitlab.com,2026-03-16:5206533039 Emily Chui accepted merge request !8489: tools/gitaly-init-cgroups: Update module github.com/containerd/cgroups/v3 to v3.1.3 at GitLab.org / Gitaly 2026-03-16T06:03:56Z echui-gitlab Emily Chui

This MR contains the following updates:

Package Type Update Change
github.com/containerd/cgroups/v3 require patch v3.1.2 -> v3.1.3

⚠️ Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.

MR created with the help of gitlab-org/frontend/renovate-gitlab-bot


Release Notes

containerd/cgroups (github.com/containerd/cgroups/v3)

v3.1.3

Compare Source

What's Changed

Full Changelog: https://github.com/containerd/cgroups/compare/v3.1.2...v3.1.3


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

tag:gitlab.com,2026-03-16:5206493412 Emily Chui approved merge request !8489: tools/gitaly-init-cgroups: Update module github.com/containerd/cgroups/v3 to v3.1.3 at GitLab.org / Gitaly 2026-03-16T05:41:24Z echui-gitlab Emily Chui

This MR contains the following updates:

Package Type Update Change
github.com/containerd/cgroups/v3 require patch v3.1.2 -> v3.1.3

⚠️ Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.

MR created with the help of gitlab-org/frontend/renovate-gitlab-bot


Release Notes

containerd/cgroups (github.com/containerd/cgroups/v3)

v3.1.3

Compare Source

What's Changed

Full Changelog: https://github.com/containerd/cgroups/compare/v3.1.2...v3.1.3


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

tag:gitlab.com,2026-03-16:5206487894 Emily Chui commented on merge request !8537 at GitLab.org / Gitaly 2026-03-16T05:37:50Z echui-gitlab Emily Chui

needs update to go 1.25.0.

tag:gitlab.com,2026-03-16:5206450911 Emily Chui commented on merge request !8525 at GitLab.org / Gitaly 2026-03-16T05:17:07Z echui-gitlab Emily Chui

Can we restore this as well ?

tag:gitlab.com,2026-03-16:5206449015 Emily Chui commented on merge request !8525 at GitLab.org / Gitaly 2026-03-16T05:15:52Z echui-gitlab Emily Chui

Needs a restore in the praefect version as well.

tag:gitlab.com,2026-03-16:5206112579 Emily Chui approved merge request !8564: test: Don't create invalid blobs for pruning tests at GitLab.org / Gitaly 2026-03-16T01:41:19Z echui-gitlab Emily Chui

Closes #7112

One test case for housekeeping.PruneObjects checks that we're able to prune stale loose objects from the repository. Since optimizeRepository() always executes repackIfNeeded() before pruneIfNeeded(), the test needed a way to stop git-repack(1) from taking care of the loose objects. It did this by creating invalid blobs which would be silently ignored by git-repack.

The upstream change 7a8582c82c (reachable: convert to use odb_for_each_object(), 2026-01-26) changed how reachable objects were traversed. The new mechanism requires that objects are valid, otherwise it would produce an error.

Fix the tests to create valid blobs. Since these are loose and unreachable, they won't be discovered by git-repack(1) anyway, so the test is still functionally identical.

[1] https://gitlab.com/gitlab-org/gitaly/-/blob/5ed4b62734f8f32242c286a6b7ac00414a99f3cf/internal/git/housekeeping/manager/optimize_repository.go#L238-L263

tag:gitlab.com,2026-03-13:5199336224 Emily Chui pushed to project branch master at GitLab.org / Gitaly 2026-03-13T01:31:29Z echui-gitlab Emily Chui

Emily Chui (38d78c51) at 13 Mar 01:31

Merge branch '589220-fix-list-commits-pagination-cursor' into 'master'

... and 1 more commit

tag:gitlab.com,2026-03-13:5199336150 Emily Chui accepted merge request !8477: listcommits: Fix pagination cursor returned on last page at GitLab.org / Gitaly 2026-03-13T01:31:27Z echui-gitlab Emily Chui

What does this MR do and why?

Contributes to gitlab#589220

Problem

The ListCommits RPC incorrectly returns a PaginationCursor even when there are no more commits to fetch. This causes clients to incorrectly report hasNextPage: true on the last page of results.

Solution

Use the "limit + 1" pattern to accurately determine if more data exists. Stream commits through the chunker while tracking the count. When we reach the limit and detect another commit exists, we set hasMoreCommits and stop iterating. The pagination cursor is sent in the final response only when there are more commits beyond the current page.

The commitsSender is extended with SetPaginationCursor() to support including a cursor in the final chunked response.

References

Screenshots or screen recordings

N/A - backend change only.

How to set up and validate locally

  1. Run the new tests:

    go test ./internal/gitaly/service/commit/... -run "TestListCommits/cursor_not_returned" -v
    go test ./internal/gitaly/service/commit/... -run "TestListCommits/full_pagination_flow" -v
  2. All tests should pass, verifying:

    • Cursor is NOT returned when all commits fit within the limit
    • Cursor is NOT returned when exactly limit commits exist
    • Cursor IS returned on intermediate pages and NOT on the last page

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

tag:gitlab.com,2026-03-13:5199331955 Emily Chui commented on merge request !8525 at GitLab.org / Gitaly 2026-03-13T01:29:23Z echui-gitlab Emily Chui

The cleanup removed the SetTokenFromFile() and its not being called anywhere other than tests.

tag:gitlab.com,2026-03-13:5199298019 Emily Chui commented on merge request !8477 at GitLab.org / Gitaly 2026-03-13T01:09:14Z echui-gitlab Emily Chui

Back to streaming thank you.

tag:gitlab.com,2026-03-13:5199296536 Emily Chui approved merge request !8477: listcommits: Fix pagination cursor returned on last page at GitLab.org / Gitaly 2026-03-13T01:08:38Z echui-gitlab Emily Chui

What does this MR do and why?

Contributes to gitlab#589220

Problem

The ListCommits RPC incorrectly returns a PaginationCursor even when there are no more commits to fetch. This causes clients to incorrectly report hasNextPage: true on the last page of results.

Solution

Use the "limit + 1" pattern to accurately determine if more data exists. Stream commits through the chunker while tracking the count. When we reach the limit and detect another commit exists, we set hasMoreCommits and stop iterating. The pagination cursor is sent in the final response only when there are more commits beyond the current page.

The commitsSender is extended with SetPaginationCursor() to support including a cursor in the final chunked response.

References

Screenshots or screen recordings

N/A - backend change only.

How to set up and validate locally

  1. Run the new tests:

    go test ./internal/gitaly/service/commit/... -run "TestListCommits/cursor_not_returned" -v
    go test ./internal/gitaly/service/commit/... -run "TestListCommits/full_pagination_flow" -v
  2. All tests should pass, verifying:

    • Cursor is NOT returned when all commits fit within the limit
    • Cursor is NOT returned when exactly limit commits exist
    • Cursor IS returned on intermediate pages and NOT on the last page

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

tag:gitlab.com,2026-03-13:5199278518 Emily Chui deleted project branch shackermeier/fix-update-refs-quadratic-lookup at GitLab Community / GitLab.org / Gitaly Community Fork 2026-03-13T00:58:40Z echui-gitlab Emily Chui

Emily Chui (4306962d) at 13 Mar 00:58

tag:gitlab.com,2026-03-13:5199278429 Emily Chui pushed to project branch master at GitLab.org / Gitaly 2026-03-13T00:58:36Z echui-gitlab Emily Chui

Emily Chui (1a85e39d) at 13 Mar 00:58

Merge branch 'shackermeier/fix-update-refs-quadratic-lookup' into '...

... and 2 more commits

tag:gitlab.com,2026-03-13:5199278404 Emily Chui accepted merge request !8549: Backup: Use map lookup in shouldUpdateRef to match shouldRemoveRef at GitLab.org / Gitaly 2026-03-13T00:58:34Z echui-gitlab Emily Chui

shouldUpdateRef performed a linear scan over the existingRefs slice for every ref passed to ResetRefs, resulting in O(n*m) complexity.

Build a map from existing refs before the loop so shouldUpdateRef can do O(1) lookups, bringing total complexity down to O(n+m). This is consistent with shouldRemoveRef which already uses a map.

Affects both localRepository.ResetRefs and remoteRepository.ResetRefs.

tag:gitlab.com,2026-03-13:5199248292 Emily Chui commented on merge request !8549 at GitLab.org / Gitaly 2026-03-13T00:37:40Z echui-gitlab Emily Chui

Thanks LGTM.