Skip to content

Commit 100c8a6

Browse files
mstrathmanclaude
andcommitted
test(onnx): rename soak's 'auto' model id (collides with the bundled meta-model)
Phase-1 registered `auto` as a bundled meta-model; soak_onnx.c reused `auto` as a test model id, so predict_register('auto', ...) failed with MODEL_EXISTS and the onnx ASan+LSan soak exited 2 (CI has been red since beea190). Rename it to `bare` (it exercises the bare-path introspection registration). Test-only; the shipped extension is unaffected. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 1e35fe9 commit 100c8a6

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎tests/soak_onnx.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,19 @@ int main(int argc, char **argv) {
5151
"'kind','probs','labels',json_array('0','1')))))",
5252
argv[2]);
5353
/* bare-path registration exercises the introspection + positional path */
54-
char *regauto = sqlite3_mprintf(
55-
"SELECT predict_register('auto', %Q)", argv[1]);
56-
if (run(db, reg, 1) || run(db, regic, 1) || run(db, regauto, 1)) {
54+
char *regbare = sqlite3_mprintf(
55+
"SELECT predict_register('bare', %Q)", argv[1]);
56+
if (run(db, reg, 1) || run(db, regic, 1) || run(db, regbare, 1)) {
5757
fprintf(stderr, "register failed\n");
5858
sqlite3_free(reg);
5959
sqlite3_free(regic);
60-
sqlite3_free(regauto);
60+
sqlite3_free(regbare);
6161
sqlite3_close(db);
6262
return 1;
6363
}
6464
sqlite3_free(reg);
6565
sqlite3_free(regic);
66-
sqlite3_free(regauto);
66+
sqlite3_free(regbare);
6767

6868
/* two-head sequence core: exercises the reconstruction path (two runs,
6969
* flip-invariance, continuous head, crossing repair, instance denorm) and
@@ -137,7 +137,7 @@ int main(int argc, char **argv) {
137137
"json_object('model','clf','receipt',0))", 1);
138138
/* introspected model + positional features */
139139
run(db, "SELECT * FROM predict(NULL,'SELECT id, f1, f2 FROM apply',"
140-
"json_object('model','auto','receipt',0))", 1);
140+
"json_object('model','bare','receipt',0))", 1);
141141
/* in_context: success (train context + 1501-row query, multi-batch) */
142142
run(db, "SELECT * FROM predict('SELECT f1, f2, label FROM tr',"
143143
"'SELECT id, f1, f2 FROM apply',json_object('model','knn1'))", 1);

0 commit comments

Comments
 (0)