Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 1/1] utils/genrandconfing: randomly enable BR2_REPRODUCIBLE 10% of the times
@ 2019-06-07  8:55 Atharva Lele
  2019-06-07  9:08 ` Arnout Vandecappelle
  0 siblings, 1 reply; 3+ messages in thread
From: Atharva Lele @ 2019-06-07  8:55 UTC (permalink / raw)
  To: buildroot

Initial patch to start reproducibility testing.

Also enable tar filesystem to compare images since diffoscope works well
with tar.

Signed-off-by: Atharva Lele <itsatharva@gmail.com>

---
Changes v1 -> v2:
  - Remove unnecessary lines that were default anyway (suggested by Arnout)

Signed-off-by: Atharva Lele <itsatharva@gmail.com>
---
 utils/genrandconfig | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/utils/genrandconfig b/utils/genrandconfig
index 5f3fe23260..aa5e151b7f 100755
--- a/utils/genrandconfig
+++ b/utils/genrandconfig
@@ -366,6 +366,12 @@ def gen_config(args):
     if randint(0, 4) == 0:
         configlines.append("BR2_SYSTEM_ENABLE_NLS=y\n")
 
+    # Randomly enable BR2_REPRODUCIBLE 10% of times
+    # also enable tar filesystem images for testing
+    if randint(0, 10) == 0:
+        configlines.append("BR2_REPRODUCIBLE=y\n")
+        configlines.append("BR2_TARGET_ROOTFS_TAR=y\n")
+
     # Write out the configuration file
     if not os.path.exists(args.outputdir):
         os.makedirs(args.outputdir)
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH v2 1/1] utils/genrandconfing: randomly enable BR2_REPRODUCIBLE 10% of the times
  2019-06-07  8:55 [Buildroot] [PATCH v2 1/1] utils/genrandconfing: randomly enable BR2_REPRODUCIBLE 10% of the times Atharva Lele
@ 2019-06-07  9:08 ` Arnout Vandecappelle
  2019-06-07  9:12   ` Atharva Lele
  0 siblings, 1 reply; 3+ messages in thread
From: Arnout Vandecappelle @ 2019-06-07  9:08 UTC (permalink / raw)
  To: buildroot



On 07/06/2019 10:55, Atharva Lele wrote:
> Initial patch to start reproducibility testing.
> 
> Also enable tar filesystem to compare images since diffoscope works well
> with tar.
> 
> Signed-off-by: Atharva Lele <itsatharva@gmail.com>

 You forgot to add my

Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>

(note that patchwork will automatically pick it up, so when someone applies the
patch, it will have my Reviewed-by tag now.)

> 
> ---
> Changes v1 -> v2:
>   - Remove unnecessary lines that were default anyway (suggested by Arnout)
> 
> Signed-off-by: Atharva Lele <itsatharva@gmail.com>

 This second Sob is not needed. But there's no harm in it, it will be stripped
off automatically when applying.

 Regards,
 Arnout

> ---
>  utils/genrandconfig | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/utils/genrandconfig b/utils/genrandconfig
> index 5f3fe23260..aa5e151b7f 100755
> --- a/utils/genrandconfig
> +++ b/utils/genrandconfig
> @@ -366,6 +366,12 @@ def gen_config(args):
>      if randint(0, 4) == 0:
>          configlines.append("BR2_SYSTEM_ENABLE_NLS=y\n")
>  
> +    # Randomly enable BR2_REPRODUCIBLE 10% of times
> +    # also enable tar filesystem images for testing
> +    if randint(0, 10) == 0:
> +        configlines.append("BR2_REPRODUCIBLE=y\n")
> +        configlines.append("BR2_TARGET_ROOTFS_TAR=y\n")
> +
>      # Write out the configuration file
>      if not os.path.exists(args.outputdir):
>          os.makedirs(args.outputdir)
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH v2 1/1] utils/genrandconfing: randomly enable BR2_REPRODUCIBLE 10% of the times
  2019-06-07  9:08 ` Arnout Vandecappelle
@ 2019-06-07  9:12   ` Atharva Lele
  0 siblings, 0 replies; 3+ messages in thread
From: Atharva Lele @ 2019-06-07  9:12 UTC (permalink / raw)
  To: buildroot

Hmm, something funky happened with my editor and it added the second
signed-off
and remove the reviewed by. Anyway, I'll make sure that its alright next
time.

Regards,
Atharva Lele


On Fri, Jun 7, 2019 at 2:38 PM Arnout Vandecappelle <arnout@mind.be> wrote:

>
>
> On 07/06/2019 10:55, Atharva Lele wrote:
> > Initial patch to start reproducibility testing.
> >
> > Also enable tar filesystem to compare images since diffoscope works well
> > with tar.
> >
> > Signed-off-by: Atharva Lele <itsatharva@gmail.com>
>
>  You forgot to add my
>
> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
>
> (note that patchwork will automatically pick it up, so when someone
> applies the
> patch, it will have my Reviewed-by tag now.)
>
> >
> > ---
> > Changes v1 -> v2:
> >   - Remove unnecessary lines that were default anyway (suggested by
> Arnout)
> >
> > Signed-off-by: Atharva Lele <itsatharva@gmail.com>
>
>  This second Sob is not needed. But there's no harm in it, it will be
> stripped
> off automatically when applying.
>
>  Regards,
>  Arnout
>
> > ---
> >  utils/genrandconfig | 6 ++++++
> >  1 file changed, 6 insertions(+)
> >
> > diff --git a/utils/genrandconfig b/utils/genrandconfig
> > index 5f3fe23260..aa5e151b7f 100755
> > --- a/utils/genrandconfig
> > +++ b/utils/genrandconfig
> > @@ -366,6 +366,12 @@ def gen_config(args):
> >      if randint(0, 4) == 0:
> >          configlines.append("BR2_SYSTEM_ENABLE_NLS=y\n")
> >
> > +    # Randomly enable BR2_REPRODUCIBLE 10% of times
> > +    # also enable tar filesystem images for testing
> > +    if randint(0, 10) == 0:
> > +        configlines.append("BR2_REPRODUCIBLE=y\n")
> > +        configlines.append("BR2_TARGET_ROOTFS_TAR=y\n")
> > +
> >      # Write out the configuration file
> >      if not os.path.exists(args.outputdir):
> >          os.makedirs(args.outputdir)
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20190607/003303c5/attachment.html>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-06-07  9:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-07  8:55 [Buildroot] [PATCH v2 1/1] utils/genrandconfing: randomly enable BR2_REPRODUCIBLE 10% of the times Atharva Lele
2019-06-07  9:08 ` Arnout Vandecappelle
2019-06-07  9:12   ` Atharva Lele

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox