Re: Poudriere: when fetching a package with porttree from a git source, the generation of logs is slow

Mark Millard <[email protected]>
Newsgroups gmane.os.freebsd.devel.ports
Message-ID <[email protected]>
On 4/10/26 14:35, Tatsuki Makino wrote:
> Hello.

Hello.

> 
> On 2026/04/10 12:15, Mark Millard wrote:
>> On 4/9/26 02:26, Tatsuki Makino wrote:
>>> As stated in the subject, it is slow :)
>>> For example, the following log will be generated at the beginning.
>>>
>>> build started at Thu Apr  9 08:38:58 UTC 2026
> (omit)
>>> Port dir last git commit: b01ea745e968cda7c20fab0502c5119bdf533fb4
>>> Port dir unclean checkout: no

I looked in the scripts and in some logs that I generated, some of which
fetched and some of which built from source.

The above types of lines were only generated for the built-from-source
cases, never for the installed-fetch cases: The above indicates that the
Port dir involved did not install the result of any fetch. Instead the
package was being built from the port's source.


For reference (note also the _20h24m51s/ vs. _20h24m51s/, the built/ vs.
fetched/ , and the differing sizes of the 2 log files):

# cd /usr/local/poudriere/data/logs/bulk/main-amd64-default/

# ls -l 2026-04-10_20h2[46]m*/logs/*.log 2026-04-10_20h2[46]m*/logs/*/*.log
-rw-r--r--  1 root wheel 17960 Apr 10 20:25
2026-04-10_20h24m51s/logs/bonnie-2.0.6_2.log
lrwxr-xr-x  1 root wheel    21 Apr 10 20:25
2026-04-10_20h24m51s/logs/built/bonnie-2.0.6_2.log -> ../bonnie-2.0.6_2.log
-rw-r--r--  1 root wheel  9170 Apr 10 20:26
2026-04-10_20h26m48s/logs/bonnie-2.0.6_2.log
lrwxr-xr-x  1 root wheel    21 Apr 10 20:26
2026-04-10_20h26m48s/logs/fetched/bonnie-2.0.6_2.log ->
../bonnie-2.0.6_2.log

# grep 'Port dir ' 2026-04-10_20h2[46]m*/logs/*.log
2026-04-10_20h2[46]m*/logs/*/*.log
2026-04-10_20h24m51s/logs/bonnie-2.0.6_2.log:Port dir unclean checkout: yes
2026-04-10_20h24m51s/logs/built/bonnie-2.0.6_2.log:Port dir unclean
checkout: yes

So: no such found for the fetched/ case.

Note:
I deliberately had /usr/ports/benchmarks/bonnie/files/patch-Bonnie.c
updated with some non-committed potential corrections to some of the
oddities in the patch. That is why "Port dir unclean checkout: yes" in
my tests that built instead of fetched.


-- 
===
Mark Millard
marklmi at yahoo.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.