Skip to content

Fix Python Suite Runner to preserve add_script insertion order#2885

Merged
jmthomas merged 2 commits intomainfrom
py_suite_order
Feb 27, 2026
Merged

Fix Python Suite Runner to preserve add_script insertion order#2885
jmthomas merged 2 commits intomainfrom
py_suite_order

Conversation

@jmthomas
Copy link
Copy Markdown
Member

The Python build_suites method was using set() + sort() to deduplicate scripts, which forced alphabetical ordering. Ruby's Array#uniq! preserves insertion order. Replaced with dict.fromkeys() to match Ruby behavior.

Added tests for both Ruby and Python to verify script ordering.

The Python build_suites method was using set() + sort() to deduplicate
scripts, which forced alphabetical ordering. Ruby's Array#uniq! preserves
insertion order. Replaced with dict.fromkeys() to match Ruby behavior.

Added tests for both Ruby and Python to verify script ordering.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Copy link
Copy Markdown
Contributor

@mcosgriff mcosgriff left a comment

Choose a reason for hiding this comment

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

There are 4 sonarqube findings

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.30%. Comparing base (6aac97e) to head (af9bb53).
⚠️ Report is 17 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2885      +/-   ##
==========================================
- Coverage   78.84%   78.30%   -0.54%     
==========================================
  Files         667      673       +6     
  Lines       54527    55118     +591     
  Branches      728      728              
==========================================
+ Hits        42990    43162     +172     
- Misses      11459    11878     +419     
  Partials       78       78              
Flag Coverage Δ
python 79.37% <ø> (-1.49%) ⬇️
ruby-api 80.24% <ø> (-0.05%) ⬇️
ruby-backend 82.16% <ø> (+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.

@sonarqubecloud
Copy link
Copy Markdown

@jmthomas jmthomas merged commit 19e909e into main Feb 27, 2026
31 of 32 checks passed
@jmthomas jmthomas deleted the py_suite_order branch February 27, 2026 02:45
jmthomas added a commit that referenced this pull request Mar 21, 2026
Fix Python Suite Runner to preserve add_script insertion order
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