File tree 3 files changed +12
-11
lines changed
3 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -53,13 +53,13 @@ jobs:
53
53
- run : poe lint
54
54
- run : poe build-develop
55
55
- run : mkdir junit-xml
56
- - run : poe test -s -o log_cli_level=DEBUG - -junit-xml=junit-xml/${{ matrix.python }}--${{ matrix.os }}.xml
56
+ - run : poe test -s --junit-xml=junit-xml/${{ matrix.python }}--${{ matrix.os }}.xml
57
57
# Time skipping doesn't yet support ARM
58
58
- if : ${{ !endsWith(matrix.os, '-arm') }}
59
- run : poe test -s -o log_cli_level=DEBUG - -workflow-environment time-skipping --junit-xml=junit-xml/${{ matrix.python }}--${{ matrix.os }}--time-skipping.xml
59
+ run : poe test -s --workflow-environment time-skipping --junit-xml=junit-xml/${{ matrix.python }}--${{ matrix.os }}--time-skipping.xml
60
60
# Check cloud if proper target and not on fork
61
61
- if : ${{ matrix.cloudTestTarget && (github.event.pull_request.head.repo.full_name == '' || github.event.pull_request.head.repo.full_name == 'temporalio/sdk-python') }}
62
- run : poe test -s -o log_cli_level=DEBUG - k test_cloud_client --junit-xml=junit-xml/${{ matrix.python }}--${{ matrix.os }}--cloud.xml
62
+ run : poe test -s -k test_cloud_client --junit-xml=junit-xml/${{ matrix.python }}--${{ matrix.os }}--cloud.xml
63
63
env :
64
64
TEMPORAL_CLIENT_CLOUD_API_KEY : ${{ secrets.TEMPORAL_CLIENT_CLOUD_API_KEY }}
65
65
TEMPORAL_CLIENT_CLOUD_API_VERSION : 2024-05-13-00
87
87
poe gen-protos
88
88
poe format
89
89
[[ -z $(git status --porcelain temporalio) ]] || (git diff temporalio; echo "Protos changed"; exit 1)
90
- poe test -s -o log_cli_level=DEBUG
90
+ poe test -s
91
91
92
92
# Do docs stuff (only on one host)
93
93
- name : Build API docs
Original file line number Diff line number Diff line change @@ -105,9 +105,10 @@ cmd = "pip uninstall temporalio -y"
105
105
106
106
[tool .pytest .ini_options ]
107
107
asyncio_mode = " auto"
108
- log_cli = true
109
- log_cli_level = " INFO"
110
- log_cli_format = " %(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
108
+ # Do not use log_cli since this shows logging for all tests, not just the ones
109
+ # that failed. Instead, show all logs for failed tests at the end.
110
+ log_level = " DEBUG"
111
+ log_format = " %(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
111
112
testpaths = [" tests" ]
112
113
timeout = 600
113
114
timeout_func_only = true
Original file line number Diff line number Diff line change @@ -5840,7 +5840,7 @@ async def test_workflow_id_conflict(client: Client):
5840
5840
5841
5841
5842
5842
@workflow .defn
5843
- class TestUpdateCompletionIsHonoredWhenAfterWorkflowReturn1 :
5843
+ class UpdateCompletionIsHonoredWhenAfterWorkflowReturn1Workflow :
5844
5844
def __init__ (self ) -> None :
5845
5845
self .workflow_returned = False
5846
5846
@@ -5866,13 +5866,13 @@ async def test_update_completion_is_honored_when_after_workflow_return_1(
5866
5866
update_id = "my-update"
5867
5867
task_queue = "tq"
5868
5868
wf_handle = await client .start_workflow (
5869
- TestUpdateCompletionIsHonoredWhenAfterWorkflowReturn1 .run ,
5869
+ UpdateCompletionIsHonoredWhenAfterWorkflowReturn1Workflow .run ,
5870
5870
id = f"wf-{ uuid .uuid4 ()} " ,
5871
5871
task_queue = task_queue ,
5872
5872
)
5873
5873
update_result_task = asyncio .create_task (
5874
5874
wf_handle .execute_update (
5875
- TestUpdateCompletionIsHonoredWhenAfterWorkflowReturn1 .my_update ,
5875
+ UpdateCompletionIsHonoredWhenAfterWorkflowReturn1Workflow .my_update ,
5876
5876
id = update_id ,
5877
5877
)
5878
5878
)
@@ -5881,7 +5881,7 @@ async def test_update_completion_is_honored_when_after_workflow_return_1(
5881
5881
async with Worker (
5882
5882
client ,
5883
5883
task_queue = task_queue ,
5884
- workflows = [TestUpdateCompletionIsHonoredWhenAfterWorkflowReturn1 ],
5884
+ workflows = [UpdateCompletionIsHonoredWhenAfterWorkflowReturn1Workflow ],
5885
5885
):
5886
5886
assert await wf_handle .result () == "workflow-result"
5887
5887
assert await update_result_task == "update-result"
You can’t perform that action at this time.
0 commit comments