]> git.ipfire.org Git - thirdparty/squid.git/commit
CI: Collect logs of failed unit tests (#2348)
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Tue, 13 Jan 2026 16:15:58 +0000 (16:15 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Tue, 13 Jan 2026 18:02:36 +0000 (18:02 +0000)
commit4cfb4fc9b5e764f1c155ec54b9fb04ca31500667
treebacaa83d620622f626ed8efeeaf5ea95140211ed
parent520f8bc339bb01fca41448cba88dc7617e08a4b7
CI: Collect logs of failed unit tests (#2348)

When a unit test fails during CI checks, the corresponding GitHub
Actions reports and collected btlayer-*.log files do not contain
any failure details. For example, we see

    FAIL: tests/testRock
    # FAIL: 1

but are missing critical details like

    stub time| FATAL: Ipc::Mem::Segment::create failed to
    shm_open(/squid-0-tr_rebuild_versions.shm): (63) File name too long

Now, GitHub Actions collect all log files, including unit test logs. For
the `ubuntu-24.04,gcc,default` build target, adding more logs increases
artifacts zip archive size by about 100 KB (from ~200KB to ~300KB).

If `test-builds.sh` succeeds, there are no unit test logs to collect
because all unit test logs are erased when `make distcheck` (initiated
by `test-builds.sh`) reaches its `make distclean` step. If a unit test
fails, then that cleaning step is not reached, (successful and failed)
unit test logs are preserved and are now added to CI artifacts.
.github/workflows/quick.yaml
.github/workflows/slow.yaml