Skip to content

Make CI lab names unique per build - #75

Merged
viniciusferrao merged 1 commit into
masterfrom
fix/unique-lab-names
Aug 6, 2026
Merged

viniciusferrao merged 1 commit into
masterfrom
fix/unique-lab-names

Conversation

@viniciusferrao

Copy link
Copy Markdown
Member

Tag build 6: the four alma lanes passed, and both Ubuntu lanes failed at compute boot with Is another process using the image? — qemu image locking on the shared NFS /var/lib/libvirt/images. Root cause: envsubst cannot expand the ${BUILD_NUMBER:-0} default form (and sudo drops BUILD_NUMBER), so every build's labs were named jenkins-<lane>-0; build 5's successful labs were left running, and build 6's Ubuntu lanes landed on the opposite hosts, colliding with build 5's same-named disks on shared storage. Plain ${BUILD_NUMBER} renders the real number at the pipeline's envsubst step (these configs are only consumed through that path). Paired with a ci-cd-platform change making ciIntegrationLab destroy labs after the run.

envsubst does not expand the ${BUILD_NUMBER:-0} default form, and the
sudo environment does not carry BUILD_NUMBER, so every Jenkins lab ran
as jenkins-<lane>-0. With /var/lib/libvirt/images on shared NFS across
the lab runners, a lane scheduled on a different host than the
previous build collided with the prior build's same-named, still
running lab: qemu image locking refused the disks ("Is another process
using the image?") and the lane failed at compute boot. Use the plain
${BUILD_NUMBER} form, which envsubst renders to the real build number;
these configs are only consumed through the pipeline's envsubst step.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@viniciusferrao
viniciusferrao merged commit e95b070 into master Aug 6, 2026
2 checks passed
@viniciusferrao
viniciusferrao deleted the fix/unique-lab-names branch August 6, 2026 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant