Skip to content

Fixing unix dependencies #617

Fixing unix dependencies

Fixing unix dependencies #617

GitHub Actions / Test Results failed Oct 26, 2024 in 0s

6 fail, 61 pass in 2m 21s

67 tests   61 ✅  2m 21s ⏱️
 4 suites   0 💤
 2 files     6 ❌

Results for commit 8c787f5.

Annotations

Check warning on line 0 in ahnlich_client_py.tests.ai_client.test_ai_client_store_commands

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_aiproxy_client_sends_create_stores_succeeds (ahnlich_client_py.tests.ai_client.test_ai_client_store_commands) failed

artifacts/python/python.xml [took 16s]
Raw output
UnboundLocalError: cannot access local variable 'response' where it is not associated with a value
spin_up_ahnlich_ai = 8933

    def test_aiproxy_client_sends_create_stores_succeeds(spin_up_ahnlich_ai):
        port = spin_up_ahnlich_ai
    
        ai_client = AhnlichAIClient(address="127.0.0.1", port=port, connect_timeout_sec=15)
        try:
            response: ai_response.AIServerResult = ai_client.create_store(
                **ai_store_payload_no_predicates
            )
        except Exception as e:
            print(f"Exception: {e}")
        finally:
            ai_client.cleanup()
>       assert response.results[0] == ai_response.Result__Ok(
            ai_response.AIServerResponse__Unit()
        )
E       UnboundLocalError: cannot access local variable 'response' where it is not associated with a value

ahnlich_client_py/tests/ai_client/test_ai_client_store_commands.py:30: UnboundLocalError

Check warning on line 0 in ahnlich_client_py.tests.ai_client.test_ai_client_store_commands

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_ai_client_get_pred (ahnlich_client_py.tests.ai_client.test_ai_client_store_commands) failed

artifacts/python/python.xml [took 6s]
Raw output
UnboundLocalError: cannot access local variable 'response' where it is not associated with a value
spin_up_ahnlich_ai = 8094

    def test_ai_client_get_pred(spin_up_ahnlich_ai):
        port = spin_up_ahnlich_ai
    
        ai_client = AhnlichAIClient(address="127.0.0.1", port=port)
        store_inputs = [
            (
                ai_query.StoreInput__RawString("Jordan One"),
                {"brand": ai_query.MetadataValue__RawString("Nike")},
            ),
            (
                ai_query.StoreInput__RawString("Yeezey"),
                {"brand": ai_query.MetadataValue__RawString("Adidas")},
            ),
        ]
        builder = ai_client.pipeline()
        builder.create_store(**ai_store_payload_with_predicates)
        builder.set(
            store_name=ai_store_payload_with_predicates["store_name"],
            inputs=store_inputs,
            preprocess_action=ai_query.PreprocessAction__RawString(
                ai_query.StringAction__ErrorIfTokensExceed()
            ),
        )
        expected = ai_response.AIServerResult(
            results=[
                ai_response.Result__Ok(
                    value=ai_response.AIServerResponse__Get(
                        value=[
                            (
                                ai_query.StoreInput__RawString(value="Jordan One"),
                                {"brand": ai_query.MetadataValue__RawString(value="Nike")},
                            )
                        ]
                    )
                )
            ]
        )
    
        try:
            builder.exec()
            response = ai_client.get_pred(
                ai_store_payload_with_predicates["store_name"],
                ai_query.PredicateCondition__Value(
                    value=ai_query.Predicate__Equals(
                        key="brand", value=ai_query.MetadataValue__RawString("Nike")
                    )
                ),
            )
    
        except Exception as e:
            print(f"Exception: {e}")
        finally:
            ai_client.cleanup()
>       assert str(expected) == str(response)
E       UnboundLocalError: cannot access local variable 'response' where it is not associated with a value

ahnlich_client_py/tests/ai_client/test_ai_client_store_commands.py:88: UnboundLocalError

Check warning on line 0 in ahnlich_client_py.tests.ai_client.test_ai_client_store_commands

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_ai_client_del_key (ahnlich_client_py.tests.ai_client.test_ai_client_store_commands) failed

