#1140597 stimfit: autopkgtest failure

#1140597#5
Date:
2026-06-23 08:22:04 UTC
From:
To:
https://tracker.debian.org/pkg/stimfit

Issues preventing migration:
∙ ∙ Autopkgtest for stimfit/0.17.1-1: amd64: Failed ♻, arm64: Failed ♻, i386: Failed ♻, loong64: Failed ♻, ppc64el: Failed ♻, s390x: Failed ♻


...
166s autopkgtest [05:24:10]: test stimfit-help: [-----------------------
167s 05:24:11: Error: Unable to initialize GTK+, is DISPLAY set properly?
167s autopkgtest [05:24:11]: test stimfit-help: -----------------------]
167s autopkgtest [05:24:11]: test stimfit-help:  - - - - - - - - - - results - - - - - - - - - -
167s stimfit-help         FAIL stderr: 05:24:11: Error: Unable to initialize GTK+, is DISPLAY set properly?
...
167s autopkgtest [05:24:11]: @@@@@@@@@@@@@@@@@@@@ summary
167s python3-stfio-import PASS (superficial)
167s stimfit-help         FAIL stderr: 05:24:11: Error: Unable to initialize GTK+, is DISPLAY set properly?

#1140597#10
Date:
2026-06-23 08:32:45 UTC
From:
To:
Dear Adrian,

this bug has already been fixed in 0.17.1-2, which is waiting for sponsorship on Debian mentors.

https://mentors.debian.net/package/stimfit/

The failing test tried to run `stimfit --help`, which initializes the wx/GTK application and therefore fails in the headless ci.debian.net environment.

In 0.17.1-2 I replaced that test with a headless-safe test. The `python3-stfio` import autopkgtest remains unchanged.


Best wishes,
Christoph

#1140597#15
Date:
2026-06-23 08:32:45 UTC
From:
To:
Dear Adrian,

this bug has already been fixed in 0.17.1-2, which is waiting for sponsorship on Debian mentors.

https://mentors.debian.net/package/stimfit/

The failing test tried to run `stimfit --help`, which initializes the wx/GTK application and therefore fails in the headless ci.debian.net environment.

In 0.17.1-2 I replaced that test with a headless-safe test. The `python3-stfio` import autopkgtest remains unchanged.


Best wishes,
Christoph

#1140597#20
Date:
2026-06-23 13:14:55 UTC
From:
To:
This could be fixed by running inside xvfb-run.

The bigger problem is that "stimfit -h" returns 255,
which is likely the reason why "|| true" was added,
which would make the test pass despite certain errors.

If "stimfit -h" would return 0, then
  xvfb-run -a stimfit -h
should work as autopkgtest.[1]

cu
Adrian

[1] needs a xvfb test dependency, and might also need an allow-stderr
    autopkgtest restriction

#1140597#25
Date:
2026-07-09 12:42:17 UTC
From:
To:
Hi Christoph,

I've uploaded the package from mentors to unblock testing transition,
but let's keep this bug open as reference that some improvement to
the autopkgtest would be possible without huge effort.

cu
Adrian

#1140597#32
Date:
2026-07-14 08:32:05 UTC
From:
To:
Hi Adrian,

Thank you for the review and for sponsoring 0.17.1-2.

I have implemented the suggested follow-up. `stimfit -h` now prints
usage information and exits with status 0, while invalid options still
return a nonzero status:

https://github.com/neurodroid/stimfit/commit/7b28c1dd

The Debian autopkgtest now runs `xvfb-run -a stimfit -h` and checks both
the exit status and usage output. It no longer uses `|| true` or
`allow-stderr`:

https://github.com/neurodroid/stimfit/commit/8cbe8e07

Because of my limited resources (mainly time and expertise) and because
these changes do not affect Stimfit's core functionality, I used an LLM
to implement the changes. I reviewed the resulting changes and verified
them by compiling Stimfit, testing the help and invalid-option exit
statuses under Xvfb and running the Debian packaging checks.

