Skip to content

Commit c48f467

Browse files
#382: align polyglot integration with avro default
1 parent 5bb13fa commit c48f467

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

tests/integration/polyglot_fixtures.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
These fixtures test bidirectional PHP↔Python worker interop:
55
- Python activities called from PHP workflows
66
- PHP activities called from Python workflows
7-
- JSON payload round-trip across runtimes
7+
- Avro payload round-trip across runtimes
88
"""
99
from __future__ import annotations
1010

@@ -17,7 +17,7 @@ async def polyglot_python_activity(input_data: dict) -> dict:
1717
Python activity fixture for polyglot interop testing.
1818
1919
Accepts structured input from a PHP workflow and returns
20-
enriched output to validate JSON codec round-trip.
20+
enriched output to validate codec-aware round-trip behavior.
2121
"""
2222
return {
2323
"runtime": "python",
@@ -45,7 +45,7 @@ class PolyglotPythonWorkflow:
4545
4646
Schedules a PHP activity to validate that:
4747
1. Python workflows can call PHP activities
48-
2. JSON payloads round-trip correctly across runtimes
48+
2. Avro payloads round-trip correctly across runtimes
4949
3. Activity results from PHP are decoded properly in Python
5050
"""
5151

tests/integration/test_polyglot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async def test_python_workflow_calls_php_activity(server_url: str, server_token:
3030
3131
This validates:
3232
- Python workflows can schedule activities with type keys registered by PHP workers
33-
- JSON payloads serialize correctly from Python
33+
- Avro payloads serialize correctly from Python by default
3434
- PHP activity results deserialize correctly in Python
3535
- Codec envelopes round-trip across runtimes
3636
"""
@@ -44,7 +44,7 @@ async def test_python_workflow_calls_php_activity(server_url: str, server_token:
4444
"count": 42,
4545
"price": 99.95,
4646
"active": True,
47-
"tags": ["python", "php", "json"],
47+
"tags": ["python", "php", "avro"],
4848
"metadata": {
4949
"source": "integration-test",
5050
"version": 2,
@@ -96,7 +96,7 @@ async def test_python_workflow_calls_php_activity(server_url: str, server_token:
9696
# Verify activity arguments are envelope-wrapped
9797
activity_args = server_cmd.get("arguments", {})
9898
assert "codec" in activity_args, "activity arguments should be codec-wrapped"
99-
assert activity_args.get("codec") == "json"
99+
assert activity_args.get("codec") == "avro"
100100

101101
# 5. Complete workflow task
102102
await client.complete_workflow_task(

0 commit comments

Comments
 (0)