Skip to content

Commit 7d01865

Browse files
committed
refactor(launch): inline recipe_relpath into recipe_mirror_path
Its other caller went away when the lane edits moved to the bound recipe.
1 parent bca57f1 commit 7d01865

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

  • inferencex-e2e/infx/launch/drivers/srt

‎inferencex-e2e/infx/launch/drivers/srt/recipe.py‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,9 @@
2424
FORCED_ACCEPTANCE_MARKER = "TLLM_SPEC_DECODE_FORCE_NUM_ACCEPTED_TOKENS"
2525

2626

27-
def recipe_relpath(srt_recipe: str) -> str:
28-
"""``srt_recipe`` without its ``:<selector>``."""
29-
return srt_recipe.split(":", 1)[0]
30-
31-
3227
def recipe_mirror_path(workspace: Path, srt_recipe: str) -> Path:
33-
return workspace / recipe_relpath(srt_recipe)
28+
"""``srt_recipe``'s workspace copy, without its ``:<selector>``."""
29+
return workspace / srt_recipe.split(":", 1)[0]
3430

3531

3632
def staged_recipe(srt_recipe: str) -> str:
@@ -42,7 +38,7 @@ def staged_recipe(srt_recipe: str) -> str:
4238

4339

4440
def rename_job(text: str, name: str) -> str:
45-
"""Set the top-level ``name:``, the job name srtctl submits."""
41+
"""Set the top-level ``name:``, srtctl's run name."""
4642
return re.sub(r"(?m)^name:.*$", lambda _: f'name: "{name}"', text)
4743

4844

0 commit comments

Comments
 (0)