bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] RFC: add --shuffle[=seed] argument support


From: Alejandro Colomar (man-pages)
Subject: Re: [PATCH] RFC: add --shuffle[=seed] argument support
Date: Sat, 5 Feb 2022 23:56:30 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1

Hello Sergei,

On 2/5/22 23:04, Sergei Trofimovich wrote:
> The idea of the change is to introduce non-deterministic ordering
> into goal and prerequisite traversal to imitate non-deterministic
> ordering of 'make -j' mode.
> 
> The implementation is to reorder lists of goals to build and list
> of dependencies attached to files reachable via goals.
[...]
> 
> Some high level TODOs:
> - No documentation for the optin yet.
> - No(?) environment passing for recursive make.  I would prefer to share
>   the same see across all calls to get easier reproducers.
> - The dependency traversal is naive and uses potentially unbounded stack.
> - srand() / rand() is used from system libc.  This might make it harder
>   to reproduce a failure on another machine.  But maybe it's fine.
> 
> If the general shape is reasonable I can try to get it up to standard.
> 
> What do you think?

I like the concept.  When debugging Makefiles, make -j may not run
randomly enough to trigger some corner cases.  This will allow to debug
Makefiles much more easily.

Thanks,

Alex

-- 
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]