Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Gu <[email protected]>
  • Loading branch information
tylergu committed Nov 20, 2023
1 parent 072c065 commit 2f38d5b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion performance_measurement/measure_performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def main(args):
help="The phase of the trial to reproduce")
parser.add_argument("--modes", "-m", dest="modes",
nargs="+",
default=["normal,single-operation"],)
default=["normal", "single-operation"],)
parser.add_argument("--project", "-j", dest="project",
help="The project name to use for the trial", required=True)
parser.add_argument("--gen", "-g", dest="gen",
Expand Down
8 changes: 4 additions & 4 deletions performance_measurement/measure_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ def run(self,
last_revision = event_list[-1][0]["object"].status.update_revision
last_spec = event_list[-1][0]['object'].to_dict()["spec"]
# remove the lastRestartAt label for rabbitmq, hack for the reference rabbitmq operator
if "rabbitmq.com/lastRestartAt" in last_spec["template"]["metadata"]["labels"]:
del last_spec["template"]["metadata"]["labels"]["rabbitmq.com/lastRestartAt"]
# if "rabbitmq.com/lastRestartAt" in last_spec["template"]["metadata"]["labels"]:
# del last_spec["template"]["metadata"]["labels"]["rabbitmq.com/lastRestartAt"]
last_spec_hash = hashlib.sha256(json.dumps(
last_spec, sort_keys=True).encode()).hexdigest()

Expand All @@ -248,8 +248,8 @@ def run(self,

curr_spec = obj_dict["spec"]
# remove the lastRestartAt label for rabbitmq, hack for the reference rabbitmq operator
if "rabbitmq.com/lastRestartAt" in curr_spec["template"]["metadata"]["labels"]:
del curr_spec["template"]["metadata"]["labels"]["rabbitmq.com/lastRestartAt"]
# if "rabbitmq.com/lastRestartAt" in curr_spec["template"]["metadata"]["annotations"]:
# del curr_spec["template"]["metadata"]["labels"]["rabbitmq.com/lastRestartAt"]
current_spec_hash = hashlib.sha256(json.dumps(
curr_spec, sort_keys=True).encode()).hexdigest()
prev_spec = curr_spec
Expand Down

0 comments on commit 2f38d5b

Please sign in to comment.