For the "pytest" GitHub Actions runners, jobs running on Windows are fail sporadically with:
_______________________ ERROR at setup of test_convert0 _______________________
[gw2] win32 -- Python 3.13.1 C:\hostedtoolcache\windows\Python\3.13.1\x64\python.exe
tmp_store = <transport_data.store.UnionStore object at 0x000002BE2C596210>
@pytest.fixture(scope="session")
def ato_converted_data(tmp_store):
"""Converted ATO data and structures in the test data directory."""
# 'Proper' method: repeat the conversion in the test data directory
for part in ("ACC", "APH", "CLC", "INF", "MIS", "RSA", "SEC", "TAS"):
> convert(part)
transport_data\tests\test_adb.py:12:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
transport_data\adb\__init__.py:103: in convert
ef = pd.ExcelFile(path, engine="openpyxl")
…
C:\hostedtoolcache\windows\Python\3.13.1\x64\Lib\zipfile\__init__.py:1598: in read
with self.open(name, "r", pwd) as fp:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <zipfile.ZipFile file=<_io.BufferedReader name='C:\\Users\\runneradmin\\AppData\\Local\\transport-data\\transport-data\\Cache\\adb\\ATO Workbook (SOCIO-ECONOMIC (SEC)).xlsx'> mode='r'>
name = 'xl/worksheets/_rels/sheet52.xml.rels', mode = 'r', pwd = None
def open(self, name, mode="r", *** *, force_zip64=False):
"""Return file-like object for 'name'.
…
> raise BadZipFile("Truncated file header")
E zipfile.BadZipFile: Truncated file header
C:\hostedtoolcache\windows\Python\3.13.1\x64\Lib\zipfile\__init__.py:1653: BadZipFile
These appear as ERROR or FAIL depending on which test first runs into the issue. They may have to do with incomplete responses from the ATO server.
For the "pytest" GitHub Actions runners, jobs running on Windows are fail sporadically with:
…for instance here.
These appear as ERROR or FAIL depending on which test first runs into the issue. They may have to do with incomplete responses from the ATO server.
To resolve: