Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Issue 2049523004: luci-py: Tools for working with BSD style ar archives. (Closed)

Created:
4 years, 6 months ago by mithro
Modified:
4 years, 4 months ago
CC:
chromium-reviews, infra-reviews+luci-py_chromium.org
Base URL:
https://github.com/luci/luci-py.git@master
Project:
luci-py
Visibility:
Public.

Description

luci-py: Tools for working with BSD style ar archives. ar archives are the simplest format that satisfies the following criteria; * Is an existing standard which has tools which ship on standard Linux systems. * Requires no escaping / processing of file contents. * Header can be written without needing to understand the whole file. * Extremely fast to process / generate. Other formats which were consider before selecting the ar format; * tar * zip * cpio * rar * Something protobuf based. There are a couple of drawbacks; * The ar format doesn't support special files or symlinks. * The Linux ar tool don't extract with directory paths (listing is fine). The go version is in https://codereview.chromium.org/2043623002 * https://github.com/luci/luci-go/issues/9 * https://crbug.com/598990 BUG=598990 Committed: https://github.com/luci/luci-py/commit/6952ff7c2a890381a9745558f1aeb5fa499e727b

Patch Set 1 #

Patch Set 2 : Removing the hashbang line. #

Total comments: 29

Patch Set 3 : Fixing for Maruel's review. #

Total comments: 29

Patch Set 4 : Reworking API to better match zipfile/tarfile API. #

Total comments: 29

Patch Set 5 : Fixing for Marc's review. #

Total comments: 9

Patch Set 6 : Fixing nits. #

Patch Set 7 : Rebase onto master. #

Patch Set 8 : Small fixes. #

Patch Set 9 : Make unicode stuff work. #

Patch Set 10 : Adding missing unicode tests. #

Total comments: 34

Patch Set 11 : Fixing for review. #

Total comments: 1

Patch Set 12 : Rebase onto master #

Patch Set 13 : Fixing Marc's last comment. #

Patch Set 14 : Skip the unicode path test on broken systems. #

Patch Set 15 : Small unicode fix. #

Patch Set 16 : Small rebase. #

Patch Set 17 : Actually fix the unicode problem properly. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1148 lines, -0 lines) Patch
A client/artool View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A client/libs/arfile/__init__.py View 1 2 3 4 5 6 7 8 1 chunk +17 lines, -0 lines 0 comments Download
A client/libs/arfile/arfile.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +353 lines, -0 lines 0 comments Download
A client/libs/arfile/arfile_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +603 lines, -0 lines 0 comments Download
A client/libs/arfile/cli.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +173 lines, -0 lines 0 comments Download

Messages

