Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) by mx.groups.io with SMTP id smtpd.web10.29518.1606545262981318567 for ; Fri, 27 Nov 2020 22:34:23 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bitshift-dynamics-com.20150623.gappssmtp.com header.s=20150623 header.b=nxkDRnO6; spf=pass (domain: bitshift-dynamics.com, ip: 209.85.218.44, mailfrom: nassian@bitshift-dynamics.com) Received: by mail-ej1-f44.google.com with SMTP id f9so8398273ejw.4 for ; Fri, 27 Nov 2020 22:34:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bitshift-dynamics-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=PzyO/3Z4m/VBV7lUkHoXjD7dwt6qHYlXBcjM+kuDF3w=; b=nxkDRnO6wDVymyJb0Evtl74DFdLXtQ83HUa/QKbh0XMpP5n61CyeXCU4YX7oVRQ9Zq Et/I607VPV0NkE59Mn0/F7HIKycQvJrzRwzNMkE/dAfLyAQbsRrCqrXjNs7dt2QI0YG2 fXiO4hoYDmLJbrVe+7+vVwZD68BIGMSz/U9ojSwAOehZhdIIJfDMHzE00nE2B9rp+4o3 WOX/38KjxWy/FvQ5DNkzZmAZdNdDMHNSpTUgXRR89dIxKCLYe4UgBAmiVFzHb6oxuyrf ZpU6YWIlyHbX44VlDXbQysJI36tqswYcO3x8A5luUnFMfOjy4/K09PiXPAwRJ8aD4gk6 AQvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=PzyO/3Z4m/VBV7lUkHoXjD7dwt6qHYlXBcjM+kuDF3w=; b=VyLl43/yZSiBQOty9jbrijvFR5T9LN1GfGZ3eNpgDUPPIzivYkcsPmyAeYQ8H4YU3G mVeVCN23JLsu+v4nqmpMdPvFhpaHsUlIPZdkstamNen07jBFpHgZguxlF5LcRW8KMdAW XTs+jOQiVeF1Vao7aGceFMtV/bOrTjlB/oBKa5Dbl1OfYNvqOrfIWRAuUz+RaSiV0/pU rDYiZyWoqIEV0cew08YQthCsjoQsK2MhFqUp3/n2ExtvCdNw0rrd7iyEd5osyGR+HwDH 81nml+DJzrNffyTraFBnscF4J6hBPZYYLBb+FK09oaUsv1cLp3HNufZ1ASTphc/1AhVc 7ovA== X-Gm-Message-State: AOAM532f+7/YnRbCD7hvPfE2WqKVtDrN3XvUwOMACV8+gtaOYJg/o66H Y380UTqMCt+Pjgo6ZtRvHJf663Aw3yZg2N3aR5fDPPo+UmTWNbkNigS5gqoWWshwdV4VWdIW9W9 m3WwBnVVlK9HvFdb4 X-Google-Smtp-Source: ABdhPJyUKe0H6gOoyDhYLEATISvm/bbY8tWQ//KL3QP2PT7rseQqf8BICv0t66UWZF90SCCLgDNg5A== X-Received: by 2002:a17:906:e086:: with SMTP id gh6mr746668ejb.95.1606545261151; Fri, 27 Nov 2020 22:34:21 -0800 (PST) Return-Path: Received: from alexanders-air.localdomain (b2b-37-24-167-90.unitymedia.biz. [37.24.167.90]) by smtp.gmail.com with ESMTPSA id qu21sm1884543ejb.95.2020.11.27.22.34.20 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Nov 2020 22:34:20 -0800 (PST) From: "Alexander Nassian" Message-Id: <7969D9CA-F0CF-493A-BE80-59D3AB06009C@bitshift-dynamics.com> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.20.0.2.21\)) Subject: Re: [poky] Adding S3 as option for sstate Date: Sat, 28 Nov 2020 07:34:19 +0100 In-Reply-To: Cc: poky@lists.yoctoproject.org To: Matt Madison References: <63DA0CC5-889D-4A42-BA28-31EEBD45BF07@bitshift-dynamics.com> X-Mailer: Apple Mail (2.3654.20.0.2.21) Content-Type: multipart/alternative; boundary="Apple-Mail=_55D1553B-E02D-4FD3-8232-454B6017A50E" --Apple-Mail=_55D1553B-E02D-4FD3-8232-454B6017A50E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Thank you very much for your feedback and sharing your solution! I will def= inetly have a look into it, but had a very busy online training week. If I see it right your class enables pulling sstate packages from S3 but no= t uploading them on the go like the filesystem module, right? Beste Gr=C3=BC=C3=9Fe / Best regards, Alexander Nassian, Gesch=C3=A4ftsf=C3=BChrer / CEO nassian@bitshift-dynamics.com > Am 14.11.2020 um 15:30 schrieb Matt Madison : >=20 > On Fri, Nov 13, 2020 at 11:50 PM Alexander Nassian > wrote: >>=20 >> Hi together, >>=20 >> We would like to extend poky to be able to write and read sstate package= s not only from HTTP and FILE but also S3 buckets which would fit our CI se= tup much better than our current =E2=80=9Ezip everything and upload to S3= =E2=80=9C in terms of incremental speed up builds. I already did some resea= rch if there is something read-to-use but didn=E2=80=99t find anything. >>=20 >> My two questions are: >> 1. Do you have any hint where to hook into? I already went through runqu= eue.py but I=E2=80=99m just a extensive user of poky, never worked on itsel= f. >> 2. Would that change have any chance to be accepted upstream, or is this= something too special for the project? >=20 > I have a CI setup that I host in EC2 using an S3 bucket for mirroring > and have implemented some hooks that make it work better for me. The > basic parts consist of a replacement for the built-in S3 fetcher and a > bbclass to assist with populating the S3-hosted mirror. I have a > writeup on it at > https://github.com/madisongh/tegra-test-distro/wiki/Using-AWS-S3-for-ssta= te-and-downloads-mirrors > if you're interested. It may not be the right answer for you, but it > may give you some ideas. >=20 > Regards, > -Matt --=20 =E2=80=94 bitshift dynamics GmbH Neudorfer Str. 1, 79541 L=C3=B6rrach Registergericht: Amtsgericht Freiburg i. Breisgau,=C2=A0HRB 713747 Gesch=C3=A4ftsf=C3=BChrer: Alexander Nassian,=C2=A0Markus Pfaffinger https://bitshift-dynamics.com Phone: +49=20 762158673 - 0 General support:=C2=A0info@bitshift-dynamics.com=20 Technical support:=C2=A0 support@bitshift-dynamics.com Accounting: invoice@bitshift-dynamics.com=20 --Apple-Mail=_55D1553B-E02D-4FD3-8232-454B6017A50E Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="UTF-8" Thank you very much for yo= ur feedback and sharing your solution! I will definetly have a look into it= , but had a very busy online training week.

