diff mrjunejune/test/inference_stack_config_test.sh @ 271:13d61401c57d

redirect Copilot cache to service state Set XDG_CACHE_HOME from the configured inference state so the systemd service can extract Copilot outside its protected home directory. Co-authored-by: Copilot <[email protected]>
author MrJuneJune <me@mrjunejune.com>
date Fri, 07 Aug 2026 13:24:05 -0700
parents 056790c4fb0d
children
line wrap: on
line diff
--- a/mrjunejune/test/inference_stack_config_test.sh	Fri Aug 07 13:16:47 2026 -0700
+++ b/mrjunejune/test/inference_stack_config_test.sh	Fri Aug 07 13:24:05 2026 -0700
@@ -15,6 +15,7 @@
 AUTH_BOOTSTRAP_PASSWORD_HASH=zenbu-scrypt\$v=1\$N=32768\$r=8\$p=1\$salt\$hash
 LITELLM_MASTER_KEY=sk-test-only-value
 GITHUB_COPILOT_TOKEN_DIR=$root/token-dir
+MRJUNEJUNE_INFERENCE_STATE=$root
 MRJUNEJUNE_ALLOW_GUEST_INFERENCE=true
 SERVER_HOST=127.0.0.1
 EOF
@@ -36,6 +37,7 @@
 grep -q "config=$root/mrjunejune/.config" <<<"$output"
 grep -q '^litellm_master_key=set$' <<<"$output"
 grep -q "copilot_token_dir=$root/token-dir" <<<"$output"
+grep -q "copilot_cache_dir=$root/cache" <<<"$output"
 grep -q '^guest_inference=true$' <<<"$output"
 if grep -q 'sk-test-only-value' <<<"$output"; then
   echo "Config check leaked the LiteLLM master key" >&2