Skip to content

feat(scripts): devc-remote.sh — bash orchestrator for remote devcontainer (#152) - #156

Merged
gerchowl merged 7 commits into
feature/70-remote-devc-orchestrationfrom
feature/152-devc-remote-sh
Feb 22, 2026
Merged

gerchowl merged 7 commits into
feature/70-remote-devc-orchestrationfrom
feature/152-devc-remote-sh

Conversation

@gerchowl

Copy link
Copy Markdown
Contributor

Description

Adds scripts/devc-remote.sh — the bash orchestrator for starting a devcontainer on a remote host via SSH. Part of #70. Handles SSH connectivity, pre-flight checks, container state detection, and compose lifecycle. URI construction delegated to Python helper (sibling sub-issue).

Type of Change

  • feat -- New feature
  • fix -- Bug fix
  • docs -- Documentation only
  • chore -- Maintenance task (deps, config, etc.)
  • refactor -- Code restructuring (no behavior change)
  • test -- Adding or updating tests
  • ci -- CI/CD pipeline changes
  • build -- Build system or dependency changes
  • revert -- Reverts a previous commit
  • style -- Code style (formatting, whitespace)

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

  • scripts/devc-remote.sh (new): Main orchestrator with parse_args, detect_editor_cli, check_ssh, remote_preflight, remote_compose_up, open_editor
  • scripts/devc_remote_uri.py (new): Stub for URI construction (accepts --ssh-host, --path; returns placeholder URI)
  • tests/bats/devc-remote.bats (new): BATS unit tests with mocked ssh, cursor, python3
  • CHANGELOG.md: Added entry under ## Unreleased

Changelog Entry

Added

  • devc-remote.sh — bash orchestrator for remote devcontainer (#152)
    • scripts/devc-remote.sh: parse_args, detect_editor_cli, check_ssh, remote_preflight, remote_compose_up, open_editor
    • scripts/devc_remote_uri.py: stub for URI construction (sibling sub-issue)
    • BATS unit tests with mocked commands

Testing

  • Tests pass locally (just test-bats, just lint)
  • Manual testing performed (describe below)

Manual Testing Details

N/A — BATS tests cover script structure, argument parsing, detect_editor_cli, check_ssh, remote_preflight, remote_compose_up (skip when running), open_editor flow.

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

Design and implementation plan posted on issue #152. Python URI helper is a stub; full implementation in sibling sub-issue.

Refs: #152

@gerchowl gerchowl self-assigned this Feb 22, 2026
@gerchowl
gerchowl merged commit c185f78 into feature/70-remote-devc-orchestration Feb 22, 2026
1 check passed
@gerchowl
gerchowl deleted the feature/152-devc-remote-sh branch February 22, 2026 13:57
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.

1 participant