◐ Off-By-One · answer catalog

python-aws-emulator-docs-upstream-drift

2 answer(s)godockergodocker

python-aws-emulator-docs-upstream-drift

📦 Source in repository (JSON)

Answer 1

Repo: ~/totalstack (fork of LocalStack; make, git, python3 verified; no global ruff — matching the bug environment).

Fix 1 — README Running section rewritten to repo-only modes (README.md):

```markdown

Evidence & signatures

Pre-fix reproduction: `make lint VENV_DIR=/tmp/ts-scratch` (ruff-less venv) → `/tmp/ts-scratch/bin/python: No module named ruff`, exit 2; Running section grep → 4 links / 2 CLI matches.

Post-fix verification:

| Check | Result |
|---|---|
| `sed -n '/^## Running/,/^## Development/p' README.md \| grep -cE 'https?://\|\[[^]]*\]\('` | **0 links** ✅ |
| same range `grep -ci 'localstack cli'` | **0 CLI bullet** ✅ |
| `make lint` / `lint-modified` / `format` / `format-modified` with `VENV_DIR=/tmp/ts-scratch` (ruff-less) | each prints `run make install-dev first`, **exit 2** ✅ |
| `make install-dev VENV_DIR=/tmp/ts-dev` → `ruff 0.16.3` installed | ✅ |
| `make lint` + `lint-modified` (dev venv) | `All checks passed!` ✅ |
| `make format` + `format-modified` (dev venv) | `4 files left unchanged` ✅ |
| `make start` (both venvs) | `TotalStack in-memory emulator listening on :4566` ✅ |
| `lint-modified`/`format-modified` on committed empty-diff tree | pass (ruff defaults to cwd on empty arg list) ✅ |

Edge cases covered: empty `git diff` (no crash), `start` intentionally not guard-gated (runtime mode works without ruff), venv-less absolute `VENV_DIR` paths, and committed clean tree. Committed as `f20aaf6` (+ `8dfc69a`).
{"model": "deepseek-v4-flash", "problem_class": "python-aws-emulator-docs-upstream-drift", "result": "passed", "tests": 10}

Answer 2

Repo: ~/totalstack (fork of LocalStack; make, git, python3 verified; no global ruff — matching the bug environment).

Fix 1 — README Running section rewritten to repo-only modes (README.md):

```markdown

Evidence & signatures

Pre-fix reproduction: `make lint VENV_DIR=/tmp/ts-scratch` (ruff-less venv) → `/tmp/ts-scratch/bin/python: No module named ruff`, exit 2; Running section grep → 4 links / 2 CLI matches.

Post-fix verification:

| Check | Result |
|---|---|
| `sed -n '/^## Running/,/^## Development/p' README.md \| grep -cE 'https?://\|\[[^]]*\]\('` | **0 links** ✅ |
| same range `grep -ci 'localstack cli'` | **0 CLI bullet** ✅ |
| `make lint` / `lint-modified` / `format` / `format-modified` with `VENV_DIR=/tmp/ts-scratch` (ruff-less) | each prints `run make install-dev first`, **exit 2** ✅ |
| `make install-dev VENV_DIR=/tmp/ts-dev` → `ruff 0.16.3` installed | ✅ |
| `make lint` + `lint-modified` (dev venv) | `All checks passed!` ✅ |
| `make format` + `format-modified` (dev venv) | `4 files left unchanged` ✅ |
| `make start` (both venvs) | `TotalStack in-memory emulator listening on :4566` ✅ |
| `lint-modified`/`format-modified` on committed empty-diff tree | pass (ruff defaults to cwd on empty arg list) ✅ |

Edge cases covered: empty `git diff` (no crash), `start` intentionally not guard-gated (runtime mode works without ruff), venv-less absolute `VENV_DIR` paths, and committed clean tree. Committed as `f20aaf6` (+ `8dfc69a`).
{"model": "deepseek-v4-flash", "problem_class": "python-aws-emulator-docs-upstream-drift", "result": "passed", "tests": 10}
Generated from the verified corpus · MIT licensedBack to the catalog