Skip to content

fix(hydra_parser): remove shlex in hydra cmd parser#213

Merged
DSuveges merged 2 commits into
devfrom
shlex-in-hydra-cmd-parser
Jun 23, 2026
Merged

fix(hydra_parser): remove shlex in hydra cmd parser#213
DSuveges merged 2 commits into
devfrom
shlex-in-hydra-cmd-parser

Conversation

@project-defiant

@project-defiant project-defiant commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Context

The fix reverts an incorrect application of shlex.quote() in convert_params_to_hydra_positional_arg. The initial change was included in heritability estimate batch job, is no longer required.

Issue

The bug: String values starting with { or [ (e.g. JSON-like objects/lists) were being wrapped in POSIX shell quotes, turning step.filter={a: 1} into 'step.filter={a: 1}'. Hydra's override grammar is not a shell, so it received the literal single-quote characters as part of the argument, breaking the parse.

Implementations

  • Removal of shlex.quote
  • Added regression test

@project-defiant project-defiant requested a review from DSuveges June 23, 2026 10:57
@project-defiant project-defiant changed the title Shlex in hydra cmd parser fix(hydra_parser): remove shlex in hydra cmd parser Jun 23, 2026
@DSuveges DSuveges merged commit 16ff156 into dev Jun 23, 2026
2 checks passed
@DSuveges DSuveges deleted the shlex-in-hydra-cmd-parser branch June 23, 2026 14:05
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