Commit Graph

152 Commits

Author SHA1 Message Date
f-trycua
3d65fefb07 Fix bump-version workflow to publish correct package
When bumping cua-computer, the workflow was incorrectly publishing cua-agent
instead of cua-computer to PyPI. This was because the publish-agent job had a
condition that triggered for both cua-agent and cua-computer services.

Changes:
- Added computer_version output to capture the bumped computer version
- Changed publish-agent condition to only trigger for cua-agent service
- Added new publish-computer job that triggers for cua-computer service
- publish-computer job calls pypi-publish-computer.yml workflow

Now when bumping cua-computer:
- Bumps cua-computer version (as before)
- Also bumps cua-agent version to maintain dependency sync (as before)
- Publishes cua-computer to PyPI (fixed!)
- Does NOT publish cua-agent to PyPI (fixed!)

Fixes: https://github.com/trycua/cua/actions/runs/19512484987

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-19 19:42:46 +01:00
f-trycua
76e7d3dafc 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>
2025-11-19 00:06:16 +01:00
f-trycua
e30f99bd25 Fix version determination logic for workflow_call
The bug: When pypi-publish-agent is called via workflow_call from
bump-version, github.event_name is "workflow_dispatch" (inherited
from parent), NOT "workflow_call". This caused the code to check
github.event.inputs.version (empty) instead of inputs.version (0.4.44).

The fix: Check inputs.version first, before checking event_name.
This works correctly for:
- workflow_call: uses inputs.version
- Tag push: extracts from tag
- workflow_dispatch with version param: uses inputs.version
- workflow_dispatch event UI: uses event.inputs.version

Debug output showed:
- Event name: workflow_dispatch
- Input version: 0.4.44 (correct!)
- Workflow dispatch version: (empty)
- Final VERSION= (bug - used wrong source)

Now it will use inputs.version first, giving VERSION=0.4.44.

Fixes: https://github.com/trycua/cua/actions/runs/19483269380

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-19 00:00:23 +01:00
f-trycua
6ee76fbe15 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>
2025-11-18 23:55:39 +01:00
f-trycua
a08363f46e Add debugging and fix absolute paths in version consistency check
Added comprehensive debugging to diagnose why get_pyproject_version.py
is not receiving arguments correctly after git reset.

Changes:
- Added debug output showing current directory, GITHUB_WORKSPACE, and paths
- Changed pyproject.toml path to use absolute path with GITHUB_WORKSPACE
- Added ls commands to verify files exist before running script
- This will help identify if the git reset is affecting path resolution

The error shows the script's usage message, indicating arguments
aren't being passed correctly. The debug output will reveal why.

Related: https://github.com/trycua/cua/actions/runs/19482970320

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 23:51:26 +01:00
f-trycua
dbd5a76f82 Ensure workflows fetch absolute latest main after version bump
Add explicit git fetch and reset after checkout to guarantee
workflows get the most recent main branch commits, including
version bumps pushed by the bump-version workflow.

The issue: When using workflow_call, even with ref: main, GitHub
Actions may use a cached repository state from workflow run start.
This caused version consistency checks to fail because the checkout
didn't include the just-pushed version bump.

Solution: After checkout, explicitly fetch and reset to origin/main
to ensure we have the absolute latest code. Added logging to show
the current commit for debugging.

Fixes: https://github.com/trycua/cua/actions/runs/19482970320

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 23:47:35 +01:00
f-trycua
03a3a2068a Fix checkout ref to use main branch in publish workflows
Ensure publish workflows check out the main branch to get the
latest bumped version after the bump-version workflow pushes changes.

Previously, workflows were checking out the SHA at trigger time,
which didn't include the version bump committed by bump-version job.

This fixes the "Verify version consistency" step failure where the
expected version didn't match the pyproject.toml version.

Related to: https://github.com/trycua/cua/actions/runs/19482814921

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 23:43:45 +01:00
f-trycua
7dd6fae971 Fix agent version capture in bump-version workflow
Replace heredoc-based Python script with inline command to fix
exit code 2 error in the "Capture bumped agent version" step.

The heredoc syntax with indented EOF marker was causing issues
in GitHub Actions. Simplified to a single-line Python command.

