-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
Milestone
Description
Describe the bug
I just started preparing package updates for meson 1.8.0 for inclusion in openSUSE Tumbleweed.
Running the test suite gives me this error:
[ 21s] + python3 run_tests.py --failfast
[ 21s] Meson build system 1.8.0 Project and Unit Tests
[ 21s] System information.
[ 21s] Architecture: ('64bit', 'ELF')
[ 21s] Machine: x86_64
[ 21s] Platform: Linux
[ 21s] Processor: x86_64
[ 21s] System: Linux
[ 21s]
[ 21s]
[ 21s] Running unittests.
[ 21s]
[ 22s] /usr/lib64/python3.13/_import_failed/readline.py:11: EncodingWarning: 'encoding' argument not specified
[ 22s] with open(failed_map_path) as fd:
[ 22s] /usr/lib64/python3.13/_import_failed/readline.py:11: EncodingWarning: 'encoding' argument not specified
[ 22s] with open(failed_map_path) as fd:
[ 22s] /usr/lib64/python3.13/_import_failed/readline.py:11: EncodingWarning: 'encoding' argument not specified
[ 22s] with open(failed_map_path) as fd:
[ 22s] /usr/lib64/python3.13/_import_failed/readline.py:11: EncodingWarning: 'encoding' argument not specified
[ 22s] with open(failed_map_path) as fd:
[ 22s] /usr/lib64/python3.13/_import_failed/readline.py:11: EncodingWarning: 'encoding' argument not specified
[ 22s] with open(failed_map_path) as fd:
[ 23s] ============================= test session starts ==============================
[ 23s] platform linux -- Python 3.13.3, pytest-8.3.5, pluggy-1.5.0
[ 23s] rootdir: /home/abuild/rpmbuild/BUILD/meson-test-1.8.0-build/meson-1.8.0
[ 23s] configfile: setup.cfg
[ 23s] plugins: xdist-3.6.1
[ 23s] created: 4/4 workers
[ 23s] 4 workers [577 items]
[ 23s]
[ 39s] sss............................s.....ss................................. [ 12%]
[ 60s] ..sss.......s.......s......s....................sss..................... [ 24%]
[ 68s] ..............F.....s.....ss........ssssssssssssssssss.s................ [ 37%]
[ 69s] s...................s..........
[ 69s] =================================== FAILURES ===================================
[ 69s] _________________________ AllPlatformTests.test_slice __________________________
[ 69s] [gw0] linux -- Python 3.13.3 /usr/bin/python3
[ 69s]
[ 69s] self = <unittests.allplatformstests.AllPlatformTests testMethod=test_slice>
[ 69s]
[ 69s] def test_slice(self):
[ 69s] testdir = os.path.join(self.unit_test_dir, '126 test slice')
[ 69s] self.init(testdir)
[ 69s] self.build()
[ 69s]
[ 69s] for arg, expectation in {'1/1': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
[ 69s] '1/2': [1, 3, 5, 7, 9],
[ 69s] '2/2': [2, 4, 6, 8, 10],
[ 69s] '1/10': [1],
[ 69s] '2/10': [2],
[ 69s] '10/10': [10],
[ 69s] }.items():
[ 69s] output = self._run(self.mtest_command + ['--slice=' + arg])
[ 69s] tests = sorted([ int(x[5:]) for x in re.findall(r'test-[0-9]*', output) ])
[ 69s] > self.assertEqual(tests, expectation)
[ 69s] E AssertionError: Lists differ: [1, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] != [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
[ 69s] E
[ 69s] E First differing element 1:
[ 69s] E 1
[ 69s] E 2
[ 69s] E
[ 69s] E First list contains 2 additional elements.
[ 69s] E First extra element 10:
[ 69s] E 9
[ 69s] E
[ 69s] E - [1, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
[ 69s] E ? ------
[ 69s] E
[ 69s] E + [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
[ 69s]
[ 69s] unittests/allplatformstests.py:5200: AssertionError
[ 69s] ----------------------------- Captured stdout call -----------------------------
[ 69s] $ /usr/bin/python3 /usr/bin/meson setup --backend=ninja --prefix /usr --libdir lib /home/abuild/rpmbuild/BUILD/meson-test-1.8.0-build/meson-1.8.0/tmpi9515g2v '/home/abuild/rpmbuild/BUILD/meson-test-1.8.0-build/meson-1.8.0/test cases/unit/126 test slice'
[ 69s] stdout:
[ 69s] The Meson build system
[ 69s] Version: 1.8.0
[ 69s] Source dir: /home/abuild/rpmbuild/BUILD/meson-test-1.8.0-build/meson-1.8.0/test cases/unit/126 test slice
[ 69s] Build dir: /home/abuild/rpmbuild/BUILD/meson-test-1.8.0-build/meson-1.8.0/tmpi9515g2v
[ 69s] Build type: native build
[ 69s] Project name: test_slice
[ 69s] Project version: undefined
[ 69s] Host machine cpu family: x86_64
[ 69s] Host machine cpu: x86_64
[ 69s] Program python3 found: YES (/usr/bin/python3)
[ 69s] Build targets in project: 0
[ 69s]
[ 69s] test_slice undefined
[ 69s]
[ 69s] User defined options
[ 69s] backend: ninja
[ 69s] libdir : lib
[ 69s] prefix : /usr
[ 69s]
[ 69s] Found ninja-1.12.1 at /usr/bin/ninja
[ 69s]
[ 69s] $ /usr/bin/ninja -d explain
[ 69s] stdout:
[ 69s] ninja explain: output all of phony edge with no inputs doesn't exist
[ 69s] ninja: no work to do.
[ 69s]
[ 69s] $ /usr/bin/python3 /usr/bin/meson test -C /home/abuild/rpmbuild/BUILD/meson-test-1.8.0-build/meson-1.8.0/tmpi9515g2v --slice=1/1
[ 69s] stdout:
[ 69s] ninja: Entering directory `/home/abuild/rpmbuild/BUILD/meson-test-1.8.0-build/meson-1.8.0/tmpi9515g2v'
[ 69s] ninja: no work to do.
[ 69s] 1/10 test-1 OK 0.02s
[ 69s] 2/10 test-2 OK 0.03s
[ 69s] 3/10 test-3 OK 0.03s
[ 69s] 4/10 test-4 OK 0.03s
[ 69s] 5/10 test-5 OK 0.02s
[ 69s] 6/10 test-6 OK 0.03s
[ 69s] 7/10 test-7 OK 0.03s
[ 69s] 8/10 test-9 OK 0.02s
[ 69s] 9/10 test-8 OK 0.03s
[ 69s] 10/10 test-10 OK 0.02s
[ 69s]
[ 69s] Ok: 10
[ 69s] Fail: 0
[ 69s]
[ 69s] Full log written to /home/abuild/rpmbuild/BUILD/meson-test-1.8.0-build/meson-1.8.0/tmpi9515g2v/meson-logs/testlog.txt
[ 69s]
[ 69s] =============================== warnings summary ===============================
[ 69s] ../../../../../../usr/lib64/python3.13/_import_failed/readline.py:11
[ 69s] ../../../../../../usr/lib64/python3.13/_import_failed/readline.py:11
[ 69s] ../../../../../../usr/lib64/python3.13/_import_failed/readline.py:11
[ 69s] ../../../../../../usr/lib64/python3.13/_import_failed/readline.py:11
[ 69s] ../../../../../../usr/lib64/python3.13/_import_failed/readline.py:11
[ 69s] /usr/lib64/python3.13/_import_failed/readline.py:11: EncodingWarning: 'encoding' argument not specified
[ 69s] with open(failed_map_path) as fd:
[ 69s]
[ 69s] unittests/allplatformstests.py: 165 warnings
[ 69s] unittests/failuretests.py: 6 warnings
[ 69s] unittests/internaltests.py: 20 warnings
[ 69s] /usr/lib/python3.13/site-packages/mesonbuild/utils/universal.py:1670: EncodingWarning: UTF-8 Mode affects locale.getpreferredencoding(). Consider locale.getencoding() instead.
[ 69s] encoding = locale.getpreferredencoding()
[ 69s]
[ 69s] -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
[ 69s] =========================== short test summary info ============================
[ 69s] FAILED unittests/allplatformstests.py::AllPlatformTests::test_slice - Asserti...
[ 69s] !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
[ 69s] !!!!!!!!!!!! xdist.dsession.Interrupted: stopping after 1 failures !!!!!!!!!!!!!
[ 69s] =========== 1 failed, 207 passed, 39 skipped, 196 warnings in 46.79s ===========
[ 69s] Meson build system 1.8.0 Unit Tests
[ 69s] Total time: 47.065 seconds
Any hints to what could go on ?
To Reproduce
Meson 1.8.0 tarballs packaged as RPM for openSUSE Tumbleweed; running the meson internal test suite
Expected behavior
I'd expect the tests to pass