Skip to content

Improve reliability, scoring transparency, and query classification#1

Merged
rapdev-turner merged 3 commits intomainfrom
fix/reliability-scoring-query-analysis
Mar 19, 2026
Merged

Improve reliability, scoring transparency, and query classification#1
rapdev-turner merged 3 commits intomainfrom
fix/reliability-scoring-query-analysis

Conversation

@rapdev-turner
Copy link
Copy Markdown
Collaborator

  • io.py: wrap file operations with IoError for missing files, corrupt JSON, and OS failures
  • api_clients.py: add 3-attempt retry with exponential backoff and Retry-After parsing for 429 rate limits
  • recommendations.py: replace magic numbers with named constants with inline rationale comments
  • heuristics.py: extract COMPLEXITY_BLOCKER_THRESHOLD as a named constant
  • compare.py: name title similarity thresholds with explanatory comments
  • normalize.py: fix query_family() to strip comments before classifying and use word-boundary regex; distinguish Datadog DDSQL from Dynatrace USQL so Datadog-native SQL is not flagged for translation
  • terraform_planner.py: treat ddsql as validate_and_apply; use query family aware placeholders; mark DQL/USQL gaps with TRANSLATE prefix
  • tests: add DDSQL vs USQL classification coverage

- io.py: wrap file operations with IoError for missing files, corrupt
  JSON, and OS failures
- api_clients.py: add 3-attempt retry with exponential backoff and
  Retry-After parsing for 429 rate limits
- recommendations.py: replace magic numbers with named constants with
  inline rationale comments
- heuristics.py: extract COMPLEXITY_BLOCKER_THRESHOLD as a named constant
- compare.py: name title similarity thresholds with explanatory comments
- normalize.py: fix query_family() to strip comments before classifying
  and use word-boundary regex; distinguish Datadog DDSQL from Dynatrace
  USQL so Datadog-native SQL is not flagged for translation
- terraform_planner.py: treat ddsql as validate_and_apply; use query
  family aware placeholders; mark DQL/USQL gaps with TRANSLATE prefix
- tests: add DDSQL vs USQL classification coverage
- api_clients.py: B310 urlopen targets env-configured API endpoints only
- deployment.py: B404/B603 subprocess calls are intentional Terraform invocations
- api_clients.py: fix 429 retry to respect MAX_RETRIES on final attempt
  and raise RateLimitError instead of generic ApiClientError; remove
  unused _is_retryable() function
- terraform_planner.py: collapse _placeholder_query branches where both
  definition_type arms returned identical strings; merge dynatrace_dql
  and sql_like into a single branch
@rapdev-turner rapdev-turner merged commit ceb2939 into main Mar 19, 2026
8 checks passed
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