Repository navigation
os: the gguf row says which of its three situations it is in - #596
Merged
Merged
Conversation
On candidate 10's first hardware run the row reported
SKIP gguf : no /data/models/*.gguf on the data partition
while `ls /data/models/*.gguf` found the file. The row had never looked at the data partition: it took its
else branch because $MODELS was empty, and $MODELS is filled from Lemonade's model list, which had come
back 401 because the conf carried two LEMONADE_API_KEY lines and the check read the first (stale) one
while lemond honours the last. So a missing model list was reported as a missing file, and the reader
went looking at the partition instead of at the key.
Same shape as the other rows that misled on this boot: one message covering conditions with different
causes. Split into three:
no *.gguf on /data -> skip "no /data/models/*.gguf on the data partition"
a *.gguf but Lemonade listed no models -> skip "<name>.gguf is on the data partition, but Lemonade
listed no models, so it cannot be checked (see the lemonade row)"
listed / not listed -> pass / fail as before
self-test PASS, bash -n clean.
Not in this PR: the key read itself. release-check.sh:130 takes the FIRST '^LEMONADE_API_KEY=' line with
head -1, while a shell sourcing that file honours the LAST one, so a conf with two keys makes the check
test a key lemond is not using. Reading the key from the running process (/proc/<pid>/environ) removes
the ambiguity; `tail -1` would only make the guess match shell semantics.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Candidate 10's first hardware run reported:
while
ls /data/models/*.gguffound the file. The row never looked at the partition. It took itselsebranch because
$MODELSwas empty — and$MODELSis filled from Lemonade's model list, which had come back401 because
/data/lemonade/lemond.confcarried twoLEMONADE_API_KEY=lines: the check read the first(stale) one with
head -1, while a shell sourcing that file honours the last.So a missing model list was reported as a missing file, and whoever read it went looking at the data partition
instead of at the key.
Fix: the three situations get their own row text.
*.ggufon/dataSKIP no /data/models/*.gguf on the data partition*.gguf, but Lemonade listed no modelsSKIP '<name>.gguf' is on the data partition, but Lemonade listed no models, so it cannot be checked (see the lemonade row)PASS/FAILas before--self-testPASS,bash -nclean.Not in this PR — the key read itself
release-check.sh:130takes the first^LEMONADE_API_KEY=line; a shell honours the last. Reading the key fromthe running process (
/proc/<pid>/environ) removes the ambiguity entirely;tail -1would only make the guessmatch shell semantics. Left to the key-handling change so the two do not collide on the same line.