--- Begin Message ---
Source: gnocchi
Version: 4.6.5-1
Severity: important
User: [email protected]
Usertags: numpy2.3
Tags: ftbfs, forky, sid
Dear maintainer,
During a test rebuild for NumPy 2.3, gnocchi failed to rebuild.
Log Summary:
-------------------------------------------------------------------------------
[...]
grouped, aggregation)
^^^^^^^^^^^^^^^^^^^^^
File "/build/reproducible-path/gnocchi-4.6.5/gnocchi/carbonara.py", line 667,
in from_grouped_serie
ts=cls._resample_grouped(grouped_serie, agg_name, q))
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build/reproducible-path/gnocchi-4.6.5/gnocchi/carbonara.py", line 791,
in _resample_grouped
return agg_func(q) if agg_name == 'quantile' else agg_func()
~~~~~~~~^^^
File "/build/reproducible-path/gnocchi-4.6.5/gnocchi/carbonara.py", line 198,
in quantile
floor_pos = numpy.floor(real_pos).astype(numpy.integer, copy=False)
TypeError: Converting 'np.integer' or 'np.signedinteger' to a dtype is not
allowed
======================================================================
FAIL: gnocchi.tests.test_carbonara.TestAggregatedTimeSerie.test_benchmark
gnocchi.tests.test_carbonara.TestAggregatedTimeSerie.test_benchmark
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call last):
File
"/build/reproducible-path/gnocchi-4.6.5/gnocchi/tests/test_carbonara.py", line
109, in test_benchmark
carbonara.AggregatedTimeSerie.benchmark()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/build/reproducible-path/gnocchi-4.6.5/gnocchi/carbonara.py", line 849,
in benchmark
e, s = ts.serialize(key, compressed=False)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/build/reproducible-path/gnocchi-4.6.5/gnocchi/carbonara.py", line 777,
in serialize
locs = numpy.zeros(self.timestamps.size, dtype=numpy.integer)
TypeError: Converting 'np.integer' or 'np.signedinteger' to a dtype is not
allowed
======================================================================
FAIL: gnocchi.tests.test_carbonara.TestAggregatedTimeSerie.test_fetch_agg_pct
gnocchi.tests.test_carbonara.TestAggregatedTimeSerie.test_fetch_agg_pct
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call last):
File
"/build/reproducible-path/gnocchi-4.6.5/gnocchi/tests/test_carbonara.py", line
471, in test_fetch_agg_pct
tsb.set_values(numpy.array([(datetime64(2014, 1, 1, 12, 0, 0), 3),
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(datetime64(2014, 1, 1, 12, 0, 0, 123), 4),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<2 lines>...
before_truncate_callback=functools.partial(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
self._resample_and_merge, agg_dict=ts))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build/reproducible-path/gnocchi-4.6.5/gnocchi/carbonara.py", line 366,
in set_values
return_value = before_truncate_callback(self)
File
"/build/reproducible-path/gnocchi-4.6.5/gnocchi/tests/test_carbonara.py", line
403, in _resample_and_merge
agg_dict['return'] = carbonara.AggregatedTimeSerie.from_grouped_serie(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
grouped, carbonara.Aggregation(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
agg_dict['agg'], agg_dict['sampling'], None))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build/reproducible-path/gnocchi-4.6.5/gnocchi/carbonara.py", line 667,
in from_grouped_serie
ts=cls._resample_grouped(grouped_serie, agg_name, q))
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build/reproducible-path/gnocchi-4.6.5/gnocchi/carbonara.py", line 791,
in _resample_grouped
return agg_func(q) if agg_name == 'quantile' else agg_func()
~~~~~~~~^^^
File "/build/reproducible-path/gnocchi-4.6.5/gnocchi/carbonara.py", line 198,
in quantile
floor_pos = numpy.floor(real_pos).astype(numpy.integer, copy=False)
TypeError: Converting 'np.integer' or 'np.signedinteger' to a dtype is not
allowed
======================================================================
FAIL:
gnocchi.tests.test_storage.TestStorageDriver.test_rewrite_measures_multiple_granularities
gnocchi.tests.test_storage.TestStorageDriver.test_rewrite_measures_multiple_granularities
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/build/reproducible-path/gnocchi-4.6.5/gnocchi/tests/base.py", line 59,
in skip_if_not_implemented
return func(*args, **kwargs)
File "/build/reproducible-path/gnocchi-4.6.5/gnocchi/tests/test_storage.py",
line 677, in test_rewrite_measures_multiple_granularities
self.trigger_processing()
~~~~~~~~~~~~~~~~~~~~~~~^^
File "/build/reproducible-path/gnocchi-4.6.5/gnocchi/tests/base.py", line
405, in trigger_processing
self.chef.process_new_measures_for_sack(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
self.incoming.sack_for_metric(self.metric.id),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
blocking=True, sync=True)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build/reproducible-path/gnocchi-4.6.5/gnocchi/chef.py", line 165, in
process_new_measures_for_sack
self.storage.add_measures_to_metrics({
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
metric: measures[metric.id]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
for metric in metrics
^^^^^^^^^^^^^^^^^^^^^
})
^^
File "/build/reproducible-path/gnocchi-4.6.5/gnocchi/storage/__init__.py",
line 689, in add_measures_to_metrics
self._update_metric_splits(splits_to_update)
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
File "/build/reproducible-path/gnocchi-4.6.5/gnocchi/storage/__init__.py",
line 422, in _update_metric_splits
offset, data = split.serialize(
~~~~~~~~~~~~~~~^
key,
^^^^
compressed=key in keys_to_get[metric][aggregation])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build/reproducible-path/gnocchi-4.6.5/gnocchi/carbonara.py", line 777,
in serialize
locs = numpy.zeros(self.timestamps.size, dtype=numpy.integer)
TypeError: Converting 'np.integer' or 'np.signedinteger' to a dtype is not
allowed
----------------------------------------------------------------------
Ran 463 tests in 36.023s
FAILED (failures=7, skipped=44)
+ SUCCESS=1
+ stestr slowest
Test id
Runtime (s)
---------------------------------------------------------------------------------------
-----------
gnocchi.tests.test_aggregates.CrossMetricAggregated.test_binary_operator_ts_on_left
6.112
gnocchi.tests.test_rest.ResourceTest.test_get_resource_etag(keystone)
5.420
gnocchi.tests.test_rest.ResourceTest.test_delete_resource_with_metrics(basic)
5.201
gnocchi.tests.test_rest.ResourceTest.test_patch_resource_non_existent_metrics(basic)
5.175
gnocchi.tests.test_rest.ResourceTest.test_post_resource_already_exist(basic)
5.149
gnocchi.tests.test_rest.ResourceTest.test_post_resource(remoteuser)
5.129
gnocchi.tests.test_rest.RootTest.test_deserialize_force_json(basic)
5.068
gnocchi.tests.test_rest.ResourceTest.test_delete_resource(basic)
4.196
gnocchi.tests.test_rest.ResourceTest.test_list_resources_with_another_project_id(basic)
4.131
gnocchi.tests.test_rest.ResourceTest.test_post_resource_with_invalid_metric(remoteuser)
4.128
+ /usr/bin/mysqladmin --socket=/tmp/tmp.bTVi9SH38A/mysql.sock shutdown
2025-09-08 0:55:56 0 [Note] /usr/sbin/mysqld (initiated by: [sbuild] @
localhost []): Normal shutdown
2025-09-08 0:55:56 0 [Note] InnoDB: FTS optimize thread exiting.
2025-09-08 0:55:56 0 [Note] InnoDB: Starting shutdown...
2025-09-08 0:55:56 0 [Note] InnoDB: Dumping buffer pool(s) to
/tmp/tmp.bTVi9SH38A/ib_buffer_pool
2025-09-08 0:55:56 0 [Note] InnoDB: Restricted to 2028 pages due to
innodb_buf_pool_dump_pct=25
2025-09-08 0:55:56 0 [Note] InnoDB: Buffer pool(s) dump completed at 250908
0:55:56
2025-09-08 0:55:56 0 [Note] InnoDB: Removed temporary tablespace data file:
"./ibtmp1"
2025-09-08 0:55:56 0 [Note] InnoDB: Shutdown completed; log sequence number
8262664; transaction id 10635
2025-09-08 0:55:56 0 [Note] /usr/sbin/mysqld: Shutdown complete
+ rm -rf /tmp/tmp.bTVi9SH38A
+ exit 1
make[1]: *** [debian/rules:38: override_dh_install] Error 1
make[1]: Leaving directory '/build/reproducible-path/gnocchi-4.6.5'
make: *** [debian/rules:11: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2025-09-08T00:55:57Z
-------------------------------------------------------------------------------
The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/debian/developers-roehling.numpy/artifact/2450912/
About the archive rebuild: The build was made on debusine.debian.net,
using sbuild.
You can find the build task here:
https://debusine.debian.net/debian/developers-roehling.numpy/work-request/163405/
If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.
Cheers
Timo
--- End Message ---