revert the ladder-profile deploy test files swept into the merge (they wait for the ladder A/B; patch kept)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Pavlo Ratushnyi
2026-11-09 23:18:02 +01:00
co-authored by Claude Sonnet 5.5
parent a4a8d597fe
commit fa21dfd34d
2 changed files with 3 additions and 14 deletions
-9
View File
@@ -259,15 +259,6 @@ fn tokens_are_printable_distinct_and_long_enough() {
assert!((32..=4096).contains(&a.len()) && a.bytes().all(|c| (0x21..=0x7e).contains(&c)));
}
#[test]
fn the_prompt_loan_ladder_is_on_for_the_5090_profiles_and_not_for_the_laptop() {
let key = "LELEKA_PREFILL_LOAN_TIERS";
for name in ["rtx5090-32g", "rtx5090-32g-file", "rtx5090-32g-gguf-ple"] {
assert_eq!(config(name).engine_environment().get(key).map(String::as_str), Some("1"), "{name}");
}
assert!(!config("rtx3080-16g").engine_environment().contains_key(key));
}
#[test]
fn the_server_profile_switches_reach_the_engine_environment_through_the_saved_config() {
// `up` saves the RunConfig (profile.engine_env inside) as leleka.json; `run` loads it and `start_engine` hands
+3 -5
View File
@@ -111,8 +111,8 @@ impl Profile {
for (key, value) in &self.engine_env {
if !engine_env_key_ok(key) {
return Err(format!(
"engine_env key {key} must be an upper-case LELEKA_ORIGINAL_SERVE_*, LELEKA_SM120_*, \
LELEKA_PLE_* or LELEKA_PREFILL_* name (or LELEKA_CHAIN)"
"engine_env key {key} must be an upper-case LELEKA_ORIGINAL_SERVE_*, LELEKA_SM120_* or \
LELEKA_PLE_* name (or LELEKA_CHAIN)"
));
}
if value.is_empty() || value.len() > 1024 || value.chars().any(char::is_control) {
@@ -127,13 +127,11 @@ impl Profile {
/// LELEKA_CHAIN selects the chain-kernel group (docs/chain-kernels.md), LELEKA_SM120_* the compute-capability-12
/// kernel switches (docs/experiments/draft-round-5090.md), LELEKA_PLE_* the GGUF PLE row reader
/// (`kar_source: none`), LELEKA_PREFILL_* the prompt-prefill switches (the loan ladder, docs/prefill-throughput.md);
/// every other switch is a serve-stack one.
/// (`kar_source: none`); every other switch is a serve-stack one.
fn engine_env_key_ok(key: &str) -> bool {
let known = key.starts_with("LELEKA_ORIGINAL_SERVE_")
|| key.starts_with("LELEKA_SM120_")
|| key.starts_with("LELEKA_PLE_")
|| key.starts_with("LELEKA_PREFILL_")
|| key == "LELEKA_CHAIN";
known
&& key