Skip to content

Conversation

FelipeGdM
Copy link
Contributor

This PR alters the match scheduling logic

Now, the algorithm schedules all matches for each stage in sequence (i.e. all matches from stage A, then all matches from stage B). Matches from stage items inside a single stage are interleaved.

To guarantee that the correct order is followed, rounds are sorted according to their id. Lower round id are scheduled first.

Fix #1312

Copy link

vercel bot commented Aug 5, 2025

@FelipeGdM is attempting to deploy a commit to the evroon's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Owner

@evroon evroon left a comment

Choose a reason for hiding this comment

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

Thanks, it looks good I think, apart from one small suggestion

Comment on lines 65 to 66
stage_start_time = time_last_match_from_previous_stage
stage_position_in_schedule = position_last_match_from_previous_stage
Copy link
Owner

Choose a reason for hiding this comment

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

These two lines are unnecessary right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right, they are redundant with lines 38-39

Copy link

vercel bot commented Aug 7, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
bracket ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 7, 2025 2:08pm

@FelipeGdM
Copy link
Contributor Author

Thank you for your quick review @evroon!

I fixed the code following your suggestion

@evroon evroon enabled auto-merge (squash) August 7, 2025 14:06
@evroon
Copy link
Owner

evroon commented Aug 7, 2025

Thanks!

Copy link

codecov bot commented Aug 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.94%. Comparing base (06d4179) to head (12aec5c).
⚠️ Report is 20 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1314      +/-   ##
==========================================
+ Coverage   94.62%   94.94%   +0.32%     
==========================================
  Files         118      118              
  Lines        4351     4335      -16     
==========================================
- Hits         4117     4116       -1     
+ Misses        234      219      -15     

☔ 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.

@evroon
Copy link
Owner

evroon commented Aug 7, 2025

Oh could you run Ruff?

@FelipeGdM
Copy link
Contributor Author

No problem!

auto-merge was automatically disabled August 7, 2025 17:47

Head branch was pushed to by a user without write access

@evroon evroon enabled auto-merge (squash) August 7, 2025 18:16
@evroon evroon merged commit 60f5f0c into evroon:master Aug 7, 2025
5 of 6 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.

Match assignment in single elimination
2 participants