mirror of
https://github.com/trycua/lume.git
synced 2026-01-06 04:20:03 -06:00
Remove debug logging from workflow files
Clean up all debug output added during investigation: 1. bump-version.yml: - Removed "Verify agent version output" debug step - Kept essential "Agent version: X.X.X" output 2. pypi-publish-agent.yml: - Removed extensive "Version Determination Debug" output - Simplified to show only "Agent version: X.X.X" - Kept error messages for production debugging - Removed "Verify prepare job outputs" debug step 3. pypi-reusable-publish.yml: - Removed all debug output from "Verify version consistency" - Kept the core version validation logic - Script errors will still be visible if check fails All workflows now have clean, production-ready logging while maintaining the fixes from PR #598. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
6
.github/workflows/bump-version.yml
vendored
6
.github/workflows/bump-version.yml
vendored
@@ -103,12 +103,6 @@ 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
|
||||
|
||||
29
.github/workflows/pypi-publish-agent.yml
vendored
29
.github/workflows/pypi-publish-agent.yml
vendored
@@ -45,40 +45,25 @@ 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 }}"
|
||||
|
||||
# Check inputs.version first (works for workflow_call regardless of event_name)
|
||||
if [ -n "${{ inputs.version }}" ]; then
|
||||
# Version provided via workflow_call or workflow_dispatch with version input
|
||||
VERSION=${{ inputs.version }}
|
||||
echo "Using inputs.version: $VERSION"
|
||||
elif [ "${{ 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
|
||||
VERSION=${BASH_REMATCH[1]}
|
||||
echo "Extracted from tag: $VERSION"
|
||||
else
|
||||
echo "Invalid tag format for agent"
|
||||
echo "ERROR: Invalid tag format for agent"
|
||||
exit 1
|
||||
fi
|
||||
elif [ -n "${{ github.event.inputs.version }}" ]; then
|
||||
# Use version from workflow_dispatch event inputs
|
||||
VERSION=${{ github.event.inputs.version }}
|
||||
echo "Using event.inputs.version: $VERSION"
|
||||
else
|
||||
echo "ERROR: No version found!"
|
||||
echo " - inputs.version is empty"
|
||||
echo " - event.inputs.version is empty"
|
||||
echo " - Not a tag push event"
|
||||
echo "ERROR: No version found (inputs.version, event.inputs.version, and tag all empty)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "=== Final Version ==="
|
||||
echo "VERSION=$VERSION"
|
||||
echo "Agent version: $VERSION"
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Set up Python
|
||||
@@ -167,14 +152,6 @@ 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
|
||||
|
||||
12
.github/workflows/pypi-reusable-publish.yml
vendored
12
.github/workflows/pypi-reusable-publish.yml
vendored
@@ -84,18 +84,6 @@ jobs:
|
||||
# Install toml parser
|
||||
pip install toml
|
||||
|
||||
# Debug: Show current directory and paths
|
||||
echo "Current directory: $(pwd)"
|
||||
echo "GITHUB_WORKSPACE: ${GITHUB_WORKSPACE}"
|
||||
echo "Package dir: ${{ inputs.package_dir }}"
|
||||
echo "Expected version: ${{ inputs.version }}"
|
||||
echo "Script path: ${GITHUB_WORKSPACE}/.github/scripts/get_pyproject_version.py"
|
||||
echo "Pyproject path: ${GITHUB_WORKSPACE}/${{ inputs.package_dir }}/pyproject.toml"
|
||||
|
||||
# Check if files exist
|
||||
ls -la ${GITHUB_WORKSPACE}/.github/scripts/get_pyproject_version.py
|
||||
ls -la ${GITHUB_WORKSPACE}/${{ inputs.package_dir }}/pyproject.toml
|
||||
|
||||
# Verify version matches using script (exits with error if mismatch)
|
||||
python ${GITHUB_WORKSPACE}/.github/scripts/get_pyproject_version.py \
|
||||
${GITHUB_WORKSPACE}/${{ inputs.package_dir }}/pyproject.toml \
|
||||
|
||||
Reference in New Issue
Block a user