You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a first-time contributor, I'd like some help. Where should I implement the new InterruptibleStringStream class (like in libutils or a specific folder)? Also, is this 👇🏽 where is the S3Helper is implemented ?
I'm somewhat confused by the current implementation. Why does S3 fetching live inside curlFileTransfer, while having absolutely nothing to do with curl. The code is already littered with FIXME/TODO and the "easy" fix would pile even more complexity on this class. SRP is totally broken here. Maybe the better thing to do would be to define an abstract interface for fetching and move the code related to S3 into its own implementation?
Also S3 fetching is already problematic and it's not clear how it handles compressed streams? Does the AWS SDK handle the decompression (can it even do that?) or should it be handled the same way that it's done for regular HTTP with libarchive and TarArchive and Sinks/Sources? #11261
It would be very helpful to define interface boundaries so that there are clear and defined requirements and api for file transfers/stream decompression/progress tracking. This would be better in the long run than piling amazingly complex logic into a single class.
Activity
zacharyftw commentedon Oct 11, 2024
@edolstra ill work on this issue if you can assign me this
zacharyftw commentedon Oct 11, 2024
As a first-time contributor, I'd like some help. Where should I implement the new
InterruptibleStringStreamclass (like in libutils or a specific folder)? Also, is this 👇🏽 where is theS3Helperis implemented ?nix/src/libstore/s3-binary-cache-store.cc
Line 92 in dbcd4cd
xokdvium commentedon Nov 8, 2024
I'm somewhat confused by the current implementation. Why does S3 fetching live inside
curlFileTransfer, while having absolutely nothing to do with curl. The code is already littered with FIXME/TODO and the "easy" fix would pile even more complexity on this class. SRP is totally broken here. Maybe the better thing to do would be to define an abstract interface for fetching and move the code related to S3 into its own implementation?xokdvium commentedon Nov 8, 2024
Also S3 fetching is already problematic and it's not clear how it handles compressed streams? Does the AWS SDK handle the decompression (can it even do that?) or should it be handled the same way that it's done for regular HTTP with libarchive and
TarArchiveand Sinks/Sources? #11261It would be very helpful to define interface boundaries so that there are clear and defined requirements and api for file transfers/stream decompression/progress tracking. This would be better in the long run than piling amazingly complex logic into a single class.
RossComputerGuy commentedon Jan 10, 2025
I've made an attempt in #12227, it's a little delayed at closing out but it does seem to improve the problem.
lovesegfault commentedon Oct 17, 2025
Fixed by #13752