Skip to content

Commit

Permalink
Merge pull request #90 from aiidateam/develop
Browse files Browse the repository at this point in the history
Release of version 0.4.0
  • Loading branch information
giovannipizzi authored Jul 20, 2020
2 parents 1589096 + 9aa52ca commit c718ffd
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# v0.4.0 (20 July 2020)
- Major robustness improvements and new functionality (possibility to pack while using the repository, tested on all platforms)
- Not deleting loose files when packing; now there is a `clean_storage()` function to do it afterwards, as a maintenance operation
- Backward-incompatible change to the Container format (now it expects a `duplicates` folder, so old repositories do not work out of the box)
- Added various functionality to delete objects, validate the packs, list all objects, possibility to seek() into returned objects
- Added continuous-integation benchmarks
- Various bugfixes

# v0.3.0 (22 June 2020)
- Changed the logic of packing: now packs are not determined anymore from the first few characters of the UUID/hash, but they are sequential integers with capped max size
- Complete major rewrite of the library, where now objects are deduplicated and use a SHA256 hash to be identified. This is a backward-incompatible version, but provides much higher robustness and features, making it almost production ready (only a few useful functions need still to be implemented to facilitate repository management, like the option to perform a full repack of a repository.

# v0.2.1 (13 April 2020)
- Improving testing and continuous integration, badges, and homepage

# v0.2.0 (10 April 2020)
- Rename of the project and implementation of a number of functions

# v0.1.0 (1 April 2020)
- This is the very first version. Uses random UUIDs to identify objects.

2 changes: 1 addition & 1 deletion disk_objectstore/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -1457,7 +1457,7 @@ def clean_storage(self): # pylint: disable=too-many-branches
# I just ignore, I will remove it in a future call of this method.
pass

def export(self, hashkeys, other_container, compress=True, target_memory_bytes=104857600):
def export(self, hashkeys, other_container, compress=False, target_memory_bytes=104857600):
"""Export the specified hashkeys to a new container (must be already initialised).
:param hashkeys: an iterable of hash keys.
Expand Down
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@
'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8', 'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent', 'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX :: Linux',
'Topic :: Software Development :: Libraries :: Python Modules'
'Operating System :: MacOS :: MacOS X', 'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux', 'Topic :: Software Development :: Libraries :: Python Modules'
],
)

2 comments on commit c718ffd

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Benchmark on ubuntu-latest'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: c718ffd Previous: 9aa52ca Ratio
tests/test_benchmark.py::test_loose_write 0.11891719609371995 iter/sec (stddev: 0.06503253025899901) 0.8395174685297763 iter/sec (stddev: 0.10884832637939403) 7.06

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Benchmark on macos-latest'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: c718ffd Previous: 9aa52ca Ratio
tests/test_benchmark.py::test_list_all_loose 1778739.473984469 iter/sec (stddev: 7.581084868945942e-7) 4001441.3809666643 iter/sec (stddev: 1.040881353911888e-7) 2.25

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.