https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8517
Bug ID: 8517
Summary: GitHub Actions jobs skip tests that can run, most of
them on Windows
Product: Spamassassin
Version: SVN Trunk (Latest Devel Version)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: Building & Packaging
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: Undefined
Created attachment 6219
--> https://bz.apache.org/SpamAssassin/attachment.cgi?id=6219&action=edit
Install what the skipped tests need in the GitHub Actions jobs
The GitHub Actions jobs skip tests that can run on their runners:
* On Windows, tesseract, pdftotext, unrar and heif-dec are not installed, so
the handler tests and extracttext.t's OCR and PDF cases skip.
* On Windows, razor2.t skips because the setup step runs cpanm, a batch file,
without "call", so the razor-admin lines after it never run.
* On Windows, pdf_info.t's encrypted and ASCII85 cases skip for missing
modules, and there are no MySQL jobs (bug 8455).
* On every runner, redirectors_selenium.t skips because
Selenium::Remote::Driver is not installed, the IPv6 DNS tests are not enabled,
and the database jobs don't run the SQL part of sa_txrep_welcomelist_out.t.
The attached patch installs the programs and modules, and sets up the Razor
identity on Windows. On all platforms, a network error reaching the Razor
servers will not fail the job. The Windows MySQL jobs use DBD::MariaDB built
against the MSYS2 client library, on Strawberry Perl 5.40 and later. The patch
also removes the step that copies mail-dmarc.ini, which put it where the tests
don't look; since bug 8449 the tests pass without it.
On Windows it also sets the git option core.symlinks to false, the usual
default in Git for Windows, necessary for building from a git clone with
Strawberry Perl 5.34. It also installs current JSON::XS and DBD::SQLite on
Windows, because the versions bundled with Strawberry Perl 5.22 and 5.24 break
redirectors_selenium.t and are too old for the SQLite tests.
With this patch, the test suite passed on the Windows runner with Strawberry
Perl 5.22 through 5.42, apart from occasional DNS failures in t/dmarc.t,
t/askdns.t and t/hashbl.t.
--
You are receiving this mail because:
You are the assignee for the bug.