Skip to content

feat: debugger support for consumers, local metrics support, bugbear#7818

Merged
kylemumma merged 1 commit intomasterfrom
krm/debugger
Mar 20, 2026
Merged

feat: debugger support for consumers, local metrics support, bugbear#7818
kylemumma merged 1 commit intomasterfrom
krm/debugger

Conversation

@kylemumma
Copy link
Copy Markdown
Member

  • debugger support for rust consumers: launch.json
  • add support for viewing statsd metrics (datadog) locally for debugging: .envrc, rust-envvars, Makefile
  • update workspace extensions
  • enabled bugbear warnings in vscode (wont block pre-commit). this is a bit stricter linting rules that catch common bad-practices that lead to bugs. We meant to have it enabled all along but it wasnt due to technical bug. Now the warning will appear in vscode, but if u want u can ignore it and it wont block the commit: settings.json

Comment thread .vscode/settings.json
"editor.formatOnSave": true
},

"python.defaultInterpreterPath": ".venv/bin/python",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont need it, was causing warnings in vscode, it defaults to python

@kylemumma kylemumma marked this pull request as ready for review March 16, 2026 05:22
@kylemumma kylemumma requested a review from a team as a code owner March 16, 2026 05:22
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

Bugbot Autofix prepared fixes for both issues found in the latest run.

  • ✅ Fixed: Removing E712 ignore causes latent CI failures
    • I restored E712 to the Ruff ignore list so existing boolean-comparison patterns no longer trigger unrelated CI failures on touched files.
  • ✅ Fixed: Duplicate DOGSTATSD_HOST export in sourced files
    • I removed the redundant DOGSTATSD_HOST export from .envrc and kept the single source of truth in scripts/rust-envvars.

Create PR

Or push these changes by commenting:

@cursor push 6bd4aa8880
Preview (6bd4aa8880)
diff --git a/.envrc b/.envrc
--- a/.envrc
+++ b/.envrc
@@ -26,5 +26,3 @@
 PATH_add "${PWD}/.venv/bin"
 
 . scripts/rust-envvars
-
-export DOGSTATSD_HOST='localhost'

diff --git a/pyproject.toml b/pyproject.toml
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -115,6 +115,7 @@
 ignore = [
     "E501", # line too long (handled by formatter)
     "E402", # module level import not at top of file
+    "E712", # comparisons to True/False are common in tests
 ]
 
 [tool.mypy]

This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.

Comment thread pyproject.toml
]
ignore = [
"E203", # whitespace before ':'
"E266", # too many leading '#' for block comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing E712 ignore causes latent CI failures

Medium Severity

Removing E712 (comparison to True/False) from the ruff ignore list without fixing existing violations creates latent CI failures. There are existing == True / == False comparisons in snuba/query/processors/physical/clickhouse_settings_override.py, snuba/query/allocation_policies/__init__.py, and several test files. Since E712's auto-fix is marked "unsafe", ruff check --fix in pre-commit won't correct them — any future PR touching those files will fail CI unexpectedly.

Fix in Cursor Fix in Web

Comment thread .envrc

. scripts/rust-envvars

export DOGSTATSD_HOST='localhost'
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate DOGSTATSD_HOST export in sourced files

Low Severity

DOGSTATSD_HOST='localhost' is exported in both .envrc (line 30) and scripts/rust-envvars (line 31). Since .envrc sources scripts/rust-envvars on line 28, the export in .envrc is redundant. Having the same value defined in two places risks them silently diverging if only one is updated in the future.

Additional Locations (1)
Fix in Cursor Fix in Web

@kylemumma kylemumma merged commit 01c8ff6 into master Mar 20, 2026
44 checks passed
@kylemumma kylemumma deleted the krm/debugger branch March 20, 2026 21:03
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.

2 participants