On Thu, 2024-09-19 at 08:42 +0100, Richard Purdie via
lists.openembedded.org wrote:
> On Mon, 2024-08-12 at 17:14 +0200, Alexis Lothoré via
> lists.openembedded.org wrote:
> > From: Alexis Lothoré <[email protected]>
> > 
> > Current postaction module executes a remote tar command, pipe it in
> > a SSH
> > connection, and uncompress the raw stream with another tar command.
> > With
> > this command, the whole artifacts tree is directly available on the
> > host
> > executing the test, but it is not very convenient if we want to
> > download
> > the whole retrieved ptests directory.
> > 
> > Stop uncompressing the retrieved ptests archive onto host, just
> > save the
> > archive as it is. The new output then looks like the following:
> > 
> > tmp/log/oeqa-artefacts
> > └── oeqa-target-artefacts-20240812-juzqdb80
> >     ├── host_disk_usage.txt
> >     ├── target_disk_usage.txt
> >     └── tests_artifacts.tar.gz
> > 
> > Suggested-By: Alexandre Belloni <[email protected]>
> > Signed-off-by: Alexis Lothoré <[email protected]>
> > ---
> >  meta/lib/oeqa/utils/postactions.py | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> > 
> > diff --git a/meta/lib/oeqa/utils/postactions.py
> > b/meta/lib/oeqa/utils/postactions.py
> > index 3b537146c50a..d5080523aa83 100644
> > --- a/meta/lib/oeqa/utils/postactions.py
> > +++ b/meta/lib/oeqa/utils/postactions.py
> > @@ -68,7 +68,8 @@ def list_and_fetch_failed_tests_artifacts(d, tc,
> > artifacts_list, outputdir):
> >          (status, output) = tc.target.run(cmd, raw = True)
> >          if status != 0 or not output:
> >              raise Exception("Error while fetching compressed
> > artifacts")
> > -        p = subprocess.run(["tar", "zxf", "-", "-C", outputdir],
> > input=output)
> > +        with open(archive_name, "wb") as f:
> > +            f.write(output)
> >      except Exception as e:
> >          bb.warn(f"Can not retrieve artifacts from test target:
> > {e}")
> 
> 
> This change is causing failures since archive_name isn't defined
> anywhere :/

I'd also note that scarthgap actually throws errors:

https://valkyrie.yoctoproject.org/#/builders/73/builds/135/steps/12/logs/stdio

Exception: NameError: name 'artifact_path' is not defined

which is related to some of these patches :/.

Cheers,

Richard




-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#204684): 
https://lists.openembedded.org/g/openembedded-core/message/204684
Mute This Topic: https://lists.openembedded.org/mt/107858382/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to