From 5283c68120834e16adcd73b84d24f4183cb3c400 Mon Sep 17 00:00:00 2001 From: Roxanne Farhad Date: Mon, 1 Dec 2025 09:11:10 -0500 Subject: [PATCH 1/4] debugging the workflow --- .../workflows/build-and-push-tutorial-agent.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-push-tutorial-agent.yml b/.github/workflows/build-and-push-tutorial-agent.yml index 4b38c7671..e1459ea3a 100644 --- a/.github/workflows/build-and-push-tutorial-agent.yml +++ b/.github/workflows/build-and-push-tutorial-agent.yml @@ -107,6 +107,12 @@ jobs: echo "agents=$agents_json" >> $GITHUB_OUTPUT echo "has_agents=true" >> $GITHUB_OUTPUT + # Debug outputs + echo "DEBUG: Setting has_agents=true" + echo "DEBUG: agents_json=$agents_json" + echo "DEBUG: GITHUB_OUTPUT contents:" + cat $GITHUB_OUTPUT + echo "" >> $GITHUB_STEP_SUMMARY for agent in "${agents_to_build[@]}"; do echo "- \`$agent\`" >> $GITHUB_STEP_SUMMARY @@ -116,7 +122,7 @@ jobs: build-agents: needs: find-agents - if: ${{ needs.find-agents.outputs.has_agents == 'true' }} + if: ${{ needs.find-agents.outputs.has_agents == 'true' && needs.find-agents.outputs.agents != '[]' }} runs-on: ubuntu-latest timeout-minutes: 15 strategy: @@ -126,6 +132,12 @@ jobs: name: build-${{ matrix.agent_path }} steps: + - name: Debug inputs from find-agents + run: | + echo "DEBUG: Received has_agents = '${{ needs.find-agents.outputs.has_agents }}'" + echo "DEBUG: Received agents = '${{ needs.find-agents.outputs.agents }}'" + echo "DEBUG: Current matrix agent = '${{ matrix.agent_path }}'" + - name: Checkout repository uses: actions/checkout@v4 From ef74e1e37a0c6b901f16e648f4e913783e39672c Mon Sep 17 00:00:00 2001 From: Roxanne Farhad Date: Mon, 1 Dec 2025 09:18:52 -0500 Subject: [PATCH 2/4] force trigger change --- examples/tutorials/00_sync/000_hello_acp/project/acp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/tutorials/00_sync/000_hello_acp/project/acp.py b/examples/tutorials/00_sync/000_hello_acp/project/acp.py index ee268a707..4837ec4f6 100644 --- a/examples/tutorials/00_sync/000_hello_acp/project/acp.py +++ b/examples/tutorials/00_sync/000_hello_acp/project/acp.py @@ -21,6 +21,7 @@ async def handle_message_send( ) -> Union[TaskMessageContent, AsyncGenerator[TaskMessageUpdate, None]]: """Default message handler with streaming support""" # Extract content safely from the message + logger.info("msg", params) message_text = "" if hasattr(params.content, "content"): content_val = getattr(params.content, "content", "") From bbefa53804419b4fcc19952b78d023adb322a15c Mon Sep 17 00:00:00 2001 From: Roxanne Farhad Date: Mon, 1 Dec 2025 09:27:01 -0500 Subject: [PATCH 3/4] force trigger change --- .../workflows/build-and-push-tutorial-agent.yml | 2 +- .../090_claude_agents_sdk_mvp/project/acp.py | 17 ++++++++++------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-and-push-tutorial-agent.yml b/.github/workflows/build-and-push-tutorial-agent.yml index e1459ea3a..7d305470a 100644 --- a/.github/workflows/build-and-push-tutorial-agent.yml +++ b/.github/workflows/build-and-push-tutorial-agent.yml @@ -122,7 +122,7 @@ jobs: build-agents: needs: find-agents - if: ${{ needs.find-agents.outputs.has_agents == 'true' && needs.find-agents.outputs.agents != '[]' }} + if: ${{ needs.find-agents.outputs.has_agents == 'true' }} runs-on: ubuntu-latest timeout-minutes: 15 strategy: diff --git a/examples/tutorials/10_async/10_temporal/090_claude_agents_sdk_mvp/project/acp.py b/examples/tutorials/10_async/10_temporal/090_claude_agents_sdk_mvp/project/acp.py index fcdbba155..fdb08ded8 100644 --- a/examples/tutorials/10_async/10_temporal/090_claude_agents_sdk_mvp/project/acp.py +++ b/examples/tutorials/10_async/10_temporal/090_claude_agents_sdk_mvp/project/acp.py @@ -5,25 +5,27 @@ # === DEBUG SETUP (AgentEx CLI Debug Support) === if os.getenv("AGENTEX_DEBUG_ENABLED") == "true": + print("test me") try: import debugpy + debug_port = int(os.getenv("AGENTEX_DEBUG_PORT", "5679")) debug_type = os.getenv("AGENTEX_DEBUG_TYPE", "acp") wait_for_attach = os.getenv("AGENTEX_DEBUG_WAIT_FOR_ATTACH", "false").lower() == "true" - + # Configure debugpy debugpy.configure(subProcess=False) debugpy.listen(debug_port) - + print(f"🐛 [{debug_type.upper()}] Debug server listening on port {debug_port}") - + if wait_for_attach: print(f"⏳ [{debug_type.upper()}] Waiting for debugger to attach...") debugpy.wait_for_client() print(f"✅ [{debug_type.upper()}] Debugger attached!") else: print(f"📡 [{debug_type.upper()}] Ready for debugger attachment") - + except ImportError: print("❌ debugpy not available. Install with: pip install debugpy") sys.exit(1) @@ -52,8 +54,8 @@ type="temporal", temporal_address=os.getenv("TEMPORAL_ADDRESS", "localhost:7233"), plugins=[OpenAIAgentsPlugin(model_provider=temporal_streaming_model_provider)], - interceptors=[context_interceptor] - ) + interceptors=[context_interceptor], + ), ) @@ -69,4 +71,5 @@ # @acp.on_task_cancel # This does not need to be handled by your workflow. -# It is automatically handled by the temporal client which cancels the workflow directly \ No newline at end of file +# It is automatically handled by the temporal client which cancels the workflow directly + From 8ec2320da1c46b3b20d8dccaea696f36f518e319 Mon Sep 17 00:00:00 2001 From: Roxanne Farhad Date: Mon, 1 Dec 2025 09:58:08 -0500 Subject: [PATCH 4/4] testing the fix --- .github/workflows/build-and-push-tutorial-agent.yml | 13 ++++--------- .../tutorials/00_sync/000_hello_acp/project/acp.py | 2 +- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-and-push-tutorial-agent.yml b/.github/workflows/build-and-push-tutorial-agent.yml index 7d305470a..4492b3a5f 100644 --- a/.github/workflows/build-and-push-tutorial-agent.yml +++ b/.github/workflows/build-and-push-tutorial-agent.yml @@ -71,14 +71,9 @@ jobs: echo "### 🔄 Rebuilding All Tutorial Agents" >> $GITHUB_STEP_SUMMARY else - # Determine the base branch for comparison - if [ "${{ github.event_name }}" = "pull_request" ]; then - BASE_BRANCH="origin/${{ github.base_ref }}" - echo "Comparing against PR base branch: $BASE_BRANCH" - else - BASE_BRANCH="HEAD~1" - echo "Comparing against previous commit: $BASE_BRANCH" - fi + # Always compare against main branch + BASE_BRANCH="origin/main" + echo "Comparing against main branch: $BASE_BRANCH" # Check each agent directory for changes for agent_dir in $all_agents; do @@ -190,7 +185,7 @@ jobs: echo "🚀 Building and pushing agent: ${{ matrix.agent_path }}" else SHOULD_PUSH=false - VERSION_TAG="${{ github.commit.sha }}" + VERSION_TAG="${{ github.sha }}" echo "🔍 Validating build for agent: ${{ matrix.agent_path }}" fi diff --git a/examples/tutorials/00_sync/000_hello_acp/project/acp.py b/examples/tutorials/00_sync/000_hello_acp/project/acp.py index 4837ec4f6..3299cf5ea 100644 --- a/examples/tutorials/00_sync/000_hello_acp/project/acp.py +++ b/examples/tutorials/00_sync/000_hello_acp/project/acp.py @@ -21,7 +21,7 @@ async def handle_message_send( ) -> Union[TaskMessageContent, AsyncGenerator[TaskMessageUpdate, None]]: """Default message handler with streaming support""" # Extract content safely from the message - logger.info("msg", params) + logger.info("msg 2", params) message_text = "" if hasattr(params.content, "content"): content_val = getattr(params.content, "content", "")