mirror of
https://github.com/trycua/computer.git
synced 2026-05-06 15:12:38 -05:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user