Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package tvm for openSUSE:Factory checked in at 2026-06-17 16:19:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/tvm (Old) and /work/SRC/openSUSE:Factory/.tvm.new.1981 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "tvm" Wed Jun 17 16:19:29 2026 rev:32 rq:1359824 version:0.24.0 Changes: -------- --- /work/SRC/openSUSE:Factory/tvm/tvm.changes 2026-06-13 18:48:47.793066470 +0200 +++ /work/SRC/openSUSE:Factory/.tvm.new.1981/tvm.changes 2026-06-17 16:19:52.878984703 +0200 @@ -1,0 +2,6 @@ +Tue Jun 16 11:22:29 UTC 2026 - Guillaume GARDET <[email protected]> + +- Add upstream patch to fix tests on aarch64: + * tvm-pr19786.patch + +------------------------------------------------------------------- New: ---- tvm-pr19786.patch ----------(New B)---------- New:- Add upstream patch to fix tests on aarch64: * tvm-pr19786.patch ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ tvm.spec ++++++ --- /var/tmp/diff_new_pack.o6iEQZ/_old 2026-06-17 16:19:55.339087597 +0200 +++ /var/tmp/diff_new_pack.o6iEQZ/_new 2026-06-17 16:19:55.347087932 +0200 @@ -53,6 +53,8 @@ Patch1: lib-finder-python-cmake.patch # PATCH-FIX-OPENSUSE tvm-disable-vulkan-test-check.patch -- Cannot test in OBS despite enabled in library Patch2: tvm-disable-vulkan-test-check.patch +# PATCH-FIX-UPSTREAM - https://github.com/apache/tvm/pull/19786 +Patch3: tvm-pr19786.patch BuildRequires: %{python_module Cython} BuildRequires: %{python_module attrs} BuildRequires: %{python_module cloudpickle} ++++++ tvm-pr19786.patch ++++++ >From 71dfa40ca9b8bae106493887eb9280246820611c Mon Sep 17 00:00:00 2001 From: tlopex <[email protected]> Date: Mon, 15 Jun 2026 23:55:40 -0400 Subject: [PATCH] [Tests] Make TargetCreation.DeduplicateKeys host-agnostic on AArch64 The test asserted target->attrs.size()==2, which is host-specific: LLVM target canonicalization legitimately adds host attrs (feature.has_sve / has_asimd / is_aarch64 / mtriple on AArch64), so the target ends up with 9 attrs there and the assertion fails, while it happens to be 2 on x86. The test only means to verify that duplicate keys are deduplicated, so assert that the "keys" entry did not leak into the generic attrs map instead of pinning the host-specific attr count. --- tests/cpp/target_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cpp/target_test.cc b/tests/cpp/target_test.cc index e6e73e84d626..d842c868d50b 100644 --- a/tests/cpp/target_test.cc +++ b/tests/cpp/target_test.cc @@ -379,7 +379,7 @@ TEST(TargetCreation, DeduplicateKeys) { TVM_FFI_ICHECK_EQ(target->keys.size(), 2U); TVM_FFI_ICHECK_EQ(target->keys[0], "cpu"); TVM_FFI_ICHECK_EQ(target->keys[1], "arm_cpu"); - TVM_FFI_ICHECK_EQ(target->attrs.size(), 2U); + TVM_FFI_ICHECK_EQ(target->attrs.count("keys"), 0U); TVM_FFI_ICHECK_EQ(target->GetAttr<ffi::String>("device"), "arm_cpu"); }
