-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into visi-model-rail
- Loading branch information
Showing
62 changed files
with
1,567 additions
and
362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[bumpversion] | ||
current_version = 2.193.0 | ||
current_version = 2.194.0 | ||
commit = True | ||
tag = True | ||
tag_message = | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file added
BIN
+124 KB
changes/modelrefs/model_2.194.0_fb479d376805f963f11c5029310325c13ef2c883.yaml.gz
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import os | ||
import sys | ||
import warnings | ||
|
||
import synapse.common as s_common | ||
|
||
THROW = False | ||
|
||
def audithook(event, args): | ||
if event == 'socket.bind': | ||
_, addr = args | ||
if isinstance(addr, tuple) and (port := addr[1]) != 0: | ||
|
||
testname = os.environ.get('PYTEST_CURRENT_TEST', '<unknown>').split(' ')[0] | ||
|
||
mesg = f'Synapse tests should not bind to fixed ports: {testname=} {port=}' | ||
warnings.warn(mesg) | ||
|
||
if THROW: | ||
raise RuntimeError(mesg) | ||
|
||
def pytest_sessionstart(session): | ||
if s_common.envbool('SYNDEV_AUDIT_PORT_BINDS'): | ||
sys.addaudithook(audithook) | ||
|
||
if s_common.envbool('SYNDEV_AUDIT_PORT_BINDS_RAISE'): | ||
global THROW | ||
THROW = True |
Oops, something went wrong.