Skip to content

Conversation

@vdbergh
Copy link
Contributor

@vdbergh vdbergh commented Dec 10, 2025

This a small cosmetic change. It would make the error message here

https://tests.stockfishchess.org/actions?max_actions=1&action=&user=&text=fastchess&before=1765303442.779962&run_id=

look somewhat nicer.

@ppigazzini ppigazzini added enhancement worker update code changes requiring a worker update labels Dec 11, 2025
Raise worker version to 305 (also server side).
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 improves error message readability by making format_returncode() return human-readable strings ("EXIT_SUCCESS" and "EXIT_FAILURE") instead of numeric codes for common return values 0 and 1. The change is cosmetic and aimed at making error messages more understandable when displayed on the testing interface.

  • Enhanced format_returncode() to handle EXIT_SUCCESS (0) and EXIT_FAILURE (1) explicitly with named constants
  • Bumped WORKER_VERSION from 304 to 305 to track the change
  • Updated file integrity hashes in sri.txt to reflect the modified worker.py and games.py

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
worker/games.py Modified format_returncode() to return "EXIT_SUCCESS" for code 0, "EXIT_FAILURE" for code 1, and reorganized condition order for clarity
worker/worker.py Incremented WORKER_VERSION constant from 304 to 305
server/fishtest/api.py Incremented WORKER_VERSION constant from 304 to 305 to stay in sync with worker
worker/sri.txt Updated file integrity hashes for worker.py and games.py to reflect code changes

💡 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 in linux, wsl2, msys2 workers. PROD update after merging, thank you @vdbergh

@ppigazzini ppigazzini merged commit ff54a17 into official-stockfish:master Dec 11, 2025
55 of 59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement worker update code changes requiring a worker update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants