Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
fix(ci): sync docker versions & add retry logic for concurrent bumps (#786)
Francesco Bonacci5f67844521ce
diff --git a/.github/workflows/release-bump-version.yml b/.github/workflows/release-bump-version.ymlindex 492e2387c9..3564ad3204 100644--- a/.github/workflows/release-bump-version.yml+++ b/.github/workflows/release-bump-version.yml@@ -311,34 +311,75 @@ jobs:echo "Verifying GitHub App token..."gh auth status- # Get current commit SHA and tag- COMMIT_SHA=$(git rev-parse HEAD)+ # Get the tag name from bump2version (it creates a local tag)TAG=$(git describe --tags --abbrev=0)TEMP_BRANCH="temp-release-${TAG}"- echo "Commit SHA: $COMMIT_SHA"echo "Tag: $TAG"echo "Temp branch: $TEMP_BRANCH"- # Step 1: Push to a temp branch (to get commit on remote)- echo "Pushing to temp branch..."- git push origin "HEAD:refs/heads/${TEMP_BRANCH}" --force-- # Step 2: Create tag via API (uses GitHub App token to bypass branch protection)- echo "Creating tag via API..."- gh api /repos/${{ github.repository }}/git/refs \- -f ref="refs/tags/${TAG}" \- -f sha="${COMMIT_SHA}" || echo "Tag may already exist"-- # Step 3: Update main branch ref using API (bypasses branch protection)- echo "Updating main branch via API..."- gh api -X PATCH /repos/${{ github.repository }}/git/refs/heads/main \- -f sha="${COMMIT_SHA}" \- -F force=false-- # Step 4: Clean up temp branch- echo "Cleaning up temp branch..."- git push origin --delete "${TEMP_BRANCH}" || true+ # Retry loop for handling concurrent bumps+ MAX_RETRIES=5+ RETRY_COUNT=0++ while [ $RETRY_COUNT -lt $MAX_RETRIES ]; do+ RETRY_COUNT=$((RETRY_COUNT + 1))+ echo ""+ echo "=== Attempt $RETRY_COUNT/$MAX_RETRIES ==="++ # Fetch latest main to check if we need to rebase+ git fetch origin main++ # Check if our HEAD is a descendant of origin/main (fast-forward possible)+ if ! git merge-base --is-ancestor origin/main HEAD; then+ echo "Main branch has moved forward, rebasing..."++ # Rebase our commit(s) onto the latest main+ git rebase origin/main++ # Update the local tag to point to the new rebased commit+ git tag -f "$TAG" HEAD+ fi++ # Get the current commit SHA (may have changed after rebase)+ COMMIT_SHA=$(git rev-parse HEAD)+ echo "Commit SHA: $COMMIT_SHA"++ # Push to temp branch+ echo "Pushing to temp branch..."+ git push origin "HEAD:refs/heads/${TEMP_BRANCH}" --force++ # Try to update main branch via API+ echo "Updating main branch via API..."+ if gh api -X PATCH /repos/${{ github.repository }}/git/refs/heads/main \+ -f sha="${COMMIT_SHA}" \+ -F force=false 2>&1; then++ echo "Successfully updated main branch!"++ # Now create the tag via API (only after main is successfully updated)+ echo "Creating tag via API..."+ # Delete existing remote tag if present (in case of retry with different SHA)+ gh api -X DELETE /repos/${{ github.repository }}/git/refs/tags/${TAG} 2>/dev/null || true+ gh api /repos/${{ github.repository }}/git/refs \+ -f ref="refs/tags/${TAG}" \+ -f sha="${COMMIT_SHA}"++ echo "Tag created successfully!"++ # Clean up temp branch+ echo "Cleaning up temp branch..."+ git push origin --delete "${TEMP_BRANCH}" || true++ exit 0+ fi++ echo "Failed to update main (not a fast-forward), will retry..."+ sleep 2+ done++ echo "ERROR: Failed to update main branch after $MAX_RETRIES attempts"+ exit 1# NOTE: Publishing is handled by tag-triggered workflows (cd-py-*.yml, cd-ts-*.yml, cd-swift-lume.yml)# When bump-version pushes a tag (e.g., agent-v0.7.10), the corresponding CD workflowdiff --git a/libs/lumier/.bumpversion.cfg b/libs/lumier/.bumpversion.cfgindex ce618fe426..09c3e9d5fd 100644--- a/libs/lumier/.bumpversion.cfg+++ b/libs/lumier/.bumpversion.cfg@@ -1,5 +1,5 @@[bumpversion]-current_version = 0.1.0+current_version = 0.1.1commit = Truetag = Truetag_name = docker-lumier-v{new_version}diff --git a/libs/lumier/VERSION b/libs/lumier/VERSIONindex 6e8bf73aa5..17e51c385e 100644--- a/libs/lumier/VERSION+++ b/libs/lumier/VERSION@@ -1 +1 @@-0.1.0+0.1.1diff --git a/libs/qemu-docker/android/.bumpversion.cfg b/libs/qemu-docker/android/.bumpversion.cfgindex 2ea88dc39a..cd602821e3 100644--- a/libs/qemu-docker/android/.bumpversion.cfg+++ b/libs/qemu-docker/android/.bumpversion.cfg@@ -1,5 +1,5 @@[bumpversion]-current_version = 0.1.0+current_version = 0.1.1commit = Truetag = Truetag_name = docker-cua-qemu-android-v{new_version}diff --git a/libs/qemu-docker/android/VERSION b/libs/qemu-docker/android/VERSIONindex 6e8bf73aa5..17e51c385e 100644--- a/libs/qemu-docker/android/VERSION+++ b/libs/qemu-docker/android/VERSION@@ -1 +1 @@-0.1.0+0.1.1diff --git a/libs/xfce/.bumpversion.cfg b/libs/xfce/.bumpversion.cfgindex dfa3aca522..85c194e9be 100644--- a/libs/xfce/.bumpversion.cfg+++ b/libs/xfce/.bumpversion.cfg@@ -1,5 +1,5 @@[bumpversion]-current_version = 0.1.3+current_version = 0.1.4commit = Truetag = Truetag_name = docker-xfce-v{new_version}diff --git a/libs/xfce/VERSION b/libs/xfce/VERSIONindex b1e80bb248..845639eef2 100644--- a/libs/xfce/VERSION+++ b/libs/xfce/VERSION@@ -1 +1 @@-0.1.3+0.1.4