Skip to content

sched: correctly size MAX_MBLK_PER_SLOT - #11341

Open
two-heart wants to merge 1 commit into
firedancer-io:mainfrom
two-heart:sched-entry-sizing
Open

two-heart wants to merge 1 commit into
firedancer-io:mainfrom
two-heart:sched-entry-sizing

Conversation

@two-heart

Copy link
Copy Markdown
Contributor

only relevant after very long period of skipped slots

Copilot AI balanced review requested due to automatic review settings September 8, 2026 09:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The new bound ignores the scheduler’s configurable shred limit and lacks regression coverage.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Updates the scheduler’s microblock limit to reflect maximum shred payload capacity.

Changes:

  • Derives the microblock limit from slot payload capacity.
  • Corrects the limit diagnostic comparison operator.
File summaries
File Description
src/discof/replay/fd_sched.c Updates microblock bounds and logging.
Review details

Suppressed comments (1)

src/discof/replay/fd_sched.c:25

  • Please add a scheduler regression case that declares a microblock count just above the old MAX_SKIPPED_TICKS bound but within this new bound, and a boundary case above the new bound. test_sched.c already exercises parser rejection reasons, but currently has no TOO_MANY_MICROBLOCKS coverage, so the behavior this PR is intended to fix can regress unnoticed.
  (FD_SHRED_DATA_PAYLOAD_MAX_PER_SLOT / sizeof(fd_microblock_hdr_t))
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/discof/replay/fd_sched.c Outdated
only relevant after very long period of skipped slots
Copilot AI review requested due to automatic review settings September 8, 2026 10:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The corrected boundary needs a regression test covering acceptance above the former limit and rejection above the new limit.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Balanced

Comment thread src/discof/replay/fd_sched.c
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