Skip to content

Conversation

@FauziAkram
Copy link
Contributor

Default LTC SPSA throughput to 50%

This pull request updates the "Create New Test" page to automatically set the default Throughput to 50% when a user selects the LTC (Long Time Control) test type in combination with the SPSA.

Motivation:
The current standard practice within the Stockfish community for SPSA tuning tests at LTC, is to run them at 50% throughput. Developers currently have to remember to manually change this setting from the 100% default every time they launch a new LTC SPSA test.
This change automates that step, aligning Fishtest's default behavior with community best practices and improving the user experience for developers.

@ppigazzini ppigazzini added enhancement server server side changes labels Oct 30, 2025
@ppigazzini ppigazzini requested a review from Copilot October 30, 2025 09:10
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds automatic throughput adjustment for LTC SPSA tests. When a user selects an LTC test type with SPSA stopping rule, the throughput is automatically set to 50%. When switching away from SPSA, the throughput is restored to the LTC default of 100%.

Key changes:

  • Added handleLtcSpsaThroughput() function to manage throughput based on test type and stop rule combination
  • Integrated the function into test type and stop rule change event handlers

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Collaborator

@ppigazzini ppigazzini left a comment

Choose a reason for hiding this comment

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

Looks good on DEV, thank you @FauziAkram

@ppigazzini ppigazzini merged commit b5185b4 into official-stockfish:master Nov 5, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement server server side changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants