From 76d1677e9419133b1eeacbef2cd92d73ccf02add Mon Sep 17 00:00:00 2001 From: 0xrsydn Date: Thu, 26 Mar 2026 07:17:18 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20bump=20hermes-agent=200.3.0=20=E2=86=92?= =?UTF-8?q?=200.4.0,=20fix=20CI=20update=20script=20targeting=20wrong=20fi?= =?UTF-8?q?elds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Stable: pinVersion 0.3.0 → 0.4.0 (v2026.3.23, commit 8416bc2) - Nightly: 0.3.0-unstable-2026-03-22 → 0.4.0-unstable-2026-03-25 (commit e5691ee) - Fix update-pins.sh: target pinVersion/pinRev/pinHash instead of generic version/rev/hash which incorrectly matched fal-client fields - Add cherrypy test override for macOS Nix sandbox compatibility - No litellm: pythonRemoveDeps still strips it from wheel metadata Co-Authored-By: Claude Opus 4.6 (1M context) --- nightly.nix | 6 +++--- package.nix | 10 +++++++--- scripts/update-pins.sh | 12 ++++++------ 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/nightly.nix b/nightly.nix index f5ea44b..384990e 100644 --- a/nightly.nix +++ b/nightly.nix @@ -2,7 +2,7 @@ # Auto-updated by scripts/update-nightly.sh — do not edit manually. { pkgs }: pkgs.callPackage ./package.nix { - pinVersion = "0.3.0-unstable-2026-03-22"; - pinRev = "43bca6d107c86efc7e60a4a35ca8a55e1b4b4c1e"; - pinHash = "sha256-cd9jDrphEwjJqNLR3FNrg/xze2sFWhIzmvWLYa2CV5E="; + pinVersion = "0.4.0-unstable-2026-03-25"; + pinRev = "e5691eed38716bce6d55fa83e62d92e3c327c437"; + pinHash = "sha256-+tJLd9PSdULdm4gsoWaonRx9NrZsNiiZ0wMUOP7Adek="; } diff --git a/package.nix b/package.nix index 216ddb6..02fd246 100644 --- a/package.nix +++ b/package.nix @@ -9,9 +9,9 @@ ripgrep, ffmpeg, git, - pinVersion ? "0.3.0", - pinRev ? "6ebb816e5611aaf1f3f7187ba8b10e985e899c75", - pinHash ? "sha256-JGjusff/jGjvCCdUtl9IErBTGmpIq6BVA5Gj8mwqVYg=", + pinVersion ? "0.4.0", + pinRev ? "8416bc2142ad7494b3d72b055cd5a86a80472fe4", + pinHash ? "sha256-dKilXoJbu5thhCRpDYKTX9fAOq1JTqdBvuf9Ji1iY64=", }: let @@ -26,6 +26,10 @@ let # pytest-services fails with PermissionError in Nix sandbox (/tmp/service-locks) doCheck = false; }); + cherrypy = prev.cherrypy.overridePythonAttrs (_old: { + # cherrypy test_logging tests crash in macOS Nix sandbox (signal 0) + doCheck = false; + }); }; }; pythonPackages = python.pkgs; diff --git a/scripts/update-pins.sh b/scripts/update-pins.sh index 5aa06cc..448517c 100755 --- a/scripts/update-pins.sh +++ b/scripts/update-pins.sh @@ -46,7 +46,7 @@ fi log "Parsed version: $upstream_version" # --- Compare with current --- -current_version=$(awk -F'"' '/^ version = /{print $2}' "$package_file" | head -1) +current_version=$(awk -F'"' '/pinVersion \? "/{print $2}' "$package_file" | head -1) log "Current pinned version: $current_version" if [[ "$current_version" == "$upstream_version" ]]; then @@ -95,10 +95,10 @@ log "Computing fetchFromGitHub hash (with submodules)..." # Save original cp "$package_file" "$package_file.bak" -# Update version, rev, and set hash to empty -perl -0pi -e "s|version = \"[^\"]+\";|version = \"${upstream_version}\";|" "$package_file" -perl -0pi -e "s|rev = \"[^\"]+\";|rev = \"${tag_sha}\";|" "$package_file" -perl -0pi -e 's|hash = "sha256-[^"]+";|hash = "";|' "$package_file" +# Update pinVersion, pinRev, and set pinHash to empty +perl -0pi -e "s|pinVersion \\? \"[^\"]+\"|pinVersion \\? \"${upstream_version}\"|" "$package_file" +perl -0pi -e "s|pinRev \\? \"[^\"]+\"|pinRev \\? \"${tag_sha}\"|" "$package_file" +perl -0pi -e 's|pinHash \? "sha256-[^"]+"|pinHash \? ""|' "$package_file" # Build and capture the correct hash from the error build_log=$(mktemp) @@ -121,7 +121,7 @@ log "Source hash: $source_hash" # Update with the correct hash if [[ -n "$source_hash" ]]; then - perl -0pi -e "s|hash = \"[^\"]*\";|hash = \"${source_hash}\";|" "$package_file" + perl -0pi -e "s|pinHash \\? \"[^\"]*\"|pinHash \\? \"${source_hash}\"|" "$package_file" fi # --- Validate build ---