On Tue, 2023-08-29 at 14:35 +0000, Jose Quaresma wrote:
> This will match other deviation subtask of the same main task,
> a couple of them can be found on oe-core layer:
>  do_compile_kernelmodules
>  do_compile_ptest
>  native_add_do_populate_sysroot_deps
>  do_package_qa
>  cmake_do_configure
>  setuptools3_do_configure
>  cargo_common_do_configure
>  python_pyo3_do_configure
>  python_setuptools3_rust_do_configure
> 
> Signed-off-by: Jose Quaresma <jose.quare...@foundries.io>
> ---
>  scripts/pybootchartgui/pybootchartgui/draw.py | 18 +++++++++---------
>  1 file changed, 9 insertions(+), 9 deletions(-)
> 
> diff --git a/scripts/pybootchartgui/pybootchartgui/draw.py 
> b/scripts/pybootchartgui/pybootchartgui/draw.py
> index 3d1ff695c1..2beb3c7c67 100644
> --- a/scripts/pybootchartgui/pybootchartgui/draw.py
> +++ b/scripts/pybootchartgui/pybootchartgui/draw.py
> @@ -661,20 +661,20 @@ def render_processes_chart(ctx, options, trace, curr_y, 
> width, h, sec_w):
>  
>              #print("proc at %s %s %s %s" % (x, y, w, proc_h))
>              col = None
> -            if task == "do_compile":
> +            if "_setscene" in task:
> +                col = WHITE
> +            elif "do_compile" in task:
>                  col = TASK_COLOR_COMPILE
> -            elif task == "do_configure":
> +            elif "do_configure" in task:
>                  col = TASK_COLOR_CONFIGURE
> -            elif task == "do_install":
> +            elif "do_install" in task:
>                  col = TASK_COLOR_INSTALL
> -            elif task == "do_populate_sysroot":
> +            elif "do_populate_sysroot" in task:
>                  col = TASK_COLOR_SYSROOT
> -            elif task == "do_package":
> -                col = TASK_COLOR_PACKAGE
> -            elif task == "do_package_write_rpm" or \
> -                     task == "do_package_write_deb" or \
> -                     task == "do_package_write_ipk":
> +            elif "do_package_write" in task:
>                  col = TASK_COLOR_PACKAGE_WRITE
> +            elif "do_package" in task:
> +                col = TASK_COLOR_PACKAGE
>              else:
>                  col = WHITE
>  

I'm a bit torn on this as the patch changes the approach of the code.

Currently, the tasks are marked without any fuzz, i.e. it matches
do_compile alone. The code is entirely consistent in that all the other
areas match specific tasks too.

After the change you're changing the meaning to "any compile task"  and
"any configure task".

I'm not entirely convinced this is a good thing. Should do_package
match do_package_qa for example? Those are quite different. I think
we're swapping something which is currently at least quite clear for
something which is very fuzzy and not easy for the user to understand
without looking at the code :/.

Cheers,

Richard


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#187386): 
https://lists.openembedded.org/g/openembedded-core/message/187386
Mute This Topic: https://lists.openembedded.org/mt/101032261/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to