The fix is recorded in an 0.17.2-1 UNRELEASED changelog entry with
"Closes: #1140597". Since 0.17.1-2 has already migrated successfully, I
suggest including the changes with the next upstream release.

Let me know if you have any further concerns or suggestions.

Best wishes
Christoph

#1140597#37
Date:
2026-08-11 13:34:32 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
stimfit, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1140597@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Christoph Schmidt-Hieber <christsc@gmx.de> (supplier of updated stimfit package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 11 Aug 2026 11:03:52 +0000
Source: stimfit
Architecture: source
Version: 0.17.2-1
Distribution: unstable
Urgency: medium
Maintainer: Christoph Schmidt-Hieber <christsc@gmx.de>
Changed-By: Christoph Schmidt-Hieber <christsc@gmx.de>
Closes: 1139613 1140597
Changes:
 stimfit (0.17.2-1) unstable; urgency=medium
 .
   * New upstream release
   * Fix command-line help to print usage and exit successfully.
   * Exercise command-line help under Xvfb in autopkgtest without masking
     failures. (Closes: #1140597)
   * Fix FTBFS with HDF5 2.1 by accepting the unnamespaced CMake targets
     exported by libhdf5-dev. (Closes: #1139613)
Checksums-Sha1:
 8bb48a66385f19e4e4764d99b1cb9530cb728677 1950 stimfit_0.17.2-1.dsc
 2ff846be9967ec99f43af65d118c991807dd03b6 5350760 stimfit_0.17.2.orig.tar.gz
 4b7155d7bcb45e3f5b973e863f3476423a541cca 14956 stimfit_0.17.2-1.debian.tar.xz
 0000173d97ac2bb952a4b2248b83693a0f78c228 16943 stimfit_0.17.2-1_amd64.buildinfo
Checksums-Sha256:
 d2f6a9ede449e3f96721e3f7a628a5f887902fb892896e876d60c1dafb6996ea 1950 stimfit_0.17.2-1.dsc
 418fcdb48d375236900c0fd30daa9bdbfc0c9867e1ed9206b67da87317a0be0c 5350760 stimfit_0.17.2.orig.tar.gz
 699edbfe6bbeab230337a4983901decd81754c4fa57859517589874479eb43fe 14956 stimfit_0.17.2-1.debian.tar.xz
 efac99cab3f3bc48e2010dd30a0801b96f5333a10b57faffb56017fe610201c6 16943 stimfit_0.17.2-1_amd64.buildinfo
Files:
 f0ac35fc85754195b7e631f9470b81a7 1950 science optional stimfit_0.17.2-1.dsc
 b6fe67957795f09dc8178ffbb8a3fe81 5350760 science optional stimfit_0.17.2.orig.tar.gz
 d81c4f3aaa9acace175ae650b11d1bee 14956 science optional stimfit_0.17.2-1.debian.tar.xz
 c1e66bc249b5277fc282102ff14908f6 16943 science optional stimfit_0.17.2-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQFEBAEBCgAuFiEEoJObzArDE05WtIyR7+hsbH/+z4MFAmp7IOkQHHBpbmlAZGVi
aWFuLm9yZwAKCRDv6Gxsf/7Pg6ZAB/4vavQ/WQGKb/A8SCXbuPzTlOFZjk2MbB6Y
SHiXbBJdVPbkc7ovvyDkb8LnAExM0jKqcdZZm4JckG+9yXQQaO/Zw2ggl3QfR0S9
7boij0HxTIDCotzzAhVA4+zvwq/sFBWEh5k/OCbFCWUwZXNMb5gje8Qh+5GA30sU
9btvrNFXKRygmiSxieMV4RIljzKtSYbt0Sfny0KsxV96zb509BV0Y6oeWv6v3gbb
nqGekdYK1LF/o8D3wsx6RhpWplOk6enY+dp0CdDZk5QSPh9d+dUhXewapMYDbqS7
CHKpnrXd+lki3PPN/ZZAO902KH/yTcPGL1L8CIwV+0NUamVuBuhX
=9Ikf
-----END PGP SIGNATURE-----