Skip to content

Commit eaf1173

Browse files
authored
0.3.3 release (#92)
1 parent a635b54 commit eaf1173

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

docs/src/changelog.md

+9
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@
1212

1313
### Security
1414

15+
## [`v0.3.3` (2022-10-12)](https://github.com/anupli/running-ng/releases/tag/v0.3.2)
16+
### Changed
17+
#### Commands
18+
- `runbms` prints out the logged in users when emitting warnings when the machine has more than one logged in users.
19+
20+
### Fixed
21+
#### Modifiers
22+
- `Companion`: skip value options expansion if no value option is provided to avoid interpreting bpftrace syntax as replacement fields.
23+
1524
## [`v0.3.2` (2022-10-12)](https://github.com/anupli/running-ng/releases/tag/v0.3.2)
1625
### Added
1726

src/running/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
VERSION = (0, 3, 2)
1+
VERSION = (0, 3, 3)
22
__VERSION__ = '.'.join(map(str, VERSION))

src/running/command/runbms.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@ def run_one_benchmark(
223223
logged_in_users: Set[str]
224224
logged_in_users = get_logged_in_users()
225225
if len(logged_in_users) > 1:
226-
logging.warning("More than one user logged in: {}".format(" ".join(logged_in_users)))
226+
logging.warning("More than one user logged in: {}".format(
227+
" ".join(logged_in_users)))
227228
ever_ran = [False] * len(configs)
228229
for i in range(0, invocations):
229230
for p in plugins.values():

src/running/modifier.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def __init__(self, value_opts=None, **kwargs):
1818
self.__original_kwargs = kwargs
1919
self._kwargs = copy.deepcopy(kwargs)
2020
self.excludes = kwargs.get("excludes", {})
21-
if self.value_opts: # Neither None nor empty
21+
if self.value_opts: # Neither None nor empty
2222
# Expand value opts
2323
for k, v in kwargs.items():
2424
if type(v) is not str:
@@ -134,6 +134,7 @@ def __init__(self, value_opts=None, **kwargs):
134134
def __str__(self) -> str:
135135
return "{} JSArg {}".format(super().__str__(), self.val)
136136

137+
137138
@register(Modifier)
138139
class Companion(Modifier):
139140
def __init__(self, value_opts=None, **kwargs):

src/running/plugin/runbms/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,11 @@ def end_config(self, _hfac: Optional[float], _size: Optional[int], _bm: "Benchma
6767
from running.plugin.runbms.zulip import Zulip
6868
except:
6969
from running.util import register
70+
7071
@register(RunbmsPlugin)
7172
class Zulip(RunbmsPlugin):
7273
def __init__(self, **kwargs):
7374
raise RuntimeError("Trying to create an instance of the Zulip "
7475
"plugin for runbms, but the import failed. This is most likely due "
7576
"to the required dependencies not being installed. Try pip install "
76-
"running-ng[zulip] to install the extra dependencies.")
77+
"running-ng[zulip] to install the extra dependencies.")

0 commit comments

Comments
 (0)