Skip to content

Specify minheap log directory#174

Open
qinsoon wants to merge 3 commits intoanupli:masterfrom
qinsoon:minheap-log-dir
Open

Specify minheap log directory#174
qinsoon wants to merge 3 commits intoanupli:masterfrom
qinsoon:minheap-log-dir

Conversation

@qinsoon
Copy link
Copy Markdown
Contributor

@qinsoon qinsoon commented Apr 2, 2026

Allow optional --log-dir and -p for minheap. If log dir is set, logs will be stored in the specified directory. Otherwise, logs are still stored in the temp dir.

with (run_log_dir / "minheap_args.yml").open("w") as fd:
yaml.dump(args, fd)
with (run_log_dir / "minheap.yml").open("w") as fd:
configuration.save_to_file(fd)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Configuration needs to be saved before calling resolve_class. Otherwise, the content becomes concrete Python object representing, e.g. BenchmarkSuite, instead of just dictionaries, and the YAML file will contain tags to serialize Python objects.

https://pyyaml.org/wiki/PyYAMLDocumentation

Copy link
Copy Markdown
Member

@caizixian caizixian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've pushed a fix. Please take another took.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants