public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: "[ext] Christian Storm" <christian.storm@siemens.com>
To: isar-users@googlegroups.com
Subject: Re: Reproducibility of builds
Date: Mon, 20 Nov 2017 09:33:22 +0100	[thread overview]
Message-ID: <20171120083322.mz7uiz7nbgesf2qp@MD1KR9XC.ww002.siemens.net> (raw)
In-Reply-To: <1510942495.3306.107.camel@denx.de>

> > [...]
> > > With my suggestion of using a caching proxy, this could be solved 
> > > without any additional overhead.
> > 
> > Could be the case, what are the drawbacks?
> 
> More complexity and stuff to implement. Also maybe download speed.
> 
> >  What proxy do you propose to use?
> 
> I was at first going with my own standalone proxy implementation in
> pure stdlib python, so that it could be completely integrated into
> isar. 

Why not hooking this into the fetcher(s) so that it's integrated rather
than a standalone thing? As a bonus, you'll have full control on this
from the Isar core/code. I think the main invention here is the code
that does the consistent version/epoch guarantee anyway...


> I had a very simple solution ready rather quickly, but it was
> only synchronous and as such could only handle one connection at a
> time. Instead of just throwing more threads at it, I wanted to go the
> asyncio route. Sadly the python stdlib does not provide a http
> implementation for asyncio. I wasn't clear how to proceed from here
> further (aiohttp dependency or minimal own http implementation).

Ah, OK. Wouldn't this account for premature optimization? :)


> The other idea is to just use a ready made apt caching proxy like apt-
> cache-ng. But here I am unsure if its flexible enough to use in our
> case. Starting it multiple times in parallel with different ports for
> different caches and only user privileges might be possible but I
> suspect that seperating the pool and the dists folder (pool should go
> to DL_DIR while dists is part of the TMP_DIR) could be more difficult.

I would consider on the bonus side for this that we don't have to
develop/maintain a custom solution, given that it suits our purposes of
course...


> >  Maybe I missed something on the proxy suggestion.. Could you
> > please elaborate on this?
> 
> As for the integration the basic idea was that for taged bitbake tasks
> the proxy is started and sets the *_PROXY environment variables. This
> should be doable with some mods to the base.bbclass and some external
> python scripts.
> 
> > 
> > 
> > > I do have other ideas to do this, but that would restructure most
> > > of isar.
> > 
> > Well, at least speaking for myself, I'd like to hear those as I
> > consider
> > this feature to be essential. Choice in solutions is always good :)
> > 
> 
> One idea that I got when I first investigated isar, was trying to be oe
> compatible as much as possible. So using this idea would solve the
> reproducable builds as well:
> 
> Basically implementing debootstrap with bitbake recipes that are
> created virtually on runtime by downloading and parsing the
> 'dists/*/*/*/Packages.gz' file.

Those virtual recipes then will have to be serialized as they contain
the version number of the package, right?


> I suppose it should be possible to fetch the Packages file at an early
> parsing step in a bitbake build, if its not already preset, and fill
> the bitbake data store with recipe definitions that fetch those binary
> deb packages, have the appropriate dependencies and install them into
> the root file system.

Yes, or do a 'download-only' step prior to building as it's available
on Yocto. 


> However, this idea is still in the brain storming phase.
> 
> Since that would involve a very big redesign I don't think its feasible
> currently.

Sounds interesting, at least for me...



Kind regards,
   Christian

-- 
Dr. Christian Storm
Siemens AG, Corporate Technology, CT RDA ITP SES-DE
Otto-Hahn-Ring 6, 81739 M�nchen, Germany

  reply	other threads:[~2017-11-20  8:34 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-03  8:13 Claudius Heine
2017-08-21 11:23 ` Claudius Heine
2017-08-28 11:27   ` Claudius Heine
2017-09-05 10:05     ` Alexander Smirnov
2017-09-05 10:38       ` Jan Kiszka
2017-09-05 11:50         ` Alexander Smirnov
2017-09-05 11:54       ` Claudius Heine
2017-09-06 13:39         ` Claudius Heine
2017-09-18 15:05 ` Baurzhan Ismagulov
2017-09-19  8:55   ` Claudius Heine
2017-11-14 16:04 ` Christian Storm
2017-11-14 16:22   ` Claudius Heine
2017-11-17 16:53     ` [ext] Christian Storm
2017-11-17 18:14       ` Claudius Heine
2017-11-20  8:33         ` [ext] Christian Storm [this message]
2017-11-20  9:16           ` Claudius Heine
2017-11-29 18:53             ` Alexander Smirnov
2017-11-29 19:02               ` Jan Kiszka
2017-11-30  8:04                 ` Alexander Smirnov
2017-11-30 14:48                   ` Jan Kiszka
2017-11-30  9:31               ` Claudius Heine
2017-12-06 16:21                 ` Alexander Smirnov

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=20171120083322.mz7uiz7nbgesf2qp@MD1KR9XC.ww002.siemens.net \
    --to=christian.storm@siemens.com \
    --cc=isar-users@googlegroups.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