public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: twoerner@gmail.com, openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH v7 8/9] oe-selftest/cases/wic.py: oe-selftest -r wic.Wic -> PASS
Date: Fri, 06 Mar 2026 17:11:29 +0000	[thread overview]
Message-ID: <66bd6aa1f573333e03280716916712033078e2da.camel@linuxfoundation.org> (raw)
In-Reply-To: <20260302003826.3995222-9-twoerner@gmail.com>

On Sun, 2026-03-01 at 19:38 -0500, Trevor Woerner via lists.openembedded.org wrote:
> Changes for the wic.Wic oe-selftests to pass now that wic is a
> stand-alone app and no longer part of oe-core.
> 
> Signed-off-by: Trevor Woerner <twoerner@gmail.com>
> ---
> changes in v7:
> - none
> 
> changes in v6:
> - none
> 
> changes in v5:
> - rebase with master
> - split back out into multiple, smaller patches
> - now that the sector-size re-implementation is ahead of this patch,
>   several wic subcommands (ls, cp, rm) no longer need a --vars file
> 
> v4: skipped to align/combine with other patch set
> 
> changes in v3:
> - squashed into 1 large, atomic commit
> 
> changes in v2:
> - none
> ---
>  meta/lib/oeqa/selftest/cases/wic.py | 136 ++++++++++++++++------------
>  1 file changed, 76 insertions(+), 60 deletions(-)

I mentioned this on irc but for completeness, I should respond here too.

The commit message says "what" the patch does but nothing about why,
there is nothing explaining the changes.

For a major migration like this, the explanation of why is important,
it may well help other people convert their code for example.

In this case, the issue (at least as I understand it) is that the
external wic tool cannot call bitbake to extract bitbake variable
values any longer so we need to add the environment file to the wic
calls to make sure it has that information. This should be mentioned in
the commit message but it isn't. I shouldn't have to go and ask people
and spend an age reading the code.

In some ways, this patch would be better as a standalone patch before
the split out, that way we could test before and after the split and
show no regressions and it would make the intent of the change clearer.

To be clear, I don't object to removing the support for calling bitbake
to get variable values. What I don't like is the way this is being done
with no visibility to the change.

In digging into this, I also noticed other issues:

* the wic repo has both master and main branches. This is extremely
confusing and it shouldn't have both, particularly when the content is
totally different

* there is no explanation of the changes in the wic repo to make it
external. The removal of support for executing bitbake for example is
never mentioned there either. Where were those patches reviewed? What
will the review process be in future?

* there is a workaround for e2fsck return codes in the wic repo. Where
was this posted for review? Is that a change we'd have accepted in OE-
Core? I suspect not as I have serious concerns about a workaround like
that. Unfortunately that raises questions about the ongoing maintenance
of the repo too.

Cheers,

Richard






  reply	other threads:[~2026-03-06 17:11 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-02  0:38 [PATCH v7 0/9] standalone wic Trevor Woerner
2026-03-02  0:38 ` [PATCH v7 1/9] wic: re-implement sector-size support Trevor Woerner
2026-03-02  0:38 ` [PATCH v7 2/9] wic: move sample *wks files Trevor Woerner
2026-03-06 16:21   ` [OE-core] " Richard Purdie
2026-03-07  8:59     ` Scott Murray
2026-03-07  9:52       ` Richard Purdie
2026-03-02  0:38 ` [PATCH v7 3/9] wic: move to standalone repository Trevor Woerner
2026-03-02  0:38 ` [PATCH v7 4/9] wic: add recipe Trevor Woerner
2026-03-02  0:38 ` [PATCH v7 5/9] oe-selftest/cases/wic.py: update WicTestCase Trevor Woerner
2026-03-02  0:38 ` [PATCH v7 6/9] oe-selftest/cases/wic.py: oe-selftest -r wic.CLITests -> PASS Trevor Woerner
2026-03-02  0:38 ` [PATCH v7 7/9] oe-selftest/cases/wic.py: oe-selftest -r wic.ModifyTests " Trevor Woerner
2026-03-02  0:38 ` [PATCH v7 8/9] oe-selftest/cases/wic.py: oe-selftest -r wic.Wic " Trevor Woerner
2026-03-06 17:11   ` Richard Purdie [this message]
2026-03-02  0:38 ` [PATCH v7 9/9] oe-selftest/cases/wic.py: oe-selftest -r wic.Wic2 " Trevor Woerner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=66bd6aa1f573333e03280716916712033078e2da.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=twoerner@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox