freebsd / poudriere

Port/Package build and test system
https://github.com/freebsd/poudriere/wiki
BSD 2-Clause "Simplified" License
379 stars 161 forks source link

regression: testport totally broken while bulk -tkC is fine. #1156

Open mandree opened 1 month ago

mandree commented 1 month ago

Prerequisites

Describe the bug

The last poudriere-devel upgrade has regressed and even simple "testport" runs fail:

...
[00:00:06] Sanity checking build queue
[00:00:06] Recording filesystem state for prepkg... done
[00:00:06] Committing packages to repository: /usr/local/poudriere/data/packages/140amd64-default/.real_1716041440 via .latest symli
nk
[00:00:07] Removing old packages
[00:00:07] Building with flags: 
[00:00:07] Removing existing /usr/local
[00:00:07] Error: /usr/local/share/poudriere/testport.sh:get_job_id:16:get_job_id: Failed to parse jobs -l output for pid 6845: [2] 
+ 6844 Running            $
      6845                    $
[140amd64-default] [2024-05-18_16h10m34s] [crashed] Time: 00:00:05
[00:00:07] Logs: /usr/local/poudriere/data/logs/bulk/140amd64-default/2024-05-18_16h10m34s

How to reproduce

Steps to reproduce the behavior:

  1. Install poudriere-devel-3.4.99.20240424
  2. Update ports tree in /usr/ports
  3. Set up a 14.0-RELEASE jail called 140amd64
  4. sudo poudriere testport -j 140amd64 mail/bogofilter-bdb
  5. see error like the one pasted above

Expected behavior

testport should build and test install/uninstall the port.

Screenshots

As above

Environment

Additional context

The bogofilter-bdb poudriere log file has 0 size, and next to it still lies a named pipe of the same name with .pipe added:

-rw-r--r--  3 root wheel 0 18 Mai  16:10 /usr/local/poudriere/data/logs/bulk/140amd64-default/2024-05-18_16h10m34s/logs/bogofilter-b
db-1.2.5_4.log
prw-r--r--  1 root wheel 0 18 Mai  16:10 /usr/local/poudriere/data/logs/bulk/140amd64-default/2024-05-18_16h10m34s/logs/bogofilter-b
db-1.2.5_4.log.pipe