Diff of the two buildlogs: -- --- b1/build.log 2024-05-29 15:28:38.388202961 +0000 +++ b2/build.log 2024-05-29 15:32:22.218673085 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Wed May 29 03:27:13 -12 2024 -I: pbuilder-time-stamp: 1716996433 +I: Current time: Wed Jul 2 11:51:40 +14 2025 +I: pbuilder-time-stamp: 1751406700 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -26,52 +26,84 @@ dpkg-source: info: unpacking pyvo_1.5.1-1.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/1861894/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/2674766/tmp/hooks/D01_modify_environment starting +debug: Running on codethink03-arm64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Jul 1 21:51 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/2674766/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/2674766/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='arm64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="21" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.2.21(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - INVOCATION_ID='1b39ddac104a43659a2fa263be8b197b' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='1861894' - PS1='# ' - PS2='> ' + INVOCATION_ID=05c7f0d8873f4dad880eadd38b7cc313 + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=2674766 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.AETsi9YK/pbuilderrc_3qhm --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.AETsi9YK/b1 --logfile b1/build.log pyvo_1.5.1-1.dsc' - SUDO_GID='109' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.4:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.AETsi9YK/pbuilderrc_rvMa --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.AETsi9YK/b2 --logfile b2/build.log pyvo_1.5.1-1.dsc' + SUDO_GID=109 + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://192.168.101.4:3128 I: uname -a - Linux codethink04-arm64 6.1.0-21-cloud-arm64 #1 SMP Debian 6.1.90-1 (2024-05-03) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-21-cloud-arm64 #1 SMP Debian 6.1.90-1 (2024-05-03) aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 May 27 07:43 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/1861894/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Jun 29 14:05 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/2674766/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -233,7 +265,7 @@ Get: 106 http://deb.debian.org/debian unstable/main arm64 python3-requests-mock all 1.11.0-1 [17.4 kB] Get: 107 http://deb.debian.org/debian unstable/main arm64 python3-typing-extensions all 4.12.0-1 [72.1 kB] Get: 108 http://deb.debian.org/debian unstable/main arm64 python3-setuptools-scm all 8.0.4-2 [39.5 kB] -Fetched 47.1 MB in 0s (173 MB/s) +Fetched 47.1 MB in 1s (42.2 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libjs-jquery. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19761 files and directories currently installed.) @@ -590,8 +622,8 @@ Setting up tzdata (2024a-4) ... Current default time zone: 'Etc/UTC' -Local time is now: Wed May 29 15:27:37 UTC 2024. -Universal Time is now: Wed May 29 15:27:37 UTC 2024. +Local time is now: Tue Jul 1 21:52:54 UTC 2025. +Universal Time is now: Tue Jul 1 21:52:54 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up autotools-dev (20220109.1) ... @@ -702,7 +734,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/pyvo-1.5.1/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../pyvo_1.5.1-1_source.changes +I: user script /srv/workspace/pbuilder/2674766/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/2674766/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/pyvo-1.5.1/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../pyvo_1.5.1-1_source.changes dpkg-buildpackage: info: source package pyvo dpkg-buildpackage: info: source version 1.5.1-1 dpkg-buildpackage: info: source distribution unstable @@ -1179,7 +1215,7 @@ Copying pyvo.egg-info to build/bdist.linux-aarch64/wheel/pyvo-1.5.1.egg-info running install_scripts creating build/bdist.linux-aarch64/wheel/pyvo-1.5.1.dist-info/WHEEL -creating '/build/reproducible-path/pyvo-1.5.1/.pybuild/cpython3_3.12_pyvo/.tmp-89t5w1ij/pyvo-1.5.1-py3-none-any.whl' and adding 'build/bdist.linux-aarch64/wheel' to it +creating '/build/reproducible-path/pyvo-1.5.1/.pybuild/cpython3_3.12_pyvo/.tmp-sd7ce_ix/pyvo-1.5.1-py3-none-any.whl' and adding 'build/bdist.linux-aarch64/wheel' to it adding 'pyvo/__init__.py' adding 'pyvo/_astropy_init.py' adding 'pyvo/conftest.py' @@ -1609,7 +1645,7 @@ Copying pyvo.egg-info to build/bdist.linux-aarch64/wheel/pyvo-1.5.1.egg-info running install_scripts creating build/bdist.linux-aarch64/wheel/pyvo-1.5.1.dist-info/WHEEL -creating '/build/reproducible-path/pyvo-1.5.1/.pybuild/cpython3_3.11_pyvo/.tmp-lpnkv7kf/pyvo-1.5.1-py3-none-any.whl' and adding 'build/bdist.linux-aarch64/wheel' to it +creating '/build/reproducible-path/pyvo-1.5.1/.pybuild/cpython3_3.11_pyvo/.tmp-bnqs9npn/pyvo-1.5.1-py3-none-any.whl' and adding 'build/bdist.linux-aarch64/wheel' to it adding 'pyvo/__init__.py' adding 'pyvo/_astropy_init.py' adding 'pyvo/conftest.py' @@ -1798,7 +1834,7 @@ Running tests with pyvo version 1.5.1. Running tests in .pybuild/cpython3_3.12_pyvo/build. -Date: 2024-05-29T03:28:22 +Date: 2025-07-02T11:55:03 Platform: Linux-6.1.0-21-cloud-arm64-aarch64-with-glibc2.38 @@ -1823,7 +1859,7 @@ plugins: requests-mock-1.11.0, astropy-0.11.0, remotedata-0.4.1, mock-3.12.0, filter-subpackage-0.2.0, doctestplus-1.2.1, cov-5.0.0, astropy-header-0.2.2, arraydiff-0.6.1, hypothesis-6.102.6 collected 342 items -pyvo/auth/tests/test_auth.py ...... [ 1%] +pyvo/auth/tests/test_auth.py F..... [ 1%] pyvo/dal/mimetype.py . [ 2%] pyvo/dal/tests/test_adhoc.py ..... [ 3%] pyvo/dal/tests/test_datalink.py ........ [ 5%] @@ -1852,8 +1888,220 @@ pyvo/utils/tests/test_url.py . [ 98%] pyvo/utils/tests/test_vocabularies_remote.py ssssss [100%] -================== 298 passed, 43 skipped, 1 xfailed in 2.68s ================== -I: pybuild pybuild:334: rm /build/reproducible-path/pyvo-1.5.1/.pybuild/cpython3_3.12_pyvo/build/conftest.py +=================================== FAILURES =================================== +_____________________ test_cookies_auth[security_methods0] _____________________ + +files = None + + def update_leap_seconds(files=None): + """If the current ERFA leap second table is out of date, try to update it. + + Uses `astropy.utils.iers.LeapSeconds.auto_open` to try to find an + up-to-date table. See that routine for the definition of "out of date". + + In order to make it safe to call this any time, all exceptions are turned + into warnings, + + Parameters + ---------- + files : list of path-like, optional + List of files/URLs to attempt to open. By default, uses defined by + `astropy.utils.iers.LeapSeconds.auto_open`, which includes the table + used by ERFA itself, so if that is up to date, nothing will happen. + + Returns + ------- + n_update : int + Number of items updated. + + """ + try: + from astropy.utils import iers + +> table = iers.LeapSeconds.auto_open(files) + +/usr/lib/python3/dist-packages/astropy/time/core.py:3466: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +cls = +files = ['erfa', '/usr/lib/python3/dist-packages/astropy_iers_data/data/Leap_Second.dat', 'https://hpiers.obspm.fr/iers/bul/bulc/Leap_Second.dat', 'https://data.iana.org/time-zones/data/leap-seconds.list'] + + @classmethod + def auto_open(cls, files=None): + """Attempt to get an up-to-date leap-second list. + + The routine will try the files in sequence until it finds one + whose expiration date is "good enough" (see below). If none + are good enough, it returns the one with the most recent expiration + date, warning if that file is expired. + + For remote files that are cached already, the cached file is tried + first before attempting to retrieve it again. + + Parameters + ---------- + files : list of path-like, optional + List of files/URLs to attempt to open. By default, uses + ``cls._auto_open_files``. + + Returns + ------- + leap_seconds : `~astropy.utils.iers.LeapSeconds` + Up to date leap-second table + + Notes + ----- + Bulletin C is released about 10 days after a possible leap second is + introduced, i.e., mid-January or mid-July. Expiration days are thus + generally at least 150 days after the present. We look for a file + that expires more than 180 - `~astropy.utils.iers.Conf.auto_max_age` + after the present. + """ + offset = 180 - (30 if conf.auto_max_age is None else conf.auto_max_age) + good_enough = cls._today() + TimeDelta(offset, format="jd") + + if files is None: + # Basic files to go over (entries in _auto_open_files can be + # configuration items, which we want to be sure are up to date). + files = [getattr(conf, f, f) for f in cls._auto_open_files] + + # Remove empty entries. + files = [f for f in files if f] + + # Our trials start with normal files and remote ones that are + # already in cache. The bools here indicate that the cache + # should be used. + trials = [ + (f, True) for f in files if not urlparse(f).netloc or is_url_in_cache(f) + ] + # If we are allowed to download, we try downloading new versions + # if none of the above worked. + if conf.auto_download: + trials += [(f, False) for f in files if urlparse(f).netloc] + + self = None + err_list = [] + # Go through all entries, and return the first one that + # is not expired, or the most up to date one. + for f, allow_cache in trials: + if not allow_cache: + clear_download_cache(f) + + try: + trial = cls.open(f, cache=True) + except Exception as exc: + err_list.append(exc) + continue + + if self is None or trial.expires > self.expires: + self = trial + self.meta["data_url"] = str(f) + if self.expires > good_enough: + break + + if self is None: + raise ValueError( + "none of the files could be read. The " + f"following errors were raised:\n {err_list}" + ) + + if self.expires < self._today() and conf.auto_max_age is not None: +> warn("leap-second file is expired.", IERSStaleWarning) +E astropy.utils.iers.iers.IERSStaleWarning: leap-second file is expired. + +/usr/lib/python3/dist-packages/astropy/utils/iers/iers.py:1179: IERSStaleWarning + +During handling of the above exception, another exception occurred: + + @pytest.mark.usefixtures('cookie_auth_service', 'auth_capabilities') + @pytest.mark.parametrize('security_methods', [[None, 'ivo://ivoa.net/sso#cookie']]) + @pytest.mark.filterwarnings("ignore::astropy.io.votable.exceptions.W27") + @pytest.mark.filterwarnings("ignore::astropy.io.votable.exceptions.W48") + @pytest.mark.filterwarnings("ignore::astropy.io.votable.exceptions.W06") + def test_cookies_auth(): + session = AuthSession() + session.credentials.set_cookie('TEST_COOKIE', 'BADCOOKIE') + service = pyvo.dal.TAPService('http://example.com/tap', session=session) +> service.run_async("SELECT * FROM ivoa.obscore") + +pyvo/auth/tests/test_auth.py:108: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +pyvo/dal/tap.py:320: in run_async + job = AsyncTAPJob.create( +pyvo/dal/tap.py:642: in create + response = tapquery.submit() +pyvo/dal/tap.py:1132: in submit + response = self._session.post( +pyvo/auth/authsession.py:70: in post + return self._request('POST', url, **kwargs) +pyvo/auth/authsession.py:108: in _request + return session.request(http_method, url, **kwargs) +/usr/lib/python3/dist-packages/requests/sessions.py:589: in request + resp = self.send(prep, **send_kwargs) +/usr/lib/python3/dist-packages/requests_mock/mocker.py:185: in _fake_send + return _original_send(session, request, **kwargs) +/usr/lib/python3/dist-packages/requests/sessions.py:703: in send + r = adapter.send(request, **kwargs) +/usr/lib/python3/dist-packages/requests_mock/adapter.py:248: in send + resp = matcher(request) +/usr/lib/python3/dist-packages/requests_mock/adapter.py:228: in __call__ + return response_matcher.get_response(request) +/usr/lib/python3/dist-packages/requests_mock/response.py:274: in get_response + content=_call(self._params.get('content')), +/usr/lib/python3/dist-packages/requests_mock/response.py:269: in _call + return f(request, context, *args, **kwargs) if callable(f) else f +pyvo/dal/tests/test_tap.py:188: in create + job.quote = Time.now() + TimeDelta(1, format='sec') +/usr/lib/python3/dist-packages/astropy/time/core.py:2720: in __add__ + out._set_scale("tai") +/usr/lib/python3/dist-packages/astropy/time/core.py:767: in _set_scale + _check_leapsec() +/usr/lib/python3/dist-packages/astropy/time/core.py:3437: in _check_leapsec + update_leap_seconds() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +files = None + + def update_leap_seconds(files=None): + """If the current ERFA leap second table is out of date, try to update it. + + Uses `astropy.utils.iers.LeapSeconds.auto_open` to try to find an + up-to-date table. See that routine for the definition of "out of date". + + In order to make it safe to call this any time, all exceptions are turned + into warnings, + + Parameters + ---------- + files : list of path-like, optional + List of files/URLs to attempt to open. By default, uses defined by + `astropy.utils.iers.LeapSeconds.auto_open`, which includes the table + used by ERFA itself, so if that is up to date, nothing will happen. + + Returns + ------- + n_update : int + Number of items updated. + + """ + try: + from astropy.utils import iers + + table = iers.LeapSeconds.auto_open(files) + return erfa.leap_seconds.update(table) + + except Exception as exc: +> warn( + f"leap-second auto-update failed due to the following exception: {exc!r}", + AstropyWarning, + ) +E astropy.utils.exceptions.AstropyWarning: leap-second auto-update failed due to the following exception: IERSStaleWarning('leap-second file is expired.') + +/usr/lib/python3/dist-packages/astropy/time/core.py:3470: AstropyWarning +=========================== short test summary info ============================ +FAILED pyvo/auth/tests/test_auth.py::test_cookies_auth[security_methods0] - a... +============= 1 failed, 297 passed, 43 skipped, 1 xfailed in 4.27s ============= +E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /build/reproducible-path/pyvo-1.5.1/.pybuild/cpython3_3.12_pyvo/build; python3.12 -m pytest --confcutdir=. I: pybuild pybuild:308: cp conftest.py /build/reproducible-path/pyvo-1.5.1/.pybuild/cpython3_3.11_pyvo/build I: pybuild base:311: cd /build/reproducible-path/pyvo-1.5.1/.pybuild/cpython3_3.11_pyvo/build; python3.11 -m pytest --confcutdir=. ============================= test session starts ============================== @@ -1862,7 +2110,7 @@ Running tests with pyvo version 1.5.1. Running tests in .pybuild/cpython3_3.11_pyvo/build. -Date: 2024-05-29T03:28:26 +Date: 2025-07-02T11:55:10 Platform: Linux-6.1.0-21-cloud-arm64-aarch64-with-glibc2.38 @@ -1887,7 +2135,7 @@ plugins: requests-mock-1.11.0, astropy-0.11.0, remotedata-0.4.1, mock-3.12.0, filter-subpackage-0.2.0, doctestplus-1.2.1, cov-5.0.0, astropy-header-0.2.2, arraydiff-0.6.1, hypothesis-6.102.6 collected 342 items -pyvo/auth/tests/test_auth.py ...... [ 1%] +pyvo/auth/tests/test_auth.py F..... [ 1%] pyvo/dal/mimetype.py . [ 2%] pyvo/dal/tests/test_adhoc.py ..... [ 3%] pyvo/dal/tests/test_datalink.py ........ [ 5%] @@ -1916,42 +2164,235 @@ pyvo/utils/tests/test_url.py . [ 98%] pyvo/utils/tests/test_vocabularies_remote.py ssssss [100%] -================== 298 passed, 43 skipped, 1 xfailed in 3.03s ================== -I: pybuild pybuild:334: rm /build/reproducible-path/pyvo-1.5.1/.pybuild/cpython3_3.11_pyvo/build/conftest.py - create-stamp debian/debhelper-build-stamp - dh_testroot -O--buildsystem=pybuild - dh_prep -O--buildsystem=pybuild - dh_auto_install --destdir=debian/python3-pyvo/ -O--buildsystem=pybuild -I: pybuild plugin_pyproject:178: Copying package built for python3.12 to destdir -I: pybuild plugin_pyproject:178: Copying package built for python3.11 to destdir - dh_installdocs -O--buildsystem=pybuild - dh_installchangelogs -O--buildsystem=pybuild - dh_python3 -O--buildsystem=pybuild - dh_installsystemduser -O--buildsystem=pybuild - dh_perl -O--buildsystem=pybuild - dh_link -O--buildsystem=pybuild - dh_strip_nondeterminism -O--buildsystem=pybuild - dh_compress -O--buildsystem=pybuild - dh_fixperms -O--buildsystem=pybuild - dh_missing -O--buildsystem=pybuild - dh_installdeb -O--buildsystem=pybuild - dh_gencontrol -O--buildsystem=pybuild - dh_md5sums -O--buildsystem=pybuild - dh_builddeb -O--buildsystem=pybuild -dpkg-deb: building package 'python3-pyvo' in '../python3-pyvo_1.5.1-1_all.deb'. - dpkg-genbuildinfo --build=binary -O../pyvo_1.5.1-1_arm64.buildinfo - dpkg-genchanges --build=binary -O../pyvo_1.5.1-1_arm64.changes -dpkg-genchanges: info: binary-only upload (no source code included) - dpkg-source --after-build . -dpkg-buildpackage: info: binary-only upload (no source included) -dpkg-genchanges: info: including full source code in upload +=================================== FAILURES =================================== +_____________________ test_cookies_auth[security_methods0] _____________________ + +files = None + + def update_leap_seconds(files=None): + """If the current ERFA leap second table is out of date, try to update it. + + Uses `astropy.utils.iers.LeapSeconds.auto_open` to try to find an + up-to-date table. See that routine for the definition of "out of date". + + In order to make it safe to call this any time, all exceptions are turned + into warnings, + + Parameters + ---------- + files : list of path-like, optional + List of files/URLs to attempt to open. By default, uses defined by + `astropy.utils.iers.LeapSeconds.auto_open`, which includes the table + used by ERFA itself, so if that is up to date, nothing will happen. + + Returns + ------- + n_update : int + Number of items updated. + + """ + try: + from astropy.utils import iers + +> table = iers.LeapSeconds.auto_open(files) + +/usr/lib/python3/dist-packages/astropy/time/core.py:3466: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +cls = +files = ['erfa', '/usr/lib/python3/dist-packages/astropy_iers_data/data/Leap_Second.dat', 'https://hpiers.obspm.fr/iers/bul/bulc/Leap_Second.dat', 'https://data.iana.org/time-zones/data/leap-seconds.list'] + + @classmethod + def auto_open(cls, files=None): + """Attempt to get an up-to-date leap-second list. + + The routine will try the files in sequence until it finds one + whose expiration date is "good enough" (see below). If none + are good enough, it returns the one with the most recent expiration + date, warning if that file is expired. + + For remote files that are cached already, the cached file is tried + first before attempting to retrieve it again. + + Parameters + ---------- + files : list of path-like, optional + List of files/URLs to attempt to open. By default, uses + ``cls._auto_open_files``. + + Returns + ------- + leap_seconds : `~astropy.utils.iers.LeapSeconds` + Up to date leap-second table + + Notes + ----- + Bulletin C is released about 10 days after a possible leap second is + introduced, i.e., mid-January or mid-July. Expiration days are thus + generally at least 150 days after the present. We look for a file + that expires more than 180 - `~astropy.utils.iers.Conf.auto_max_age` + after the present. + """ + offset = 180 - (30 if conf.auto_max_age is None else conf.auto_max_age) + good_enough = cls._today() + TimeDelta(offset, format="jd") + + if files is None: + # Basic files to go over (entries in _auto_open_files can be + # configuration items, which we want to be sure are up to date). + files = [getattr(conf, f, f) for f in cls._auto_open_files] + + # Remove empty entries. + files = [f for f in files if f] + + # Our trials start with normal files and remote ones that are + # already in cache. The bools here indicate that the cache + # should be used. + trials = [ + (f, True) for f in files if not urlparse(f).netloc or is_url_in_cache(f) + ] + # If we are allowed to download, we try downloading new versions + # if none of the above worked. + if conf.auto_download: + trials += [(f, False) for f in files if urlparse(f).netloc] + + self = None + err_list = [] + # Go through all entries, and return the first one that + # is not expired, or the most up to date one. + for f, allow_cache in trials: + if not allow_cache: + clear_download_cache(f) + + try: + trial = cls.open(f, cache=True) + except Exception as exc: + err_list.append(exc) + continue + + if self is None or trial.expires > self.expires: + self = trial + self.meta["data_url"] = str(f) + if self.expires > good_enough: + break + + if self is None: + raise ValueError( + "none of the files could be read. The " + f"following errors were raised:\n {err_list}" + ) + + if self.expires < self._today() and conf.auto_max_age is not None: +> warn("leap-second file is expired.", IERSStaleWarning) +E astropy.utils.iers.iers.IERSStaleWarning: leap-second file is expired. + +/usr/lib/python3/dist-packages/astropy/utils/iers/iers.py:1179: IERSStaleWarning + +During handling of the above exception, another exception occurred: + + @pytest.mark.usefixtures('cookie_auth_service', 'auth_capabilities') + @pytest.mark.parametrize('security_methods', [[None, 'ivo://ivoa.net/sso#cookie']]) + @pytest.mark.filterwarnings("ignore::astropy.io.votable.exceptions.W27") + @pytest.mark.filterwarnings("ignore::astropy.io.votable.exceptions.W48") + @pytest.mark.filterwarnings("ignore::astropy.io.votable.exceptions.W06") + def test_cookies_auth(): + session = AuthSession() + session.credentials.set_cookie('TEST_COOKIE', 'BADCOOKIE') + service = pyvo.dal.TAPService('http://example.com/tap', session=session) +> service.run_async("SELECT * FROM ivoa.obscore") + +pyvo/auth/tests/test_auth.py:108: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +pyvo/dal/tap.py:320: in run_async + job = AsyncTAPJob.create( +pyvo/dal/tap.py:642: in create + response = tapquery.submit() +pyvo/dal/tap.py:1132: in submit + response = self._session.post( +pyvo/auth/authsession.py:70: in post + return self._request('POST', url, **kwargs) +pyvo/auth/authsession.py:108: in _request + return session.request(http_method, url, **kwargs) +/usr/lib/python3/dist-packages/requests/sessions.py:589: in request + resp = self.send(prep, **send_kwargs) +/usr/lib/python3/dist-packages/requests_mock/mocker.py:185: in _fake_send + return _original_send(session, request, **kwargs) +/usr/lib/python3/dist-packages/requests/sessions.py:703: in send + r = adapter.send(request, **kwargs) +/usr/lib/python3/dist-packages/requests_mock/adapter.py:248: in send + resp = matcher(request) +/usr/lib/python3/dist-packages/requests_mock/adapter.py:228: in __call__ + return response_matcher.get_response(request) +/usr/lib/python3/dist-packages/requests_mock/response.py:274: in get_response + content=_call(self._params.get('content')), +/usr/lib/python3/dist-packages/requests_mock/response.py:269: in _call + return f(request, context, *args, **kwargs) if callable(f) else f +pyvo/dal/tests/test_tap.py:188: in create + job.quote = Time.now() + TimeDelta(1, format='sec') +/usr/lib/python3/dist-packages/astropy/time/core.py:2720: in __add__ + out._set_scale("tai") +/usr/lib/python3/dist-packages/astropy/time/core.py:767: in _set_scale + _check_leapsec() +/usr/lib/python3/dist-packages/astropy/time/core.py:3437: in _check_leapsec + update_leap_seconds() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +files = None + + def update_leap_seconds(files=None): + """If the current ERFA leap second table is out of date, try to update it. + + Uses `astropy.utils.iers.LeapSeconds.auto_open` to try to find an + up-to-date table. See that routine for the definition of "out of date". + + In order to make it safe to call this any time, all exceptions are turned + into warnings, + + Parameters + ---------- + files : list of path-like, optional + List of files/URLs to attempt to open. By default, uses defined by + `astropy.utils.iers.LeapSeconds.auto_open`, which includes the table + used by ERFA itself, so if that is up to date, nothing will happen. + + Returns + ------- + n_update : int + Number of items updated. + + """ + try: + from astropy.utils import iers + + table = iers.LeapSeconds.auto_open(files) + return erfa.leap_seconds.update(table) + + except Exception as exc: +> warn( + f"leap-second auto-update failed due to the following exception: {exc!r}", + AstropyWarning, + ) +E astropy.utils.exceptions.AstropyWarning: leap-second auto-update failed due to the following exception: IERSStaleWarning('leap-second file is expired.') + +/usr/lib/python3/dist-packages/astropy/time/core.py:3470: AstropyWarning +=========================== short test summary info ============================ +FAILED pyvo/auth/tests/test_auth.py::test_cookies_auth[security_methods0] - a... +============= 1 failed, 297 passed, 43 skipped, 1 xfailed in 5.78s ============= +E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /build/reproducible-path/pyvo-1.5.1/.pybuild/cpython3_3.11_pyvo/build; python3.11 -m pytest --confcutdir=. +dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 3.11" returned exit code 13 +make: *** [debian/rules:10: binary] Error 25 +dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 I: copying local configuration +E: Failed autobuilding of package +I: user script /srv/workspace/pbuilder/2674766/tmp/hooks/C01_cleanup starting +debug output: disk usage on i-capture-the-hostname at Tue Jul 1 21:55:17 UTC 2025 +Filesystem Size Used Avail Use% Mounted on +tmpfs 30G 0 30G 0% /dev/shm + +I: user script /srv/workspace/pbuilder/2674766/tmp/hooks/C01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/1861894 and its subdirectories -I: Current time: Wed May 29 03:28:37 -12 2024 -I: pbuilder-time-stamp: 1716996517 +I: removing directory /srv/workspace/pbuilder/2674766 and its subdirectories