mystack-rig 1.7.1__tar.gz → 1.7.2__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 → mystack_rig-1.7.2}/PKG-INFO +1 -1
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/cli/devcontainers.py +75 -6
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/cli/remote_dev.py +4 -2
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/mystack_rig.egg-info/PKG-INFO +1 -1
- mystack_rig-1.7.2/src/mystack_rig.egg-info/scm_version.json +8 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_devcontainers.py +55 -0
- mystack_rig-1.7.1/src/mystack_rig.egg-info/scm_version.json +0 -8
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/.coveragerc +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/.git-blame-ignore-revs +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/.github/workflows/release.yml +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/.github/workflows/tests.yml +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/.gitignore +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/.rig/playbooks/README.md +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/.rig/playbooks/vpn-gateway.yml +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/CLAUDE.md +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/CLI_STORAGE_SUMMARY.md +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/Dockerfile +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/GIT_CLONE_FEATURE.md +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/GLOSSARY.md +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/HETZNER_STORAGE_GUIDE.md +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/HETZNER_STORAGE_SECURITY_GUIDE.md +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/LICENSE +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/Makefile +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/README.md +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/README_REAL_E2E.md +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/STORAGE_CLI_GUIDE.md +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/docs/adr/0001-per-profile-generated-state-bucket.md +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/docs/adr/0002-outputs-as-separate-object-via-file-handoff.md +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/docs/adr/0003-mcp-servers-declared-once-rendered-at-authorize.md +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/docs/adr/0004-agents-run-as-live-agents-in-tmux.md +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/docs/adr/0005-docker-in-configure-for-devcontainers.md +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/docs/adr/0006-workspace-user-instead-of-root.md +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/docs/architecture.md +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/docs/architecture.png +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/docs/architecture.svg +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/forged-idea.md +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/pyproject.toml +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/pytest.ini +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/requirements.txt +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/sample.env +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/scripts/coverage_badge.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/scripts/pypi_version.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/setup.cfg +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/__init__.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/cli/__init__.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/cli/__main__.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/cli/agents.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/cli/ansible_filters/__init__.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/cli/ansible_filters/rig_live.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/cli/ansible_filters/rig_mcp.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/cli/assets/rig-agent-queue +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/cli/assets/rig-agent-state +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/cli/assets/tmux.conf +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/cli/config.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/cli/encrypt.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/cli/git.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/cli/git_author.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/cli/last_env.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/cli/last_session.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/cli/last_target.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/cli/live_agent.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/cli/log.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/cli/main.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/cli/mcp.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/cli/outputs.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/cli/requirements.txt +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/cli/snapshots.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/cli/state_bucket.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/cli/storage.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/cli/vault_keys.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/cli/vpn.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/cli/workspace_user.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/mystack_rig.egg-info/SOURCES.txt +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/mystack_rig.egg-info/dependency_links.txt +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/mystack_rig.egg-info/entry_points.txt +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/mystack_rig.egg-info/requires.txt +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/mystack_rig.egg-info/scm_file_list.json +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/src/mystack_rig.egg-info/top_level.txt +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/test_hetzner_integration.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/conftest.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_agents.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_ansible_galaxy.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_attach_command.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_credential_security.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_destroy_command.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_dev_command.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_encrypt_command.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_encrypt_coverage.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_firewall_client_ip.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_git_clone_unit.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_git_credentials_and_author.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_git_manager.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_gitignore_init.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_hetzner_storage.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_init_command.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_inspect_describe.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_last_env.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_last_session.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_last_target.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_live_agent.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_live_agent_cli.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_log.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_main_coverage.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_mcp_command.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_mcp_render.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_outputs.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_outputs_storage.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_pypi_version.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_python_floor.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_r2_storage.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_real_e2e_integration.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_real_e2e_storage.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_real_e2e_vpn.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_real_e2e_vpn_tunnel.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_remote_dev.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_remote_dev_coverage_extensions.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_rig_ansible_vars.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_rig_config.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_secret_prompt_hidden.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_setup_provision.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_simulation_storage.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_small_module_coverage.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_snapshots.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_state_bucket.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_storage_basic.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_vault_keys.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_vpn_optional.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_vpn_unit.py +0 -0
- {mystack_rig-1.7.1 → mystack_rig-1.7.2}/tests/test_workspace_git_clone.py +0 -0
|
@@ -137,16 +137,84 @@ def choose_target(
|
|
|
137
137
|
print(f"Not a choice: {answer}")
|
|
138
138
|
|
|
139
139
|
|
|
140
|
-
def
|
|
141
|
-
"""
|
|
140
|
+
def _strip_jsonc(text: str) -> str:
|
|
141
|
+
"""Drop ``//`` and ``/* */`` comments and trailing commas (devcontainer.json is JSONC)."""
|
|
142
|
+
out: list[str] = []
|
|
143
|
+
i, n, in_str = 0, len(text), False
|
|
144
|
+
while i < n:
|
|
145
|
+
c = text[i]
|
|
146
|
+
if in_str:
|
|
147
|
+
out.append(c)
|
|
148
|
+
if c == "\\" and i + 1 < n:
|
|
149
|
+
out.append(text[i + 1])
|
|
150
|
+
i += 1
|
|
151
|
+
elif c == '"':
|
|
152
|
+
in_str = False
|
|
153
|
+
elif c == '"':
|
|
154
|
+
in_str = True
|
|
155
|
+
out.append(c)
|
|
156
|
+
elif text.startswith("//", i):
|
|
157
|
+
while i < n and text[i] != "\n":
|
|
158
|
+
i += 1
|
|
159
|
+
continue
|
|
160
|
+
elif text.startswith("/*", i):
|
|
161
|
+
end = text.find("*/", i + 2)
|
|
162
|
+
i = n if end < 0 else end + 2
|
|
163
|
+
continue
|
|
164
|
+
else:
|
|
165
|
+
out.append(c)
|
|
166
|
+
i += 1
|
|
167
|
+
return re.sub(r",(\s*[}\]])", r"\1", "".join(out))
|
|
142
168
|
|
|
143
|
-
|
|
144
|
-
|
|
169
|
+
|
|
170
|
+
def parse_workspace_folder(config_text: str, host_path: str) -> str | None:
|
|
171
|
+
"""``workspaceFolder`` from a devcontainer.json's text, or None when unset or unusable.
|
|
172
|
+
|
|
173
|
+
Resolves ``${localWorkspaceFolder}`` and ``${localWorkspaceFolderBasename}``;
|
|
174
|
+
anything else that is not an absolute path is ignored.
|
|
175
|
+
"""
|
|
176
|
+
try:
|
|
177
|
+
data = json.loads(_strip_jsonc(config_text))
|
|
178
|
+
except ValueError:
|
|
179
|
+
return None
|
|
180
|
+
value = data.get("workspaceFolder") if isinstance(data, dict) else None
|
|
181
|
+
if not isinstance(value, str):
|
|
182
|
+
return None
|
|
183
|
+
value = value.replace("${localWorkspaceFolderBasename}", posixpath.basename(host_path))
|
|
184
|
+
value = value.replace("${localWorkspaceFolder}", host_path)
|
|
185
|
+
return value if value.startswith("/") and "${" not in value else None
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
def read_workspace_folder(env, repo_dest: str, target: DevTarget) -> str | None:
|
|
189
|
+
"""The ``workspaceFolder`` *target*'s devcontainer.json sets, read from *env*'s VM over SSH.
|
|
190
|
+
|
|
191
|
+
None when it is unset or the file can't be read, so the caller falls back to the default.
|
|
145
192
|
"""
|
|
146
193
|
config = posixpath.join(repo_dest, target.config)
|
|
194
|
+
try:
|
|
195
|
+
result = env.run_remote(f"cat {shlex.quote(config)}")
|
|
196
|
+
except Exception: # ssh missing, timeout, ...
|
|
197
|
+
return None
|
|
198
|
+
if result.returncode != 0:
|
|
199
|
+
return None
|
|
200
|
+
return parse_workspace_folder(result.stdout, _host_path(repo_dest, target))
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
def _host_path(repo_dest: str, target: DevTarget) -> str:
|
|
147
204
|
# "" for the repo root, "sub/" for a subfolder
|
|
148
205
|
prefix = target.config.split(".devcontainer")[0]
|
|
149
|
-
|
|
206
|
+
return posixpath.join(repo_dest, prefix).rstrip("/")
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
def devcontainer_folder_uri(alias: str, repo_dest: str, target: DevTarget, workspace_folder: str | None = None) -> str:
|
|
210
|
+
"""``--folder-uri`` that opens *target* in its container over Remote-SSH.
|
|
211
|
+
|
|
212
|
+
The folder holding the ``.devcontainer`` definition is the container's host
|
|
213
|
+
path. The editor opens the config's ``workspaceFolder`` when it sets one,
|
|
214
|
+
else the Dev Containers default ``/workspaces/<folder name>``.
|
|
215
|
+
"""
|
|
216
|
+
config = posixpath.join(repo_dest, target.config)
|
|
217
|
+
host_path = _host_path(repo_dest, target)
|
|
150
218
|
payload = {
|
|
151
219
|
"hostPath": host_path,
|
|
152
220
|
"configFile": {
|
|
@@ -157,7 +225,8 @@ def devcontainer_folder_uri(alias: str, repo_dest: str, target: DevTarget) -> st
|
|
|
157
225
|
},
|
|
158
226
|
}
|
|
159
227
|
encoded = json.dumps(payload, separators=(",", ":")).encode().hex()
|
|
160
|
-
|
|
228
|
+
folder = workspace_folder or f"/workspaces/{posixpath.basename(host_path)}"
|
|
229
|
+
return f"vscode-remote://dev-container+{encoded}@ssh-remote+{alias}{folder}"
|
|
161
230
|
|
|
162
231
|
|
|
163
232
|
class DevContainerScanError(DevContainerError):
|
|
@@ -3640,9 +3640,11 @@ echo "Agent installation complete!"
|
|
|
3640
3640
|
alias = self.ensure_ssh_config_host(ssh_config_path=ssh_config_path)
|
|
3641
3641
|
folder_uri = f"vscode-remote://ssh-remote+{alias}{remote_path}"
|
|
3642
3642
|
if dev_target is not None and repo_dest:
|
|
3643
|
-
from cli.devcontainers import devcontainer_folder_uri
|
|
3643
|
+
from cli.devcontainers import devcontainer_folder_uri, read_workspace_folder
|
|
3644
3644
|
|
|
3645
|
-
folder_uri = devcontainer_folder_uri(
|
|
3645
|
+
folder_uri = devcontainer_folder_uri(
|
|
3646
|
+
alias, repo_dest, dev_target, read_workspace_folder(self, repo_dest, dev_target)
|
|
3647
|
+
)
|
|
3646
3648
|
remote_path = f"{dev_target.label} Dev Container"
|
|
3647
3649
|
cmd = [editor_bin, "--folder-uri", folder_uri]
|
|
3648
3650
|
log.info("Opening %s on %s (%s)", editor_bin, self.vm_ip, remote_path)
|
|
@@ -198,6 +198,61 @@ def test_uri_for_subfolder_container_uses_that_folder_as_host_path():
|
|
|
198
198
|
assert folder == "/workspaces/svc"
|
|
199
199
|
|
|
200
200
|
|
|
201
|
+
def test_uri_opens_the_workspace_folder_the_config_sets():
|
|
202
|
+
from cli.devcontainers import devcontainer_folder_uri
|
|
203
|
+
|
|
204
|
+
uri = devcontainer_folder_uri("rig-env1", "/workspace/ops-box", API_DEFAULT, "/workspace")
|
|
205
|
+
_payload, _host, folder = _decode_uri(uri)
|
|
206
|
+
assert folder == "/workspace"
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
JSONC = """{
|
|
210
|
+
// the compose file mounts the parent directory
|
|
211
|
+
"name": "ops", /* c */
|
|
212
|
+
"url": "http://x//y",
|
|
213
|
+
"workspaceFolder": "/workspace/${localWorkspaceFolderBasename}",
|
|
214
|
+
}"""
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
def test_parse_workspace_folder_handles_jsonc_and_variables():
|
|
218
|
+
from cli.devcontainers import parse_workspace_folder
|
|
219
|
+
|
|
220
|
+
assert parse_workspace_folder(JSONC, "/workspace/ops-box") == "/workspace/ops-box"
|
|
221
|
+
assert parse_workspace_folder('{"workspaceFolder": "${localWorkspaceFolder}/app"}', "/w/r") == "/w/r/app"
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
def test_parse_workspace_folder_ignores_unset_relative_unknown_and_broken():
|
|
225
|
+
from cli.devcontainers import parse_workspace_folder
|
|
226
|
+
|
|
227
|
+
for text in ("{}", '{"workspaceFolder": "rel"}', '{"workspaceFolder": "${containerEnv:X}"}', "nope", "[]"):
|
|
228
|
+
assert parse_workspace_folder(text, "/w/r") is None
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
def test_read_workspace_folder_reads_over_ssh_and_falls_back_on_failure():
|
|
232
|
+
import subprocess
|
|
233
|
+
from types import SimpleNamespace
|
|
234
|
+
|
|
235
|
+
from cli.devcontainers import read_workspace_folder
|
|
236
|
+
|
|
237
|
+
seen = []
|
|
238
|
+
|
|
239
|
+
def ok(cmd):
|
|
240
|
+
seen.append(cmd)
|
|
241
|
+
return subprocess.CompletedProcess(cmd, 0, stdout='{"workspaceFolder": "/workspace"}', stderr="")
|
|
242
|
+
|
|
243
|
+
assert read_workspace_folder(SimpleNamespace(run_remote=ok), "/workspace/api", API_DEFAULT) == "/workspace"
|
|
244
|
+
assert "/workspace/api/.devcontainer/devcontainer.json" in seen[0]
|
|
245
|
+
|
|
246
|
+
def bad(cmd):
|
|
247
|
+
return subprocess.CompletedProcess(cmd, 1, stdout="", stderr="no such file")
|
|
248
|
+
|
|
249
|
+
def boom(cmd):
|
|
250
|
+
raise OSError("ssh missing")
|
|
251
|
+
|
|
252
|
+
assert read_workspace_folder(SimpleNamespace(run_remote=bad), "/workspace/api", API_DEFAULT) is None
|
|
253
|
+
assert read_workspace_folder(SimpleNamespace(run_remote=boom), "/workspace/api", API_DEFAULT) is None
|
|
254
|
+
|
|
255
|
+
|
|
201
256
|
# --- Docker in configure (ADR 0005) -----------------------------------------
|
|
202
257
|
|
|
203
258
|
|
|
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
|
{mystack_rig-1.7.1 → mystack_rig-1.7.2}/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.1 → mystack_rig-1.7.2}/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
|
|
File without changes
|
|
File without changes
|