Skip to content

refactor(executors): extract reusable primitives#29

Merged
Danelegend merged 1 commit into
mainfrom
dane/ll-session-refactor
May 6, 2026
Merged

refactor(executors): extract reusable primitives#29
Danelegend merged 1 commit into
mainfrom
dane/ll-session-refactor

Conversation

@Danelegend
Copy link
Copy Markdown
Contributor

… work

Pure refactor - no behavior change. Existing test suite passes unmodified.

  • DockerExecutor._build_run_command now takes sleep_seconds and an optional labels mapping, so future callers can spin up containers with custom durations and label sets.
  • DockerExecutor._create_tar_archive's code argument is now optional, letting callers stage files without an entrypoint.
  • _upload_tar_to_container extracted from _stage_files_in_container for reuse.
  • KubernetesExecutor._create_pod_manifest is parameterized over command, labels, annotations, and active_deadline_seconds.
  • KubernetesExecutor._create_tar_archive mirrors the Docker change.

… work

Pure refactor - no behavior change. Existing test suite passes unmodified.

* `DockerExecutor._build_run_command` now takes `sleep_seconds` and an
  optional `labels` mapping, so future callers can spin up containers with
  custom durations and label sets.
* `DockerExecutor._create_tar_archive`'s `code` argument is now optional,
  letting callers stage files without an entrypoint.
* `_upload_tar_to_container` extracted from `_stage_files_in_container`
  for reuse.
* `KubernetesExecutor._create_pod_manifest` is parameterized over
  `command`, `labels`, `annotations`, and `active_deadline_seconds`.
* `KubernetesExecutor._create_tar_archive` mirrors the Docker change.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@evan-onyx evan-onyx left a comment

Choose a reason for hiding this comment

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

love a refactor

@Danelegend Danelegend merged commit 977a1e4 into main May 6, 2026
3 checks passed
@Danelegend Danelegend deleted the dane/ll-session-refactor branch May 6, 2026 18:27
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