[Notes] [Git][BuildStream/buildstream][jjardon/distros] 6 commits: .gitlab-ci.yml: Do not automatically run "test-wsl" until runner problems are sorted out



Title: GitLab

Javier Jardón pushed to branch jjardon/distros at BuildStream / buildstream

Commits:

4 changed files:

Changes:

  • .gitlab-ci.yml
    ... ... @@ -166,6 +166,7 @@ tests-wsl:
    166 166
     
    
    167 167
       script:
    
    168 168
       - "${TEST_COMMAND}"
    
    169
    +  when: manual
    
    169 170
     
    
    170 171
     # Automatically build documentation for every commit, we want to know
    
    171 172
     # if building documentation fails even if we're not deploying it.
    

  • README.rst
    ... ... @@ -19,6 +19,8 @@ About
    19 19
     .. image:: https://app.fossa.io/api/projects/git%2Bgitlab.com%2FBuildStream%2Fbuildstream.svg?type=shield
    
    20 20
        :target: https://app.fossa.io/projects/git%2Bgitlab.com%2FBuildStream%2Fbuildstream?ref=badge_shield
    
    21 21
     
    
    22
    +.. image:: https://repology.org/badge/vertical-allrepos/buildstream.svg
    
    23
    +   :target: https://repology.org/metapackage/buildstream/versions
    
    22 24
     
    
    23 25
     What is BuildStream?
    
    24 26
     ====================
    

  • buildstream/_cas/cascache.py
    ... ... @@ -35,6 +35,8 @@ from .._exceptions import CASCacheError
    35 35
     
    
    36 36
     from .casremote import BlobNotFound, _CASBatchRead, _CASBatchUpdate
    
    37 37
     
    
    38
    +_BUFFER_SIZE = 65536
    
    39
    +
    
    38 40
     
    
    39 41
     # A CASCache manages a CAS repository as specified in the Remote Execution API.
    
    40 42
     #
    
    ... ... @@ -371,7 +373,7 @@ class CASCache():
    371 373
                 with contextlib.ExitStack() as stack:
    
    372 374
                     if path is not None and link_directly:
    
    373 375
                         tmp = stack.enter_context(open(path, 'rb'))
    
    374
    -                    for chunk in iter(lambda: tmp.read(4096), b""):
    
    376
    +                    for chunk in iter(lambda: tmp.read(_BUFFER_SIZE), b""):
    
    375 377
                             h.update(chunk)
    
    376 378
                     else:
    
    377 379
                         tmp = stack.enter_context(utils._tempnamedfile(dir=self.tmpdir))
    
    ... ... @@ -380,7 +382,7 @@ class CASCache():
    380 382
     
    
    381 383
                         if path:
    
    382 384
                             with open(path, 'rb') as f:
    
    383
    -                            for chunk in iter(lambda: f.read(4096), b""):
    
    385
    +                            for chunk in iter(lambda: f.read(_BUFFER_SIZE), b""):
    
    384 386
                                     h.update(chunk)
    
    385 387
                                     tmp.write(chunk)
    
    386 388
                         else:
    

  • buildstream/utils.py
    ... ... @@ -235,7 +235,7 @@ def sha256sum(filename):
    235 235
         try:
    
    236 236
             h = hashlib.sha256()
    
    237 237
             with open(filename, "rb") as f:
    
    238
    -            for chunk in iter(lambda: f.read(4096), b""):
    
    238
    +            for chunk in iter(lambda: f.read(65536), b""):
    
    239 239
                     h.update(chunk)
    
    240 240
     
    
    241 241
         except OSError as e:
    



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]