artifacts/python/python.xml [took 6s]
Raw output
UnboundLocalError: cannot access local variable 'response' where it is not associated with a value
spin_up_ahnlich_ai = 8323

    def test_ai_client_del_key(spin_up_ahnlich_ai):
        port = spin_up_ahnlich_ai
    
        ai_client = AhnlichAIClient(address="127.0.0.1", port=port)
        store_inputs = [
            (
                ai_query.StoreInput__RawString("Jordan One"),
                {"brand": ai_query.MetadataValue__RawString("Nike")},
            ),
            (
                ai_query.StoreInput__RawString("Yeezey"),
                {"brand": ai_query.MetadataValue__RawString("Adidas")},
            ),
        ]
        builder = ai_client.pipeline()
        builder.create_store(**ai_store_payload_with_predicates)
        builder.set(
            store_name=ai_store_payload_with_predicates["store_name"],
            inputs=store_inputs,
            preprocess_action=ai_query.PreprocessAction__RawString(
                ai_query.StringAction__ErrorIfTokensExceed()
            ),
        )
        expected = ai_response.AIServerResult(
            results=[
                ai_response.Result__Ok(value=ai_response.AIServerResponse__Del(1)),
            ]
        )
    
        try:
            builder.exec()
            response = ai_client.del_key(
                ai_store_payload_with_predicates["store_name"],
                key=ai_query.StoreInput__RawString("Yeezey"),
            )
    
        except Exception as e:
            print(f"Exception: {e}")
        finally:
            ai_client.cleanup()
>       assert str(expected) == str(response)
E       UnboundLocalError: cannot access local variable 'response' where it is not associated with a value

ahnlich_client_py/tests/ai_client/test_ai_client_store_commands.py:212: UnboundLocalError

Check warning on line 0 in ahnlich_client_py.tests.ai_client.test_ai_client_store_commands

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_ai_client_drop_store_succeeds (ahnlich_client_py.tests.ai_client.test_ai_client_store_commands) failed

artifacts/python/python.xml [took 6s]
Raw output
UnboundLocalError: cannot access local variable 'response' where it is not associated with a value
spin_up_ahnlich_ai = 8219

    def test_ai_client_drop_store_succeeds(spin_up_ahnlich_ai):
        port = spin_up_ahnlich_ai
    
        ai_client = AhnlichAIClient(address="127.0.0.1", port=port)
        expected = ai_response.AIServerResult(
            results=[
                ai_response.Result__Ok(ai_response.AIServerResponse__Del(1)),
            ]
        )
    
        try:
            builder = ai_client.pipeline()
            builder.create_store(**ai_store_payload_no_predicates)
            builder.create_store(**ai_store_payload_with_predicates)
            builder.list_stores()
            _ = builder.exec()
            response = ai_client.drop_store(
                store_name=ai_store_payload_with_predicates["store_name"],
                error_if_not_exists=True,
            )
    
        except Exception as e:
            print(f"Exception: {e}")
        finally:
            ai_client.cleanup()
>       assert str(response) == str(expected)
E       UnboundLocalError: cannot access local variable 'response' where it is not associated with a value

ahnlich_client_py/tests/ai_client/test_ai_client_store_commands.py:240: UnboundLocalError

Check warning on line 0 in ahnlich_client_py.tests.ai_client.test_ai_client_store_commands

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_ai_client_purge_stores_succeeds (ahnlich_client_py.tests.ai_client.test_ai_client_store_commands) failed

artifacts/python/python.xml [took 6s]
Raw output
UnboundLocalError: cannot access local variable 'response' where it is not associated with a value
spin_up_ahnlich_ai = 8855

    def test_ai_client_purge_stores_succeeds(spin_up_ahnlich_ai):
        port = spin_up_ahnlich_ai
    
        ai_client = AhnlichAIClient(address="127.0.0.1", port=port)
        expected = ai_response.AIServerResult(
            results=[
                ai_response.Result__Ok(ai_response.AIServerResponse__Del(2)),
            ]
        )
    
        try:
            builder = ai_client.pipeline()
            builder.create_store(**ai_store_payload_no_predicates)
            builder.create_store(**ai_store_payload_with_predicates)
            builder.list_stores()
            _ = builder.exec()
    
            response = ai_client.purge_stores()
        except Exception as e:
            print(f"Exception: {e}")
        finally:
            ai_client.cleanup()
    