Total messages: 58 (36 generated)
mithro
Hi Marc, Here is the Python version of the ar archive code (this is a ...
4 years, 6 months ago (2016-06-09 16:50:29 UTC) #2
M-A Ruel
https://codereview.chromium.org/2049523004/diff/20001/client/libs/ar/cli.py File client/libs/ar/cli.py (right): https://codereview.chromium.org/2049523004/diff/20001/client/libs/ar/cli.py#newcode32 client/libs/ar/cli.py:32: print("Took %f for %i files == %f files/second" % ...
4 years, 6 months ago (2016-06-09 21:50:44 UTC) #3
mithro
Hi Marc, Updated, PTAL. Tim 'mithro' Ansell https://codereview.chromium.org/2049523004/diff/20001/client/libs/ar/cli.py File client/libs/ar/cli.py (right): https://codereview.chromium.org/2049523004/diff/20001/client/libs/ar/cli.py#newcode32 client/libs/ar/cli.py:32: print("Took %f ...
4 years, 6 months ago (2016-06-14 12:15:55 UTC) #5
M-A Ruel
https://codereview.chromium.org/2049523004/diff/20001/client/libs/ar/reader.py File client/libs/ar/reader.py (right): https://codereview.chromium.org/2049523004/diff/20001/client/libs/ar/reader.py#newcode38 client/libs/ar/reader.py:38: check = self.check On 2016/06/14 12:15:55, mithro wrote: > ...
4 years, 6 months ago (2016-06-14 13:26:17 UTC) #6
mithro
Hi Marc, I've spent a bunch of time today reworking the API of this code ...
4 years, 6 months ago (2016-06-16 11:37:12 UTC) #8
M-A Ruel
looks good, mostly styling nits, generally fine with the design. https://codereview.chromium.org/2049523004/diff/60001/client/libs/arfile/__init__.py File client/libs/arfile/__init__.py (right): https://codereview.chromium.org/2049523004/diff/60001/client/libs/arfile/__init__.py#newcode9 ...
4 years, 6 months ago (2016-06-16 14:57:05 UTC) #9
mithro
Hi Marc, I've fixed everything except your requested change around verbose. The artool command is ...
4 years, 6 months ago (2016-06-17 06:44:51 UTC) #10
M-A Ruel
lgtm with nits https://codereview.chromium.org/2049523004/diff/60001/client/libs/arfile/cli.py File client/libs/arfile/cli.py (right): https://codereview.chromium.org/2049523004/diff/60001/client/libs/arfile/cli.py#newcode139 client/libs/arfile/cli.py:139: for p in parser_create, parser_extract: On ...
4 years, 6 months ago (2016-06-17 13:26:50 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2049523004/140001
4 years, 6 months ago (2016-06-22 11:29:01 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Luci-py Presubmit on master.tryserver.infra (JOB_FAILED, https://build.chromium.org/p/tryserver.infra/builders/Luci-py%20Presubmit/builds/1034)
4 years, 6 months ago (2016-06-22 11:32:33 UTC) #15
mithro
I've also; * Added a bunch of unicode unittests * Changed to using io module ...
4 years, 6 months ago (2016-06-22 13:05:30 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2049523004/180001
4 years, 6 months ago (2016-06-22 13:07:01 UTC) #18
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-22 13:09:12 UTC) #20
M-A Ruel
https://codereview.chromium.org/2049523004/diff/180001/client/PRESUBMIT.py File client/PRESUBMIT.py (right): https://codereview.chromium.org/2049523004/diff/180001/client/PRESUBMIT.py#newcode49 client/PRESUBMIT.py:49: r'.*tests\.py$', Please rename test instead of creating a one-off ...
4 years, 6 months ago (2016-06-22 14:21:32 UTC) #21
mithro
https://codereview.chromium.org/2049523004/diff/180001/client/PRESUBMIT.py File client/PRESUBMIT.py (right): https://codereview.chromium.org/2049523004/diff/180001/client/PRESUBMIT.py#newcode49 client/PRESUBMIT.py:49: r'.*tests\.py$', On 2016/06/22 14:21:31, M-A Ruel wrote: > Please ...
4 years, 6 months ago (2016-06-23 07:10:55 UTC) #22
M-A Ruel
lgtm with one issue https://codereview.chromium.org/2049523004/diff/240001/client/libs/arfile/arfile.py File client/libs/arfile/arfile.py (right): https://codereview.chromium.org/2049523004/diff/240001/client/libs/arfile/arfile.py#newcode16 client/libs/arfile/arfile.py:16: AR_FORMAT_SIMPLE = ['Simple Format'] IMHO ...
4 years, 6 months ago (2016-06-23 13:22:07 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2049523004/320001
4 years, 4 months ago (2016-07-28 14:11:01 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2049523004/320001
4 years, 4 months ago (2016-07-28 14:40:50 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: Luci-py Presubmit on luci.infra.try (JOB_FAILED, https://luci-milo.appspot.com/swarming/task/304ac589adec0e10)
4 years, 4 months ago (2016-07-28 14:43:50 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2049523004/340001
4 years, 4 months ago (2016-07-28 15:27:34 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2049523004/360001
4 years, 4 months ago (2016-07-28 15:40:51 UTC) #56
commit-bot: I haz the power
4 years, 4 months ago (2016-07-28 15:43:34 UTC) #58
Message was sent while issue was closed.
Committed patchset #17 (id:360001) as
https://github.com/luci/luci-py/commit/6952ff7c2a890381a9745558f1aeb5fa499e727b

Powered by Google App Engine
This is Rietveld 408576698