mystack-rig 1.7.0__tar.gz → 1.7.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mystack_rig-1.7.1/CLAUDE.md +31 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/PKG-INFO +1 -1
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/cli/remote_dev.py +27 -6
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/mystack_rig.egg-info/PKG-INFO +1 -1
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/mystack_rig.egg-info/SOURCES.txt +1 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/mystack_rig.egg-info/scm_file_list.json +1 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/mystack_rig.egg-info/scm_version.json +2 -2
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_live_agent.py +9 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_setup_provision.py +13 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/.coveragerc +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/.git-blame-ignore-revs +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/.github/workflows/release.yml +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/.github/workflows/tests.yml +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/.gitignore +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/.rig/playbooks/README.md +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/.rig/playbooks/vpn-gateway.yml +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/CLI_STORAGE_SUMMARY.md +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/Dockerfile +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/GIT_CLONE_FEATURE.md +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/GLOSSARY.md +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/HETZNER_STORAGE_GUIDE.md +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/HETZNER_STORAGE_SECURITY_GUIDE.md +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/LICENSE +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/Makefile +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/README.md +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/README_REAL_E2E.md +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/STORAGE_CLI_GUIDE.md +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/docs/adr/0001-per-profile-generated-state-bucket.md +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/docs/adr/0002-outputs-as-separate-object-via-file-handoff.md +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/docs/adr/0003-mcp-servers-declared-once-rendered-at-authorize.md +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/docs/adr/0004-agents-run-as-live-agents-in-tmux.md +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/docs/adr/0005-docker-in-configure-for-devcontainers.md +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/docs/adr/0006-workspace-user-instead-of-root.md +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/docs/architecture.md +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/docs/architecture.png +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/docs/architecture.svg +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/forged-idea.md +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/pyproject.toml +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/pytest.ini +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/requirements.txt +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/sample.env +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/scripts/coverage_badge.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/scripts/pypi_version.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/setup.cfg +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/__init__.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/cli/__init__.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/cli/__main__.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/cli/agents.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/cli/ansible_filters/__init__.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/cli/ansible_filters/rig_live.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/cli/ansible_filters/rig_mcp.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/cli/assets/rig-agent-queue +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/cli/assets/rig-agent-state +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/cli/assets/tmux.conf +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/cli/config.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/cli/devcontainers.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/cli/encrypt.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/cli/git.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/cli/git_author.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/cli/last_env.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/cli/last_session.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/cli/last_target.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/cli/live_agent.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/cli/log.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/cli/main.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/cli/mcp.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/cli/outputs.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/cli/requirements.txt +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/cli/snapshots.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/cli/state_bucket.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/cli/storage.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/cli/vault_keys.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/cli/vpn.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/cli/workspace_user.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/mystack_rig.egg-info/dependency_links.txt +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/mystack_rig.egg-info/entry_points.txt +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/mystack_rig.egg-info/requires.txt +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/src/mystack_rig.egg-info/top_level.txt +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/test_hetzner_integration.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/conftest.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_agents.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_ansible_galaxy.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_attach_command.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_credential_security.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_destroy_command.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_dev_command.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_devcontainers.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_encrypt_command.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_encrypt_coverage.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_firewall_client_ip.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_git_clone_unit.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_git_credentials_and_author.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_git_manager.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_gitignore_init.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_hetzner_storage.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_init_command.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_inspect_describe.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_last_env.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_last_session.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_last_target.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_live_agent_cli.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_log.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_main_coverage.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_mcp_command.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_mcp_render.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_outputs.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_outputs_storage.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_pypi_version.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_python_floor.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_r2_storage.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_real_e2e_integration.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_real_e2e_storage.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_real_e2e_vpn.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_real_e2e_vpn_tunnel.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_remote_dev.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_remote_dev_coverage_extensions.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_rig_ansible_vars.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_rig_config.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_secret_prompt_hidden.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_simulation_storage.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_small_module_coverage.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_snapshots.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_state_bucket.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_storage_basic.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_vault_keys.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_vpn_optional.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_vpn_unit.py +0 -0
- {mystack_rig-1.7.0 → mystack_rig-1.7.1}/tests/test_workspace_git_clone.py +0 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Rig: rules for agents
|
|
2
|
+
|
|
3
|
+
Vocabulary is in `GLOSSARY.md`; decisions are in `docs/adr/`.
|
|
4
|
+
|
|
5
|
+
## Fixing a bug or shipping a change
|
|
6
|
+
|
|
7
|
+
Do every step, in order. Don't stop after the PR.
|
|
8
|
+
|
|
9
|
+
1. **Branch** off `master`: `fix/<what>` or `feat/<what>`. Never commit to `master`.
|
|
10
|
+
2. **Test first.** Add a test that fails without the fix. Keep the diff to what the bug needs.
|
|
11
|
+
3. **Run the CI gates locally** (same versions as CI):
|
|
12
|
+
- `uvx ruff@0.17.5 check .` and `uvx ruff@0.17.5 format --check .` (run `format .` to fix)
|
|
13
|
+
- `uvx mypy src/ --ignore-missing-imports`
|
|
14
|
+
- `uv run pytest tests/ -m "not e2e" --cov=src --cov-fail-under=90` with the same `--ignore` flags as the Unit Tests job in `.github/workflows/tests.yml`
|
|
15
|
+
4. **Commit and push**, then open a PR against `master` (use the `pr` skill for the body). Commit messages are conventional (`fix:`, `feat:`).
|
|
16
|
+
5. **Wait for every CI job to pass**: Lint, Type Check, Unit Tests, Integration Tests, E2E Tests and `codecov/patch`. Use `gh pr checks <n> --watch`. If one fails, fix it on the branch; never merge red.
|
|
17
|
+
6. **Coverage must not drop.** The floor is 90% (`.coveragerc`), but also don't lower the current total or leave new code untested. `codecov/patch` must pass.
|
|
18
|
+
7. **Merge** the PR with a merge commit (`gh pr merge <n> --merge`), then update `master`.
|
|
19
|
+
8. **Release.** Tag the merge commit and push the tag; the Release workflow publishes to PyPI.
|
|
20
|
+
- Bug fix: bump the patch (`v1.7.0` → `v1.7.1`). New feature: bump the minor. Breaking change: bump the major.
|
|
21
|
+
- `git tag -a vX.Y.Z -m "<summary>" && git push origin vX.Y.Z`, then `gh run watch` the Release run and confirm the version on PyPI.
|
|
22
|
+
9. **Tell the user** what was merged, the version, and anything existing Environments or workspaces must do (re-create, edit user-owned playbooks).
|
|
23
|
+
|
|
24
|
+
Ask before merging or releasing only if CI is red, coverage dropped, or the user hasn't asked for a release.
|
|
25
|
+
|
|
26
|
+
## Testing
|
|
27
|
+
|
|
28
|
+
- Unit tests mutate `HETZNER_CLOUD_API_TOKEN` in-process. Run the real-API tests (`tests/test_real_e2e_*.py`, `tests/test_hetzner_storage.py`, `tests/test_workspace_git_clone.py`) in their own pytest process, or they fail with 401.
|
|
29
|
+
- Real-API and real-VM tests cost money. Delete what you create (`rig delete`, then check no servers, SSH keys or firewalls are left with the Hetzner API).
|
|
30
|
+
- Anything that SSHes before `authorize.yml` has run must connect as `root`: the workspace user can't log in until authorize copies its key.
|
|
31
|
+
- `provision.yml` and `authorize.yml` are regenerated on every run; `configure.yml` and `materialize.yml` are user-owned and never overwritten, so changes to them need a README note for existing workspaces.
|
|
@@ -3231,8 +3231,10 @@ echo "Agent installation complete!"
|
|
|
3231
3231
|
log.debug("Resume later with: rig attach (or --resume/--session %s)", session_id)
|
|
3232
3232
|
return int(exit_code)
|
|
3233
3233
|
|
|
3234
|
-
def _ssh_command(
|
|
3235
|
-
|
|
3234
|
+
def _ssh_command(
|
|
3235
|
+
self, remote_cmd: str, *, tty: bool, connect_timeout: int | None = None, user: str | None = None
|
|
3236
|
+
) -> list[str]:
|
|
3237
|
+
"""SSH argv as the workspace user (or ``user``). ``tty`` allocates a terminal; otherwise the call is batch-mode."""
|
|
3236
3238
|
ssh_key_path = f"/tmp/{self.ssh_key_name}"
|
|
3237
3239
|
cmd = ["ssh"]
|
|
3238
3240
|
if tty:
|
|
@@ -3253,7 +3255,7 @@ echo "Agent installation complete!"
|
|
|
3253
3255
|
cmd += ["-o", "BatchMode=yes"]
|
|
3254
3256
|
if connect_timeout:
|
|
3255
3257
|
cmd += ["-o", f"ConnectTimeout={int(connect_timeout)}"]
|
|
3256
|
-
cmd += [f"{self.work_user}@{self.vm_ip}", remote_cmd]
|
|
3258
|
+
cmd += [f"{user or self.work_user}@{self.vm_ip}", remote_cmd]
|
|
3257
3259
|
return cmd
|
|
3258
3260
|
|
|
3259
3261
|
def _interactive_ssh_command(self, remote_cmd: str) -> list[str]:
|
|
@@ -3267,10 +3269,15 @@ echo "Agent installation complete!"
|
|
|
3267
3269
|
input_text: str | None = None,
|
|
3268
3270
|
timeout: int = 30,
|
|
3269
3271
|
connect_timeout: int = 10,
|
|
3272
|
+
user: str | None = None,
|
|
3270
3273
|
) -> subprocess.CompletedProcess:
|
|
3271
|
-
"""Run one non-interactive command on the VM (stdin from ``input_text``).
|
|
3274
|
+
"""Run one non-interactive command on the VM (stdin from ``input_text``).
|
|
3275
|
+
|
|
3276
|
+
Runs as the workspace user unless ``user`` is given. Before authorize has
|
|
3277
|
+
run, only root can log in: the workspace user's key is copied there.
|
|
3278
|
+
"""
|
|
3272
3279
|
return subprocess.run(
|
|
3273
|
-
self._ssh_command(command, tty=False, connect_timeout=connect_timeout),
|
|
3280
|
+
self._ssh_command(command, tty=False, connect_timeout=connect_timeout, user=user),
|
|
3274
3281
|
input=input_text,
|
|
3275
3282
|
capture_output=True,
|
|
3276
3283
|
text=True,
|
|
@@ -3286,7 +3293,8 @@ echo "Agent installation complete!"
|
|
|
3286
3293
|
if not self.vm_ip:
|
|
3287
3294
|
return False
|
|
3288
3295
|
try:
|
|
3289
|
-
|
|
3296
|
+
# As root: this runs before authorize, when the workspace user can't log in yet.
|
|
3297
|
+
result = self.run_remote("sync && sync", timeout=timeout, connect_timeout=15, user="root")
|
|
3290
3298
|
except (OSError, subprocess.SubprocessError) as exc:
|
|
3291
3299
|
log.warning("Could not flush the disk of %s: %s", self.name, exc)
|
|
3292
3300
|
return False
|
|
@@ -4383,6 +4391,19 @@ AUTHORIZE_PLAYBOOK = r"""---
|
|
|
4383
4391
|
- /run/rig/agents
|
|
4384
4392
|
- /var/log/rig
|
|
4385
4393
|
|
|
4394
|
+
# The agent runs as the workspace user: its hooks write state here and the
|
|
4395
|
+
# attach script writes the log. /run is a tmpfs, so this runs on every authorize.
|
|
4396
|
+
- name: Let the workspace user write live-agent state and logs
|
|
4397
|
+
file:
|
|
4398
|
+
path: "{{ item }}"
|
|
4399
|
+
state: directory
|
|
4400
|
+
owner: "{{ rig_user }}"
|
|
4401
|
+
group: "{{ rig_user }}"
|
|
4402
|
+
mode: "0755"
|
|
4403
|
+
loop:
|
|
4404
|
+
- /run/rig/agents
|
|
4405
|
+
- /var/log/rig
|
|
4406
|
+
|
|
4386
4407
|
- name: Install the live-agent tmux configuration
|
|
4387
4408
|
copy:
|
|
4388
4409
|
src: "{{ rig_assets_dir }}/tmux.conf"
|
|
@@ -612,3 +612,12 @@ def test_claude_as_root_needs_is_sandbox_to_use_bypass_mode():
|
|
|
612
612
|
assert "export IS_SANDBOX=1; " in only_flag and "IS_SANDBOX" not in RemoteDevEnvironment.agent_remote_command(
|
|
613
613
|
"claude"
|
|
614
614
|
)
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
def test_authorize_hands_live_agent_state_and_log_dirs_to_the_workspace_user():
|
|
618
|
+
from cli.remote_dev import AUTHORIZE_PLAYBOOK
|
|
619
|
+
|
|
620
|
+
play = yaml.safe_load(AUTHORIZE_PLAYBOOK)[0]
|
|
621
|
+
task = next(t for t in play["tasks"] if t.get("name", "").startswith("Let the workspace user write live-agent"))
|
|
622
|
+
assert task["file"]["owner"] == "{{ rig_user }}"
|
|
623
|
+
assert task["loop"] == [la.STATE_DIR, la.LOG_DIR]
|
|
@@ -1221,3 +1221,16 @@ def test_environment_connects_as_the_configured_workspace_user():
|
|
|
1221
1221
|
assert env.work_home == "/home/ops"
|
|
1222
1222
|
assert env._ssh_command("true", tty=False)[-2] == "ops@203.0.113.9"
|
|
1223
1223
|
assert "/home/ops/.claude/credentials.env" in env.agent_remote_command("claude", home=env.work_home)
|
|
1224
|
+
|
|
1225
|
+
|
|
1226
|
+
def test_flush_disk_connects_as_root_before_the_workspace_user_can_log_in():
|
|
1227
|
+
import subprocess
|
|
1228
|
+
from unittest.mock import patch
|
|
1229
|
+
|
|
1230
|
+
env = RemoteDevEnvironment(name="flush")
|
|
1231
|
+
env.vm_ip, env.ssh_key_name = "203.0.113.9", "k"
|
|
1232
|
+
with patch("cli.remote_dev.subprocess.run") as run:
|
|
1233
|
+
run.return_value = subprocess.CompletedProcess([], 0, "", "")
|
|
1234
|
+
assert env.flush_disk() is True
|
|
1235
|
+
assert "root@203.0.113.9" in run.call_args.args[0]
|
|
1236
|
+
assert "dev@203.0.113.9" in env._ssh_command("true", tty=False)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mystack_rig-1.7.0 → mystack_rig-1.7.1}/docs/adr/0002-outputs-as-separate-object-via-file-handoff.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mystack_rig-1.7.0 → mystack_rig-1.7.1}/docs/adr/0005-docker-in-configure-for-devcontainers.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|