From 314d82b60f81df59e78618916cb79b6a6eb7f2f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Tejero=20Cantero?= Date: Sun, 4 Oct 2026 00:35:36 +0200 Subject: [PATCH] :recycle: Keep the ingest allocator test the parity suite carried develop added ingest-on-connection-requires-allocator to graph_sync_parity_test.clj, beside the round trip it shares no fixture with. This branch retires that file with app.graph.sync, while app.graph.ingest stays as the batch-export tier, so the test moves to a namespace of its own rather than leaving with the suite. AI-assisted-by: claude-opus-5-5 --- .../test/backend_tests/graph_ingest_test.clj | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 backend/test/backend_tests/graph_ingest_test.clj diff --git a/backend/test/backend_tests/graph_ingest_test.clj b/backend/test/backend_tests/graph_ingest_test.clj new file mode 100644 index 0000000000..6c1dd732d3 --- /dev/null +++ b/backend/test/backend_tests/graph_ingest_test.clj @@ -0,0 +1,22 @@ +;; This Source Code Form is subject to the terms of the Mozilla Public +;; License, v. 2.0. If a copy of the MPL was not distributed with this +;; file, You can obtain one at http://mozilla.org/MPL/2.0/. +;; +;; Copyright (c) KALEIDOS SUBSIDIARY SL + +(ns backend-tests.graph-ingest-test + "The batch-export tier, `app.graph.ingest`, which survives the retirement of + the Ladybug session sync." + (:require + [app.common.uuid :as uuid] + [app.graph.ingest :as ingest] + [clojure.test :as t])) + +(t/deftest ingest-on-connection-requires-allocator + ;; The allocator must outlive the connection, so ingest cannot make its own + ;; inside the call — see `app.graph.arrow/with-allocator!`. + (try + (ingest/ingest-on-connection! nil nil (uuid/next)) + (t/is false "expected :missing-arrow-allocator") + (catch clojure.lang.ExceptionInfo e + (t/is (= :missing-arrow-allocator (:code (ex-data e)))))))