<= /div>
If I see it right your class enables pulling sstate pa= ckages from S3 but not uploading them on the go like the filesystem module,= right?

Beste Gr=C3=BC=C3=9Fe / Best regar= ds,

Alexander Nassian, Gesch=C3=A4ftsf=C3=BChr= er / CEO
nassian@bitshift-dynamics.com

Am= 14.11.2020 um 15:30 schrieb Matt Madison <matt@madison.systems>:

On Fri, Nov 13, 2020 = at 11:50 PM Alexander Nassian
<nassian@bitshift-dynamics.com> wrot= e:

Hi tog= ether,

We would like to extend poky to be able= to write and read sstate packages not only from HTTP and FILE but also S3 = buckets which would fit our CI setup much better than our current =E2=80=9E= zip everything and upload to S3=E2=80=9C in terms of incremental speed up b= uilds. I already did some research if there is something read-to-use but di= dn=E2=80=99t find anything.

My two questions a= re:
1. Do you have any hint where to hook into? I already wen= t through runqueue.py but I=E2=80=99m just a extensive user of poky, never = worked on itself.
2. Would that change have any chance to be = accepted upstream, or is this something too special for the project?

I have a CI setup that I host in EC2 us= ing an S3 bucket for mirroring
and have implemented some hook= s that make it work better for me.  The
basic parts cons= ist of a replacement for the built-in S3 fetcher and a
bbclas= s to assist with populating the S3-hosted mirror.  I have a
writeup on it at
https://github.com/madisongh/tegra-test-distro/wiki/Using-AWS-S3-fo= r-sstate-and-downloads-mirrors
if you're interested. &nbs= p;It may not be the right answer for you, but it
may give you= some ideas.

Regards,
-Matt


=E2=80=94

bitshift dynamics GmbH
Neudorfer Str. 1, 79541 L=C3= =B6rrach
Registergericht: Amtsgericht Freiburg i. Breisgau,=C2=A0HRB 713= 747
Gesch=C3=A4ftsf=C3=BChrer: Alexander Nassian,=C2=A0Markus Pfaffinger=

https://bitshift-dynamics.com

Phone:= +49 762158673 - 0
General support:=C2=A0info@bitshift-dynamics.com
Tec= hnical support:=C2=A0support@bitshift-dynamics.com
Accounting: invoice@bitshif= t-dynamics.com

--Apple-Mail=_55D1553B-E02D-4FD3-8232-454B6017A50E--