Fixes: https://github.com/trycua/cua/actions/runs/19482457144

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 23:37:11 +01:00
Sarina Li
80cb3dece3 make link check less spammy 2025-11-18 10:01:16 -05:00
Sarina Li
fc20321a61 remove cache for lychee 2025-11-18 09:57:39 -05:00
Sarina Li
63ec128a9f get rid of cached 500s and update link 2025-11-18 09:54:58 -05:00
Sarina Li
abaf590da1 fix prettier issues 2025-11-16 18:30:06 -05:00
Adam
b488411256 Update npm-publish-cli.yml 2025-11-15 00:45:01 -05:00
Adam
708d48379a Merge branch 'main' into fix/computer-bump-agent 2025-11-15 05:38:21 +00:00
Dillon DuPont
38caed06d1 Fix incorrect install script path in workflow 2025-11-14 17:26:52 -05:00
Dillon DuPont
5a203371a8 Fix CLI publish step to upload each binary 2025-11-14 17:23:54 -05:00
Dillon DuPont
d1b12faff8 Elevate permissions for cli workflow 2025-11-14 17:18:59 -05:00
Dillon DuPont
925ebbec4a Fix missing env in create-release action 2025-11-14 17:12:59 -05:00
Dillon DuPont
3169ef3801 Fix incorrect upload-release-assets image name 2025-11-14 17:10:02 -05:00
Dillon DuPont
5f1983c78a Fix incorrect workflow image name 2025-11-14 17:09:15 -05:00
Dillon DuPont
087f2869d3 Update cli workflow to use NPM_CONFIG_TOKEN env and production flags 2025-11-14 17:06:51 -05:00
Dillon DuPont
3ec8016b63 Update bun publish step to install bun dependencies 2025-11-14 17:02:30 -05:00
Dillon DuPont
ffbaee7d3a Replace npm publish with bun publish in cli workflow 2025-11-14 16:58:40 -05:00
Dillon DuPont
84a8481e1e Fix duplicate extensions in cli workflow 2025-11-14 16:53:28 -05:00
Dillon DuPont
3d93a0a1e8 Simplify cli publish workflow to cross compile to all targets using the same platform 2025-11-14 16:50:42 -05:00
Adam
2777b77696 Merge branch 'main' into fix/computer-bump-agent 2025-11-14 21:47:54 +00:00
Dillon DuPont
eaa8a87e56 Update cli workflow to avoid artifact name collisions 2025-11-14 16:46:01 -05:00
Adam
601ebde4a9 Formatting Fix 2025-11-14 16:44:50 -05:00
Adam
b7a655f192 call agent publish workflow after bump 2025-11-14 16:41:55 -05:00
Dillon DuPont
ee9809108f Fix incorrect path in cli release workflow 2025-11-14 16:36:17 -05:00
Dillon DuPont
56440d65e4 Remove node.js step from cli workflow 2025-11-14 16:31:26 -05:00
Adam
ebf3dc38d5 Ensure cua-computer bumps also update cua-agent 2025-11-14 16:30:05 -05:00
Dillon DuPont
45349b4b1b Remove unused build script 2025-11-14 13:07:50 -05:00
Dillon DuPont
c4b6648243 Updated cli publish workflow to build binaries (+ updated docs & install script) 2025-11-14 12:55:29 -05:00
Sarina Li
380d01f389 Merge pull request #568 from trycua/new-improve-docs-home
Changes in Docs and CLI
2025-11-13 16:19:16 -05:00
Adam
ec228044dc Update python-tests.yml 2025-11-13 12:37:40 -05:00
Adam
a9f3fb81cc Fix pylume pytest installation in CI 2025-11-13 12:26:59 -05:00
Sarina Li
41c1d38ee4 Merge branch 'main' into new-improve-docs-home 2025-11-13 11:30:06 -05:00
Adam
bb649bded8 Restrict Lume CI to Lume changes
- limit lume workflow triggers to libs/lume/*
  - allow the workflow to run when it changes
2025-11-12 14:17:01 -05:00
Dillon DuPont
d8f91d0830 publish cli and add install scripts from the quickstart guide 2025-11-12 13:04:57 -05:00
Adam
a6b1c44216 Update test-cua-models.yml 2025-11-12 02:08:01 -05:00
Adam
b7866cfe90 Update test-cua-models.yml 2025-11-12 02:00:54 -05:00
Adam
3464d8e6eb Gate local-model matrix entries in test workflow
- add workflow_dispatch flag and env var check to run huggingface-local models only when requested
- annotate matrix with requires_local_weights to support gating logic
- ignore missing logs/images when uploading artifacts so runs without outputs succeed
- simplify summary aggregation to handle partial matrices
2025-11-12 01:52:22 -05:00
Adam
c20084129d Removed agent test per PR 2025-11-10 15:12:32 -05:00
Sarina Li
c0412ffa0e fix workflow to send slack 2025-11-09 18:35:07 -05:00
Sarina Li
7eeab8c613 skip some urls 2025-11-09 18:08:38 -05:00
Sarina Li
fcc667f46e lychee fix 2025-11-09 17:59:28 -05:00
Sarina Li
4fc707e1d0 simplify link checking syntax 2025-11-09 17:57:19 -05:00
Sarina Li
c4f9db24ac secrets fix 2025-11-09 17:54:58 -05:00
Sarina Li
31ea3e7421 fix yaml syntax 2025-11-09 17:51:50 -05:00