fix: update record deployments generate config to fix bugs encountered in the previous runs

What

This MR fixes the recent bugs encountered in the record ring deployment jobs.

  1. Failing extract job for cellsprod: https://ops.gitlab.net/gitlab-com/gl-infra/cells/tissue/-/jobs/22032311

    $ $ringctl patch get "01KEVA3NN4YA7ZCNASTRED230N" --output json | jq -r '.patch[] | select(.path == "/prerelease_version") | .value' > deploy_version.txt
    time=2026-01-13T11:37:00.464Z level=WARN msg="DELIVERY_METRICS_URL or DELIVERY_METRICS_TOKEN not set, disabling metrics" DELIVERY_METRICS_URL=""
    time=2026-01-13T11:37:00.541Z level=INFO msg="tissue client initialized" instance=https://ops.gitlab.net branch=main dry_run=false amp=cellsdev project=gitlab-com/gl-infra/cells/tissue version=5.44.4-g4ad1dc2 local=false
    time=2026-01-13T11:37:00.756Z level=ERROR msg="patch not found" patch_id=01KEVA3NN4YA7ZCNASTRED230N error="failed to get patch meta patches/cellsdev/01KEVA3NN4YA7ZCNASTRED230N.json: 404 Not Found" tip="Use 'ringctl patch ls' to see all active patches"
    $ PRERELEASE_VERSION=$(cat deploy_version.txt)
    $ if [ -z "$PRERELEASE_VERSION" ] || [ "$PRERELEASE_VERSION" = "null" ]; then echo "PRERELEASE_VERSION not found in patch"; PRERELEASE_VERSION=""; fi
    PRERELEASE_VERSION not found in patch
    $ echo "PRERELEASE_VERSION=${PRERELEASE_VERSION}" >> deploy.env

    It is due to the AMP_ENVIRONMENT value not being passed to the ringctl patch get command so it is trying to find the patch in cellsdev (default), that's why it is failing.

    • I will clean up the cellsprod queue to unblock it once this fix is merged and ringctl is updated in Tissue.
  2. Use of failed as DEPLOYMENT_STATUS instead of failure. Sample failure: https://ops.gitlab.net/gitlab-org/release/tools/-/jobs/22032667

  3. Failed track jobs are causing the cells deployment pipeline to fail, too, blocking the patch queue.

    • We can set the config to be temporarily allowed to fail until it is stable
    • I will add a step in the issue to disable it before closing the issue

Why

Fixing the bugs encountered in the recently added record ring deployments.

https://gitlab.com/gitlab-com/gl-infra/delivery/-/work_items/21654

Edited by Mawreen Dela Cruz

Merge request reports

Loading