You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2021/10/22 11:43:51 UTC
[libcloud] branch trunk updated (32653fe -> 53e5cf4)
This is an automated email from the ASF dual-hosted git repository.
tomaz pushed a change to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git.
from 32653fe Add additional test cases for asserting that timeout argument is correctly passed to the underlying requests send() method.
new 044d990 Reduce timeout.
add ac00b5b Optimized 'iterate_container_objects' by filtering the objects before creating the iterator
add 1500242 removed a call to _filter_listed_container_objects
new e7f525b Merge branch 'get_objects_with_prefix' of https://github.com/Ido-Levi/libcloud into Ido-Levi-get_objects_with_prefix
new c1f2d86 Add changelog entry for #1584.
new 53e5cf4 Add additional assertion.
The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.github/workflows/integration-tests.yml | 2 +-
CHANGES.rst | 5 +++++
libcloud/storage/drivers/local.py | 11 +++++++----
libcloud/test/storage/test_local.py | 5 +++++
4 files changed, 18 insertions(+), 5 deletions(-)
[libcloud] 01/04: Reduce timeout.
Posted by to...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git
commit 044d990da342be581d14288b810da43c177da57c
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Fri Oct 22 13:16:38 2021 +0200
Reduce timeout.
---
.github/workflows/integration-tests.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml
index bf6b944..6085bc3 100644
--- a/.github/workflows/integration-tests.yml
+++ b/.github/workflows/integration-tests.yml
@@ -37,7 +37,7 @@ jobs:
integration_tests:
name: Run Integration Tests
runs-on: ubuntu-latest
- timeout-minutes: 30
+ timeout-minutes: 20
needs: pre_job
if: ${{ needs.pre_job.outputs.should_skip == 'false' || github.ref == 'refs/heads/trunk' }}
[libcloud] 03/04: Add changelog entry for #1584.
Posted by to...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git
commit c1f2d86fe9a5eb7354184efcf5970fb566a58e07
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Fri Oct 22 13:38:49 2021 +0200
Add changelog entry for #1584.
---
CHANGES.rst | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/CHANGES.rst b/CHANGES.rst
index 042724a..9dcd3a9 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -30,6 +30,11 @@ Storage
Reported by Melissa Kersh - @mkcello96
(GITHUB-1551)
+- [Local Storage] Optimize ``iterate_container_objects`` method to perform
+ early filtering if ``prefix`` argument is provided.
+ (GITHUB-1584)
+ [@Ido-Levi]
+
Compute
~~~~~~~
[libcloud] 02/04: Merge branch 'get_objects_with_prefix' of
https://github.com/Ido-Levi/libcloud into Ido-Levi-get_objects_with_prefix
Posted by to...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git
commit e7f525b0cd4b613686f44b01fb18da9d512f4621
Merge: 044d990 1500242
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Fri Oct 22 13:37:45 2021 +0200
Merge branch 'get_objects_with_prefix' of https://github.com/Ido-Levi/libcloud into Ido-Levi-get_objects_with_prefix
libcloud/storage/drivers/local.py | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
[libcloud] 04/04: Add additional assertion.
Posted by to...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git
commit 53e5cf48c7469b01548f0c36ba870a7fd5c5f55b
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Fri Oct 22 13:40:14 2021 +0200
Add additional assertion.
---
libcloud/test/storage/test_local.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libcloud/test/storage/test_local.py b/libcloud/test/storage/test_local.py
index f1d5d59..cfd5d44 100644
--- a/libcloud/test/storage/test_local.py
+++ b/libcloud/test/storage/test_local.py
@@ -159,6 +159,11 @@ class LocalTests(unittest.TestCase):
objects = self.driver.list_container_objects(container=container)
self.assertEqual(len(objects), 5)
+ prefix = os.path.join('path', 'invalid')
+ objects = self.driver.list_container_objects(container=container,
+ prefix=prefix)
+ self.assertEqual(len(objects), 0)
+
prefix = os.path.join('path', 'to')
objects = self.driver.list_container_objects(container=container,
prefix=prefix)