Skip to content

utils/dir: Resolve benches dir on target platform#357

Merged
apaolillo merged 1 commit into
mainfrom
benchdir
Jul 8, 2026
Merged

utils/dir: Resolve benches dir on target platform#357
apaolillo merged 1 commit into
mainfrom
benchdir

Conversation

@apaolillo

Copy link
Copy Markdown
Collaborator

benchkit_home_dir()/get_benches_dir() resolved ~/.benchkit from the orchestrator's home even for remote runs, so a target host with a different $HOME (e.g. /u/user vs /home/user) got an invalid path and fetch failed. They now accept a comm and resolve $HOME/BENCHKIT_HOME on the target platform; all benches pass comm=ctx.platform.comm.

Also harden the result-directory hierarchy: sanitize path separators in <var>-<value> component names, so a path-valued variable can no longer spawn a spurious nested subtree.

benchkit_home_dir()/get_benches_dir() resolved ~/.benchkit from the
orchestrator's home even for remote runs, so a target host with a
different $HOME (e.g. /u/user vs /home/user) got an invalid path and
fetch failed. They now accept a `comm` and resolve $HOME/BENCHKIT_HOME
on the target platform; all benches pass `comm=ctx.platform.comm`.

Also harden the result-directory hierarchy: sanitize path separators in
`<var>-<value>` component names, so a path-valued variable can no longer
spawn a spurious nested subtree.

Signed-off-by: Antonio Paolillo <apaolill@gmail.com>
@apaolillo apaolillo requested a review from matsvanmolle July 8, 2026 07:51
@apaolillo apaolillo self-assigned this Jul 8, 2026

@matsvanmolle matsvanmolle left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@apaolillo apaolillo merged commit fd9c314 into main Jul 8, 2026
2 checks passed
@apaolillo apaolillo deleted the benchdir branch July 8, 2026 08:12
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