Hi Clément, * LONGEAC Clement <clement.longeac@synchrotron-soleil.fr> [2025-06-19 10:20]:
To compare the efficiency of ROCm and POCL, we would like to implement a timer in sbuild to track the time taken for each build during package construction. This is particularly important when it comes to autopkgtests for Opencl-Pocl, then Opencl-Rocm. This would show the difference between the time the test was launched and the time it finished, thus displaying the overall test time. At the end of building the package via sbuild, we would like to obtain the following result: command1 PASS 200s Opencl-Pocl PASS 200s opencl-rocm PASS 600s My questions are as follows: Is it possible to implement such a timer? Does autopkgtest have such an option?
This is a bit confusing. On the one hand you talk about sbuild and on the other about autopkgtest. While sbuild can run autopkgtest in addition, those are two different programs still. sbuild already includes some timing output so I will concentrate on the autopkgtests part.
Would it also be possible to display the time for each line in the log? Like on the official CI output. At present, all we have is this: Get: 1 http://deb.debian.org/debian/ unstable/non-free-firmware Sources.diff/Index [63.3 kB] Get: 2 http://deb.debian.org/debian/ unstable/non-free-firmware Sources.diff/Index [63.3 kB] Get: 3 http://deb.debian.org/debian/ unstable/main Sources.diff/Index [63.6 kB] Get: 4 http://deb.debian.org/debian/ unstable/contrib/ Sources.diff/Index [63.3 kB] Get: 5 http://deb.debian.org/debian/ unstable/main amd64 Packages.diff/index [63.6 kB] Get: 6 http://deb.debian.org/debian/ unstable/contrib/ amd64/ Packages.diff.gz [63.3 kB] We would like this, for example: [09:57:01]: Get:6 http://deb.debian.org/debian unstable/contrib amd64 Packages.diff/Index [63.3 kB]
Use annotate-output autopkgtest ... from devscripts. Cheers Jochen
Attachment:
signature.asc
Description: PGP signature