Skip to content

Commit adeac9a

Browse files
fix substitution in bug-hunt slash command
1 parent f5d2b1e commit adeac9a

5 files changed

Lines changed: 18 additions & 18 deletions

File tree

.claude/commands/bug-hunt.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ $ARGUMENTS - The library name, optionally followed by focus context.
1212
- `/bug-hunt redis focus on pub sub interactions` — prioritize pub/sub patterns
1313
- `/bug-hunt psycopg2 focus on async cursors and connection pooling` — prioritize those areas
1414

15-
**Parsing**: The first word is always the library name. Everything after it is the optional focus context.
15+
**Parsing**: The first word of `$ARGUMENTS` is always the library name. Everything after it is the optional focus context. All references to `<library>` below mean this parsed first word — NOT the raw `$ARGUMENTS` string.
1616

1717
## Library-to-GitHub-Repo Mapping
1818

@@ -185,11 +185,11 @@ Produce a prioritized list of potential bugs to investigate.
185185
Create `BUG_TRACKING.md` in the e2e test directory:
186186

187187
```bash
188-
# Path: drift/instrumentation/$ARGUMENTS/e2e-tests/BUG_TRACKING.md
188+
# Path: drift/instrumentation/<library>/e2e-tests/BUG_TRACKING.md
189189
```
190190

191191
```markdown
192-
# $ARGUMENTS Instrumentation Bug Tracking
192+
# <library> Instrumentation Bug Tracking
193193

194194
Generated: <current date and time>
195195

@@ -218,7 +218,7 @@ For each potential bug, follow this workflow:
218218
Navigate to the e2e test directory:
219219

220220
```bash
221-
cd drift/instrumentation/$ARGUMENTS/e2e-tests/
221+
cd drift/instrumentation/<library>/e2e-tests/
222222
```
223223

224224
Build and start Docker containers:
@@ -426,14 +426,14 @@ rm -rf /tmp/*-source
426426
Commit the changes:
427427

428428
```bash
429-
git add drift/instrumentation/$ARGUMENTS/e2e-tests/
430-
git commit -m "bug-hunt($ARGUMENTS): add e2e tests exposing instrumentation bugs"
429+
git add drift/instrumentation/<library>/e2e-tests/
430+
git commit -m "bug-hunt(<library>): add e2e tests exposing instrumentation bugs"
431431
```
432432

433433
Push the branch (skip if in Claude Code Web where the session handles this):
434434

435435
```bash
436-
git push origin bug-hunt/$ARGUMENTS-$(date +%Y-%m-%d)
436+
git push origin bug-hunt/<library>-$(date +%Y-%m-%d)
437437
```
438438

439439
---

docs/environment-variables.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The `TUSK_DRIFT_MODE` environment variable controls how the SDK operates in your
1111
| Mode | Description | When to Use |
1212
| ---------- | ---------------------------------------------------- | -------------------------------------------------------------------------------------------- |
1313
| `RECORD` | Records traces for all instrumented operations | Set this in environments where you want to capture API traces (e.g., staging, production) |
14-
| `REPLAY` | Replays previously recorded traces | Automatically set by the Tusk CLI when running `tusk run` - you should NOT set this manually |
14+
| `REPLAY` | Replays previously recorded traces | Automatically set by the Tusk CLI when running `tusk drift run` - you should NOT set this manually |
1515
| `DISABLED` | Disables all instrumentation and recording | Use when you want to completely disable Tusk with no performance impact |
1616
| Unset | Same as `DISABLED` - no instrumentation or recording | Default state when the variable is not set |
1717

@@ -25,7 +25,7 @@ The `TUSK_DRIFT_MODE` environment variable controls how the SDK operates in your
2525

2626
**Replaying Traces:**
2727

28-
- `TUSK_DRIFT_MODE` is automatically set to `REPLAY` by the Tusk CLI when you run `tusk run`
28+
- `TUSK_DRIFT_MODE` is automatically set to `REPLAY` by the Tusk CLI when you run `tusk drift run`
2929
- **Do NOT** manually set `TUSK_DRIFT_MODE=REPLAY` in your application startup commands
3030
- The start command specified in your `.tusk/config.yaml` should NOT cause `TUSK_DRIFT_MODE` to be set to anything - the CLI handles this automatically
3131

@@ -61,7 +61,7 @@ start_command: "python app.py" # Do NOT include TUSK_DRIFT_MODE here
6161
6262
```bash
6363
# The CLI automatically sets TUSK_DRIFT_MODE=REPLAY
64-
tusk run
64+
tusk drift run
6565
```
6666

6767
**Disabling Tusk:**
@@ -99,7 +99,7 @@ Your Tusk Drift API key, required when using Tusk Cloud for storing and managing
9999
- Can be set as an environment variable:
100100

101101
```bash
102-
TUSK_API_KEY=your-api-key-here tusk run
102+
TUSK_API_KEY=your-api-key-here tusk drift run
103103
```
104104

105105
- Or use the Tusk CLI login command (recommended):

docs/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Need to install the Tusk CLI? See [CLI installation guide](https://github.com/Us
5656
Replay the recorded test:
5757

5858
```bash
59-
tusk run
59+
tusk drift run
6060
```
6161

6262
You should see an output similar to:

drift/instrumentation/README-e2e-tests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ The e2e tests follow a **Docker entrypoint-driven architecture** where the Pytho
184184
│ - Stop app, verify traces created │
185185
│ │
186186
│ Phase 3: Run Tests │
187-
│ - Execute `tusk run` CLI
187+
│ - Execute `tusk drift run` CLI │
188188
│ - Parse JSON test results │
189189
│ │
190190
│ Phase 4: Check Instrumentation Warnings│

drift/instrumentation/e2e_common/base_runner.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -296,12 +296,12 @@ def run_tests(self):
296296
check=False,
297297
)
298298

299-
# Debug: show what tusk run returned
300-
self.log(f"tusk run exit code: {result.returncode}", Colors.YELLOW)
299+
# Debug: show what tusk drift run returned
300+
self.log(f"tusk drift run exit code: {result.returncode}", Colors.YELLOW)
301301
if result.stdout:
302-
self.log(f"tusk run stdout:\n{result.stdout}", Colors.YELLOW)
302+
self.log(f"tusk drift run stdout:\n{result.stdout}", Colors.YELLOW)
303303
if result.stderr:
304-
self.log(f"tusk run stderr:\n{result.stderr}", Colors.YELLOW)
304+
self.log(f"tusk drift run stderr:\n{result.stderr}", Colors.YELLOW)
305305

306306
# Parse JSON results
307307
self.parse_test_results(result.stdout)
@@ -429,7 +429,7 @@ def check_socket_instrumentation_warnings(self):
429429
else:
430430
self.log("✓ No socket instrumentation warnings found.", Colors.GREEN)
431431

432-
# Verify trace files exist (double-check after tusk run)
432+
# Verify trace files exist (double-check after tusk drift run)
433433
trace_files = list(traces_dir.glob("*.jsonl")) if traces_dir.exists() else []
434434
if trace_files:
435435
self.log(f"✓ Found {len(trace_files)} trace file(s).", Colors.GREEN)

0 commit comments

Comments
 (0)