Skip to content

Commit 74c1360

Browse files
authored
Fix Changed Paths in Azure Functions Install (#1421)
* Fix changed paths in azure functions install * Patch failing MCP test lookup
1 parent c5d0a0f commit 74c1360

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/scripts/install_azure_functions_worker.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,15 @@ INVOKE="${BUILD_DIR}/.venv/bin/invoke"
3333
${PIP} install pip-tools build invoke
3434

3535
# Install proto build dependencies
36-
$(cd ${BUILD_DIR} && ${PIPCOMPILE} >${BUILD_DIR}/requirements.txt)
36+
$( cd ${BUILD_DIR}/workers/ && ${PIPCOMPILE} -o ${BUILD_DIR}/requirements.txt )
3737
${PIP} install -r ${BUILD_DIR}/requirements.txt
3838

39-
# Build proto files into pb2 files
40-
cd ${BUILD_DIR}/tests && ${INVOKE} -c test_setup build-protos
39+
# Build proto files into pb2 files (invoke handles fixing include paths for the protos)
40+
cd ${BUILD_DIR}/workers/tests && ${INVOKE} -c test_setup build-protos
4141

4242
# Build and install the package into the original environment (not the build venv)
43-
pip install ${BUILD_DIR}
43+
# Do NOT use ${PIP} from the venv
44+
pip install ${BUILD_DIR}/workers/
4445

4546
# Clean up and return to the original directory
4647
rm -rf ${BUILD_DIR}

tests/adapter_mcp/test_mcp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ async def _test():
6161
# Call the MCP tool, so we can validate the trace naming is correct.
6262
result = await client.call_tool("add_exclamation", {"phrase": "Python is awesome"})
6363

64-
content = str(result[0])
64+
content = str(result.content[0])
6565
assert "Python is awesome!" in content
6666

6767
loop.run_until_complete(_test())

0 commit comments

Comments
 (0)