>       assert str(response) == str(expected)
E       UnboundLocalError: cannot access local variable 'response' where it is not associated with a value

ahnlich_client_py/tests/ai_client/test_ai_client_store_commands.py:266: UnboundLocalError

Check warning on line 0 in ai

See this annotation in the file changed.

@github-actions github-actions / Test Results

tests::aiproxy_test::test_ai_proxy_test_with_persistence (ai) failed

artifacts/rust/rust.xml [took 6s]
Raw output
Test failed, but output was not captured

Check notice on line 0 in .github

See this annotation in the file changed.

@github-actions github-actions / Test Results

67 tests found

There are 67 tests, see "Raw output" for the full list of tests.
Raw output
ahnlich_client_py.tests.ai_client.test_ai_client_store_commands ‑ test_ai_client_create_pred_index
ahnlich_client_py.tests.ai_client.test_ai_client_store_commands ‑ test_ai_client_del_key
ahnlich_client_py.tests.ai_client.test_ai_client_store_commands ‑ test_ai_client_drop_pred_index
ahnlich_client_py.tests.ai_client.test_ai_client_store_commands ‑ test_ai_client_drop_store_succeeds
ahnlich_client_py.tests.ai_client.test_ai_client_store_commands ‑ test_ai_client_get_pred
ahnlich_client_py.tests.ai_client.test_ai_client_store_commands ‑ test_ai_client_purge_stores_succeeds
ahnlich_client_py.tests.ai_client.test_ai_client_store_commands ‑ test_aiproxy_client_sends_create_stores_succeeds
ahnlich_client_py.tests.ai_client.test_client_unit_commands ‑ test_client_sends_info_server_to_aiproxy_success
ahnlich_client_py.tests.ai_client.test_client_unit_commands ‑ test_client_sends_list_stores_to_fresh_aiproxy_succeeds
ahnlich_client_py.tests.ai_client.test_client_unit_commands ‑ test_client_sends_ping_to_aiproxy_success
ahnlich_client_py.tests.ai_client.test_client_unit_commands ‑ test_client_works_using_protocol_in_context
ahnlich_client_py.tests.db_client.test_client_store_commands ‑ test_client_create_pred_index_succeeds
ahnlich_client_py.tests.db_client.test_client_store_commands ‑ test_client_delete_key_succeeds
ahnlich_client_py.tests.db_client.test_client_store_commands ‑ test_client_delete_predicate_succeeds
ahnlich_client_py.tests.db_client.test_client_store_commands ‑ test_client_drop_pred_index_succeeds
ahnlich_client_py.tests.db_client.test_client_store_commands ‑ test_client_drop_store_fails_no_store
ahnlich_client_py.tests.db_client.test_client_store_commands ‑ test_client_drop_store_succeeds
ahnlich_client_py.tests.db_client.test_client_store_commands ‑ test_client_get_by_predicate_succeeds
ahnlich_client_py.tests.db_client.test_client_store_commands ‑ test_client_get_key_succeeds
ahnlich_client_py.tests.db_client.test_client_store_commands ‑ test_client_get_sim_n_succeeds
ahnlich_client_py.tests.db_client.test_client_store_commands ‑ test_client_list_stores_finds_created_store_with_predicate
ahnlich_client_py.tests.db_client.test_client_store_commands ‑ test_client_list_stores_reflects_dropped_store
ahnlich_client_py.tests.db_client.test_client_store_commands ‑ test_client_sends_create_stores_succeeds
ahnlich_client_py.tests.db_client.test_client_store_commands ‑ test_client_sends_create_stores_with_predicates_succeeds
ahnlich_client_py.tests.db_client.test_client_store_commands ‑ test_client_sends_list_stores_on_existing_database_succeeds
ahnlich_client_py.tests.db_client.test_client_store_commands ‑ test_client_set_in_store_succeeds
ahnlich_client_py.tests.db_client.test_client_store_commands ‑ test_client_set_in_store_succeeds_with_binary
ahnlich_client_py.tests.db_client.test_client_unit_commands ‑ test_client_sends_info_server_to_db_success
ahnlich_client_py.tests.db_client.test_client_unit_commands ‑ test_client_sends_list_clients_to_db_success
ahnlich_client_py.tests.db_client.test_client_unit_commands ‑ test_client_sends_list_stores_to_fresh_database_succeeds
ahnlich_client_py.tests.db_client.test_client_unit_commands ‑ test_client_sends_ping_to_db_success
ahnlich_client_py.tests.db_client.test_client_unit_commands ‑ test_client_works_using_protocol_in_context
ahnlich_client_py.tests.db_client.test_db_builders ‑ test_client_sends_bulk_unit_requests_to_db_succeeds
ahnlich_client_rs ‑ ai::tests::test_ai_client_actions_on_binary_store
ahnlich_client_rs ‑ ai::tests::test_ai_client_get_pred
ahnlich_client_rs ‑ ai::tests::test_ai_client_ping
ahnlich_client_rs ‑ ai::tests::test_ai_client_simple_pipeline
ahnlich_client_rs ‑ ai::tests::test_create_stores_with_pipeline
ahnlich_client_rs ‑ ai::tests::test_del_key
ahnlich_client_rs ‑ ai::tests::test_destroy_purge_stores_with_pipeline
ahnlich_client_rs ‑ ai::tests::test_pool_commands_fail_if_server_not_exist
ahnlich_client_rs ‑ db::tests::test_create_stores_with_pipeline
ahnlich_client_rs ‑ db::tests::test_del_key
ahnlich_client_rs ‑ db::tests::test_get_sim_n
ahnlich_client_rs ‑ db::tests::test_pool_commands_fail_if_server_not_exist
ahnlich_client_rs ‑ db::tests::test_simple_pipeline
ahnlich_client_rs ‑ db::tests::test_simple_server_ping
ahnlich_similarity ‑ kdtree::tests::test_delete_sequence
ahnlich_similarity ‑ kdtree::tests::test_results_are_accurate
ahnlich_similarity ‑ kdtree::tests::test_serialize_deserialize_roundtrip
ahnlich_similarity ‑ kdtree::tests::test_simple_insert_multithread
ahnlich_similarity ‑ kdtree::tests::test_with_accept_list
ai ‑ manager::tests::test_model_manager_refreshes_evicted_model
ai ‑ manager::tests::test_model_manager_setup_works
ai ‑ tests::aiproxy_test::test_ai_proxy_binary_store_actions
ai ‑ tests::aiproxy_test::test_ai_proxy_binary_store_set_text_and_binary_fails
ai ‑ tests::aiproxy_test::test_ai_proxy_create_drop_pred_index
ai ‑ tests::aiproxy_test::test_ai_proxy_create_store_errors_unsupported_models
ai ‑ tests::aiproxy_test::test_ai_proxy_create_store_success
ai ‑ tests::aiproxy_test::test_ai_proxy_del_key_drop_store
ai ‑ tests::aiproxy_test::test_ai_proxy_destroy_database
ai ‑ tests::aiproxy_test::test_ai_proxy_embedding_size_mismatch_error
ai ‑ tests::aiproxy_test::test_ai_proxy_fails_db_server_unavailable
ai ‑ tests::aiproxy_test::test_ai_proxy_get_pred_succeeds
ai ‑ tests::aiproxy_test::test_ai_proxy_get_sim_n_succeeds
ai ‑ tests::aiproxy_test::test_ai_proxy_test_with_persistence
ai ‑ tests::aiproxy_test::test_ai_store_no_original