A high-performance inference engine for AI models
tests refactor fix (#276)
uuuvn51f5b8ec1607
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlindex 84249cefd..6b9f11061 100644--- a/.github/workflows/tests.yml+++ b/.github/workflows/tests.yml@@ -23,7 +23,7 @@ defaults:jobs:linters:name: linters- runs-on: [ self-hosted, macos, x64, mac, m3max, runner2 ]+ runs-on: [ self-hosted, macos, x64, mac, m3max ]steps:- uses: actions/checkout@v6@@ -77,8 +77,7 @@ jobs:- name: Run testsrun: |- cargo +stable nextest run --profile=ci \- --no-default-features \+ cargo +stable nextest run --profile=ci --no-default-features \${{ matrix.backend != 'cpu' && format('--features {0}', matrix.backend) || '' }} \- --features tracing \- --features audio-runtime+ ${{ matrix.tracing && '--features tracing' || '' }} \+ ${{ matrix.audio && '--features audio-runtime' || '' }}diff --git a/crates/uzu/src/trie.rs b/crates/uzu/src/trie.rsindex e3db006b9..a2d869615 100644--- a/crates/uzu/src/trie.rs+++ b/crates/uzu/src/trie.rs@@ -76,7 +76,7 @@ impl TrieNode {self.next.iter_mut().find(|n| n.token == token)}- #[cfg(all(feature = "tracing", test))]+ #[cfg(test)]pub fn token(&self) -> u64 {self.token}diff --git a/crates/uzu/tests/integration/util/path.rs b/crates/uzu/tests/integration/util/path.rsindex 0c3867ae7..5cd61eb13 100644--- a/crates/uzu/tests/integration/util/path.rs+++ b/crates/uzu/tests/integration/util/path.rs@@ -2,6 +2,7 @@ use std::path::PathBuf;pub const MODEL_DIR_NAME: &str = "Llama-3.2-1B-Instruct";pub const MODEL_FILE_NAME: &str = "model.safetensors";+#[cfg(feature = "tracing")]pub const TRACES_FILE_NAME: &str = "traces.safetensors";pub fn get_version() -> &'static str {@@ -25,6 +26,7 @@ pub fn get_test_weights_path() -> PathBuf {get_test_model_path().join(MODEL_FILE_NAME)}+#[cfg(feature = "tracing")]pub fn get_traces_path() -> PathBuf {get_test_model_path().join(TRACES_FILE_NAME)}