Skip to content

Fix mnemonic checker crashes and false positives#2788

Merged
jmthomas merged 2 commits intomainfrom
bug/mnemonic-check
Feb 6, 2026
Merged

Fix mnemonic checker crashes and false positives#2788
jmthomas merged 2 commits intomainfrom
bug/mnemonic-check

Conversation

@jmthomas
Copy link
Copy Markdown
Member

@jmthomas jmthomas commented Feb 4, 2026

  • Fix undefined error when regex matches space-based syntax (use Group 2 instead of last group which can be undefined)
  • Strip trailing comments before checking for keywords to prevent matching keywords like 'wait' in comments
  • Extract only content within quoted strings for space-based command syntax to avoid including Ruby/Python keyword arguments (queue:, queue=) as command parameters

closes #2787

- Fix undefined error when regex matches space-based syntax (use Group 2
  instead of last group which can be undefined)
- Strip trailing comments before checking for keywords to prevent
  matching keywords like 'wait' in comments
- Extract only content within quoted strings for space-based command
  syntax to avoid including Ruby/Python keyword arguments (queue:, queue=)
  as command parameters

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.72%. Comparing base (7038a7d) to head (04a290a).
⚠️ Report is 22 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2788      +/-   ##
==========================================
+ Coverage   78.71%   78.72%   +0.01%     
==========================================
  Files         671      671              
  Lines       54809    54823      +14     
  Branches      731      731              
==========================================
+ Hits        43143    43160      +17     
+ Misses      11586    11583       -3     
  Partials       80       80              
Flag Coverage Δ
python 80.36% <ø> (+0.02%) ⬆️
ruby-api 82.68% <ø> (ø)
ruby-backend 81.83% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jmthomas jmthomas merged commit b312260 into main Feb 6, 2026
21 of 22 checks passed
@jmthomas jmthomas deleted the bug/mnemonic-check branch February 6, 2026 22:20
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Feb 6, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
1 New issue

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

jmthomas added a commit that referenced this pull request Mar 21, 2026
Fix mnemonic checker crashes and false positives
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.

Mnemonic Check Bug with wait_check_tolerance

2 participants