You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix progress update crossover between users (#9706)
* Fix showing progress from other sessions
Because `client_id` was missing from ths `progress_state` message, it
was being sent to all connected sessions. This technically meant that if
someone had a graph with the same nodes, they would see the progress
updates for others.
Also added a test to prevent reoccurance and moved the tests around to
make CI easier to hook up.
* Fix CI issues related to timing-sensitive tests
Copy file name to clipboardExpand all lines: tests/conftest.py
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ def pytest_addoption(parser):
6
6
parser.addoption('--output_dir', action="store", default='tests/inference/samples', help='Output directory for generated images')
7
7
parser.addoption("--listen", type=str, default="127.0.0.1", metavar="IP", nargs="?", const="0.0.0.0", help="Specify the IP address to listen on (default: 127.0.0.1). If --listen is provided without an argument, it defaults to 0.0.0.0. (listens on all)")
8
8
parser.addoption("--port", type=int, default=8188, help="Set the listen port.")
9
+
parser.addoption("--skip-timing-checks", action="store_true", default=False, help="Skip timing-related assertions in tests (useful for CI environments with variable performance)")
9
10
10
11
# This initializes args at the beginning of the test session
11
12
@pytest.fixture(scope="session", autouse=True)
@@ -19,6 +20,11 @@ def args_pytest(pytestconfig):
19
20
20
21
returnargs
21
22
23
+
@pytest.fixture(scope="session")
24
+
defskip_timing_checks(pytestconfig):
25
+
"""Fixture that returns whether timing checks should be skipped."""
0 commit comments