Add comprehensive debugging for version passing between workflows

Added debug logging at every stage of version passing to identify
where the version parameter is being lost:

1. bump-version job: Verify agent_version output is set correctly
2. pypi-publish-agent prepare job: Show inputs.version and verify
   the get-version step output
3. pypi-reusable-publish: Already has debug showing empty version

Debug output will show:
- Event name and workflow trigger type
- Input version values at each stage
- Step output values
- Final version passed to reusable workflow

This will pinpoint exactly where the version parameter becomes empty
in the workflow_call chain.

Related: Previous debug showed "Expected version: " (empty)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
f-trycua
2025-11-18 23:55:39 +01:00
parent a08363f46e
commit 6ee76fbe15
2 changed files with 22 additions and 0 deletions
+6
View File
@@ -103,6 +103,12 @@ jobs:
echo "Agent version: $VERSION"
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
- name: Verify agent version output
if: ${{ inputs.service == 'cua-agent' || inputs.service == 'cua-computer' }}
run: |
echo "=== Bump Version Job Outputs ==="
echo "Agent version output: ${{ steps.agent_version.outputs.version }}"
- name: Push changes
run: |
git push origin main --follow-tags
+16
View File
@@ -45,6 +45,12 @@ jobs:
- name: Determine version
id: get-version
run: |
echo "=== Version Determination Debug ==="
echo "Event name: ${{ github.event_name }}"
echo "Input version: ${{ inputs.version }}"
echo "Workflow dispatch version: ${{ github.event.inputs.version }}"
echo "GitHub ref: ${{ github.ref }}"
if [ "${{ github.event_name }}" == "push" ]; then
# Extract version from tag (for package-specific tags)
if [[ "${{ github.ref }}" =~ ^refs/tags/agent-v([0-9]+\.[0-9]+\.[0-9]+) ]]; then
@@ -60,6 +66,8 @@ jobs:
# Use version from workflow_call
VERSION=${{ inputs.version }}
fi
echo "=== Final Version ==="
echo "VERSION=$VERSION"
echo "version=$VERSION" >> $GITHUB_OUTPUT
@@ -149,6 +157,14 @@ jobs:
echo "Updated dependencies in pyproject.toml:"
grep -E "cua-computer|cua-som|cua-core" pyproject.toml
- name: Verify prepare job outputs
run: |
echo "=== Prepare Job Outputs ==="
echo "Version output: ${{ steps.get-version.outputs.version }}"
echo "Computer version output: ${{ steps.update-deps.outputs.computer_version }}"
echo "SOM version output: ${{ steps.update-deps.outputs.som_version }}"
echo "Core version output: ${{ steps.update-deps.outputs.core_version }}"
publish:
needs: prepare
uses: ./.github/workflows/pypi-reusable-publish.yml