Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloud eval preparation #1467

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

julien4215
Copy link
Contributor

@julien4215 julien4215 commented Feb 20, 2025

Prepare cloud eval implementation :

  • add websocket eval events in BroadcastAnalysisController
  • use ClientEval type instead of LocalEval in AnalysisCurrentNode and engine widgets
  • add doc comments and necessary properties to ClientEval
  • edit engine depth widget to display a cloud icon when it is a cloud eval (see screenshot below)

@julien4215 julien4215 marked this pull request as draft February 20, 2025 13:19
transitionDuration: Duration.zero,
popoverTransitionBuilder: (_, child) => child,
);
if (eval is LocalEval) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think we should also display a popover when it is a cloud eval but I didn't find a good way to do it.

@julien4215 julien4215 marked this pull request as ready for review February 20, 2025 13:32
@julien4215 julien4215 marked this pull request as draft February 20, 2025 13:32
@julien4215 julien4215 marked this pull request as ready for review February 20, 2025 13:32
- add websocket eval events in BroadcastAnalysisController
- use ClientEval type instead of LocalEval in AnalysisCurrentNode and engine widgets
- add doc comments and necessary properties to ClientEval
- edit engine depth widget to display a cloud icon when it is a cloud eval
@veloce
Copy link
Contributor

veloce commented Feb 21, 2025

This is tricky. Will review this thoroughly next week.

@veloce
Copy link
Contributor

veloce commented Feb 21, 2025

Also this code is already complex, and with cloud eval will become even more. We need to add tests.
Thing is we need a mock of stockfish that we don't have right now. I'll try to implement a stockfish mock and then we can start adding tests. Mocking cloud evals will be easy after that.

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