Rodent IV on macOS: its home is its own folder, so it offers its personalities
Some checks failed
Rodent IV / build (rodent-iv-macos-arm64, macos-14) (push) Has been cancelled
Rodent IV / build (rodent-iv-windows-x86_64.exe, windows-latest) (push) Has been cancelled
Rodent IV / publish (push) Has been cancelled
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Rodent IV / build (rodent-iv-linux-x86_64, ubuntu-22.04) (push) Failing after 1s
Some checks failed
Rodent IV / build (rodent-iv-macos-arm64, macos-14) (push) Has been cancelled
Rodent IV / build (rodent-iv-windows-x86_64.exe, windows-latest) (push) Has been cancelled
Rodent IV / publish (push) Has been cancelled
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Rodent IV / build (rodent-iv-linux-x86_64, ubuntu-22.04) (push) Failing after 1s
On macOS the authors left the engine's home folder unset (a comment where _NSGetExecutablePath should be). With an empty home every folder was taken relative to the one it changed into last: reading basic.ini it went into personalities/ and found none of the personality files, so the Personality option was not offered and ChessPenguin's «Personality = Tal» was refused — «Rodent did not start». home-dir.patch now takes the executable's folder there too, as on Linux and Windows. Reproduced on Linux with the home left empty and checked with _NSGetExecutablePath shimmed: the play crate's Rodent IV game fails before and passes after. The workflow now checks that the engine, in a folder with a space and started from elsewhere, offers «Tal». Tasks: the Android screenshots done; two copies of the program put off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
12e4c7d5e9
commit
f8a2c6ffa3
3 changed files with 54 additions and 6 deletions
13
.github/workflows/rodent-iv.yml
vendored
13
.github/workflows/rodent-iv.yml
vendored
|
|
@ -40,7 +40,8 @@ jobs:
|
|||
- name: Sources at the pinned commit, with our two fixes
|
||||
shell: bash
|
||||
# packaging/rodent-iv/home-dir.patch: on Linux the engine now and then took a
|
||||
# wrong home folder and played without its personality and books.
|
||||
# wrong home folder and played without its personality and books; on macOS it
|
||||
# had none, found no personality and did not offer the Personality option.
|
||||
# packaging/rodent-iv/think-thread.patch: the search thread read its parameter
|
||||
# after it was gone; clang builds (macOS) searched garbage out of the book.
|
||||
run: |
|
||||
|
|
@ -81,6 +82,14 @@ jobs:
|
|||
echo "bestmove: $best"
|
||||
legal=" a2a3 a2a4 b2b3 b2b4 c2c3 c2c4 d2d3 d2d4 e2e3 e2e4 f2f3 f2f4 g2g3 g2g4 h2h3 h2h4 b1a3 b1c3 g1f3 g1h3 "
|
||||
[[ -n "$best" && "$legal" == *" $best "* ]]
|
||||
- name: It offers its personalities (its own folder, a space in it; started elsewhere)
|
||||
shell: bash
|
||||
# As ChessPenguin runs it: on macOS from ~/Library/Application Support/….
|
||||
run: |
|
||||
home="$PWD/engine home"
|
||||
mkdir -p "$home" && cp "./${{ matrix.name }}" "$home/" && cp -r src/personalities "$home/"
|
||||
out=$(cd "$RUNNER_TEMP" && printf 'uci\nquit\n' | "$home/${{ matrix.name }}")
|
||||
printf '%s\n' "$out" | grep '^option name Personality ' | grep -Eq ' var Tal( |$)'
|
||||
- uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: ${{ matrix.name }}
|
||||
|
|
@ -102,7 +111,7 @@ jobs:
|
|||
Rodent IV 0.33 by Paweł Koziol and Bernhard C. Maerz (GPL-3.0), built from the
|
||||
authors' sources at https://github.com/nescitus/rodent-iv/tree/${COMMIT}
|
||||
with two fixes (packaging/rodent-iv/home-dir.patch and think-thread.patch in
|
||||
ChessPenguin's repository: the engine's home folder on Linux; the search
|
||||
ChessPenguin's repository: the engine's home folder on Linux and macOS; the search
|
||||
thread's parameter, which clang builds read after it was gone) for
|
||||
ChessPenguin, which downloads it on request. Not a ChessPenguin release.
|
||||
EOF
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue