Skip to content

Cloud eval preparation#1467

Merged
veloce merged 4 commits intolichess-org:mainfrom
julien4215:cloud-eval-progress
Feb 26, 2025
Merged

Cloud eval preparation#1467
veloce merged 4 commits intolichess-org:mainfrom
julien4215:cloud-eval-progress

Conversation

@julien4215
Copy link
Copy Markdown
Collaborator

@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
@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
@veloce
Copy link
Copy Markdown
Contributor

veloce commented Feb 21, 2025

This is tricky. Will review this thoroughly next week.

@veloce
Copy link
Copy Markdown
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.

- 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
Copy link
Copy Markdown
Contributor

@veloce veloce left a comment

Choose a reason for hiding this comment

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

Just one little change and it's good.

received as we want to update the eval in the move list
@veloce veloce merged commit 8eab6bd into lichess-org:main Feb 26, 2025
1 check passed
@julien4215 julien4215 deleted the cloud-eval-progress branch February 27, 2025 14:22
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