Skip to content

Commit 46895fd

Browse files
committed
Merge remote-tracking branch 'origin/main' into contrib/pubsub
2 parents ad504cb + 370608c commit 46895fd

5 files changed

Lines changed: 583 additions & 580 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ dev = [
6161
"pydocstyle>=6.3.0,<7",
6262
"pydoctor>=25.10.1,<26",
6363
"pyright==1.1.403",
64-
"pytest~=7.4",
64+
"pytest~=9.0",
6565
"pytest-asyncio>=0.21,<0.22",
6666
"pytest-timeout~=2.2",
6767
"ruff>=0.5.0,<0.6",
@@ -81,7 +81,7 @@ dev = [
8181
"pytest-xdist>=3.6,<4",
8282
"moto[s3,server]>=5",
8383
"langgraph>=1.1.0",
84-
"langsmith>=0.7.0,<0.8",
84+
"langsmith>=0.7.0,<0.7.34",
8585
"setuptools<82",
8686
"opentelemetry-exporter-otlp-proto-grpc>=1.11.1,<2",
8787
"opentelemetry-semantic-conventions>=0.40b0,<1",

temporalio/bridge/Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/test_client.py

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,30 +1136,27 @@ async def test_schedule_backfill(
11361136
)
11371137
],
11381138
)
1139-
# We accept both 1.24 and pre-1.24 action counts
1140-
assert (await handle.describe()).info.num_actions in [1, 2]
1141-
1142-
# Add two more backfills and and -2m will be deduped
1143-
await handle.backfill(
1144-
# 3 actions on Server >= 1.24, 2 actions on Server < 1.24
1145-
ScheduleBackfill(
1146-
start_at=begin - timedelta(minutes=4),
1147-
end_at=begin - timedelta(minutes=2),
1148-
overlap=ScheduleOverlapPolicy.ALLOW_ALL,
1149-
),
1150-
# 3 actions on Server >= 1.24, 2 actions on Server < 1.24, except on
1151-
# Server >= 1.24, there is overlap with the prior backfill, so this is
1152-
# only net +2 actions, regardless of Server version.
1153-
ScheduleBackfill(
1154-
start_at=begin - timedelta(minutes=2),
1155-
end_at=begin,
1156-
overlap=ScheduleOverlapPolicy.ALLOW_ALL,
1157-
),
1158-
)
1159-
assert (await handle.describe()).info.num_actions in [5, 7]
1160-
1161-
await handle.delete()
1162-
await assert_no_schedules(client)
1139+
try:
1140+
# Add two more backfills. Older servers treat the end time as
1141+
# exclusive, 1.24+ servers treat it as inclusive, and 1.31+ servers no
1142+
# longer dedupe the overlapping ALLOW_ALL backfills below.
1143+
await handle.backfill(
1144+
# 3 actions on Server >= 1.24, 2 actions on Server < 1.24
1145+
ScheduleBackfill(
1146+
start_at=begin - timedelta(minutes=4),
1147+
end_at=begin - timedelta(minutes=2),
1148+
overlap=ScheduleOverlapPolicy.ALLOW_ALL,
1149+
),
1150+
# 3 actions on Server >= 1.24, 2 actions on Server < 1.24.
1151+
ScheduleBackfill(
1152+
start_at=begin - timedelta(minutes=2),
1153+
end_at=begin,
1154+
overlap=ScheduleOverlapPolicy.ALLOW_ALL,
1155+
),
1156+
)
1157+
finally:
1158+
await handle.delete()
1159+
await assert_no_schedules(client)
11631160

11641161

11651162
async def test_schedule_create_limited_actions_validation(

tests/worker/workflow_sandbox/test_runner.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import sys
99
import time
1010
import uuid
11+
import warnings
1112
from collections.abc import Callable, Sequence
1213
from dataclasses import dataclass
1314
from datetime import date, datetime, timedelta
@@ -645,7 +646,8 @@ async def test_workflow_sandbox_import_suppress_warnings(client: Client):
645646
workflows=[SupressWarningsLazyImportWorkflow],
646647
workflow_runner=SandboxedWorkflowRunner(restrictions),
647648
) as worker:
648-
with pytest.warns(None) as recorder: # type:ignore
649+
with warnings.catch_warnings(record=True) as recorder:
650+
warnings.simplefilter("always")
649651
await client.execute_workflow(
650652
SupressWarningsLazyImportWorkflow.run,
651653
id=f"workflow-{uuid.uuid4()}",

0 commit comments

Comments
 (0)