-
Notifications
You must be signed in to change notification settings - Fork 29
Nodeports/add file checksum #2011
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
sanderegg
merged 74 commits into
ITISFoundation:master
from
sanderegg:nodeports/add_file_checksum
Dec 14, 2020
Merged
Changes from all commits
Commits
Show all changes
74 commits
Select commit
Hold shift + click to select a range
61d983a
ensure storage is in debug mode when in devel
sanderegg 13f3f2c
format
sanderegg e624fc2
missing alembic
sanderegg 4410e61
added pytest-black
sanderegg f5e09e3
formatting
sanderegg 266e771
added annotations
sanderegg a854b5c
repair merge
sanderegg 6299a11
missing alembic for testing
sanderegg 32f739c
set back minio
sanderegg cfc2e98
Squashed commit of the following:
sanderegg 6a1d7b9
add some unit tests
sanderegg ddc1fd2
more unit tests
sanderegg ee429bb
improve types
sanderegg 7a960ef
use pydantic with email validator
sanderegg 27fbeba
re-use classes from models library
sanderegg c09e739
use model library as base
sanderegg 17647b6
fix uuid
sanderegg 1376d12
PortLink without UUID
sanderegg b78d1d8
adjust test
sanderegg ef3ffc1
test possible port options
sanderegg b2df427
test port options
sanderegg 06466d5
correctly check value in port validation
sanderegg 5fbdad8
unit tests getting better, using fake storage calls
sanderegg 206eb38
testing download links as well
sanderegg 7d023b6
check portlink
sanderegg 6509f4d
improve verbosity
sanderegg d377702
linter
sanderegg 5ce66e4
getting there with unit testing port
sanderegg e4c1494
last check before running out of the train
sanderegg 0b40a7d
Port fully tested
sanderegg 5bc9747
create new file
sanderegg c3d06c3
fixed mocking of download data
sanderegg 49d44fc
fix file to key map
sanderegg 73580e7
ensure if a file is already there it does not create issues
sanderegg 5540642
adding test of port mapping
sanderegg 08e4378
add some typical coveragerc definitions
sanderegg 128066a
use trick to use fixtures inside parametrization
sanderegg f2bef9b
100% test on port_mapping
sanderegg f62e78e
move fixtures to base conftest
sanderegg 2e5f4c6
tests refactor
sanderegg 7b36c14
tests serialization2
sanderegg 43f7cbc
not far from 100%
sanderegg 44a9f42
cleanup
sanderegg cd87fb2
remove unused version
sanderegg 3fcb3cb
added standard package testing, linter
sanderegg e02039c
linter
sanderegg c2c7b47
mypy
sanderegg 8294c70
improve testing
sanderegg a5f9434
add ETag
sanderegg c0500fe
added ETag when uploading file
sanderegg 6420568
fix test related to uploaded file and received eTag
sanderegg 160fd04
cleaning up
sanderegg f910562
add eTag into project json schema
sanderegg 32a65f2
bonus: fix progress already in percent
sanderegg 04a82a1
switch sidecar to node ports v2
sanderegg e1a3703
add tqdm to time download
sanderegg 3825467
time download upload using tqdm
sanderegg c0124df
linter
sanderegg 208d1a5
add bumpversion needed files
sanderegg c1cce6a
bumped version to 0.3.0
sanderegg 36473c9
fix bad merge
sanderegg 70814a2
@pcrespov review: add deprecation warnings
sanderegg a64afa4
@pcrespov review: remove unnecessary exclusion
sanderegg c166688
@pcrespov review: rename mock fixtures from subsystem to service
sanderegg 5136eda
@pcrespov review: missing comments
sanderegg 8043977
@pcrespov review: use dump/load names
sanderegg 031c322
@pcrespov review: typo
sanderegg 7aa4361
@GitHK review: remove useless return
sanderegg ec4601a
@GitHK review: check if while reading something bad happens
sanderegg 0dbe66f
@GitHK review: re-enabling assertion
sanderegg 7295f33
@GitHK review: removed unnecessary nullhandler for library
sanderegg d8fe51c
added a bit of debug logs
sanderegg 898c9c5
fixed sidecar test by using both versions of node ports
sanderegg 904ca55
bad merge
sanderegg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,27 @@ | ||
[run] | ||
branch = True | ||
omit = | ||
omit = | ||
*/tests/* | ||
*/generated_code/* | ||
parallel = True | ||
|
||
[report] | ||
# Regexes for lines to exclude from consideration | ||
exclude_lines = | ||
# Have to re-enable the standard pragma | ||
pragma: no cover | ||
|
||
# Don't complain about missing debug-only code: | ||
def __repr__ | ||
if self\.debug | ||
|
||
# Don't complain if tests don't hit defensive assertion code: | ||
raise AssertionError | ||
raise NotImplementedError | ||
|
||
# Don't complain if non-runnable code isn't run: | ||
if 0: | ||
if __name__ == .__main__.: | ||
|
||
ignore_errors = True | ||
show_missing = True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,9 @@ aiohttp | |
aiopg[sa] | ||
networkx | ||
psycopg2-binary | ||
pydantic | ||
pydantic[email] | ||
tenacity | ||
tqdm | ||
trafaret-config | ||
|
||
attrs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ pytest-sugar | |
pytest-xdist | ||
|
||
# mockups/fixtures | ||
alembic | ||
aioresponses | ||
requests | ||
docker | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[bumpversion] | ||
current_version = 0.3.0 | ||
commit = True | ||
tag = False | ||
|
||
[bumpversion:file:setup.py] | ||
search = version='{current_version}' | ||
replace = version='{new_version}' | ||
|
||
[bumpversion:file:src/simcore_sdk/__init__.py] | ||
search = __version__ = '{current_version}' | ||
replace = __version__ = '{new_version}' | ||
|
||
[bdist_wheel] | ||
universal = 1 | ||
|
||
[aliases] | ||
# Define setup.py command aliases here | ||
test = pytest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
""" osparc's simcore-sdk library | ||
|
||
""" | ||
|
||
__version__ = "0.3.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
from . import pipeline_models | ||
from .base import metadata | ||
|
||
# Add here new models | ||
|
||
from .base import metadata | ||
|
||
__all__ = ( | ||
'metadata' | ||
) | ||
__all__ = "metadata" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from simcore_postgres_database.models.base import metadata | ||
|
||
__all__ = [ | ||
"metadata" | ||
] | ||
__all__ = ["metadata"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
from . import data_manager | ||
from . import data_manager |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So with the stricts you ensure that
"3" or "True" -> str
but3 -> int
andTrue -> bool
??There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so first:
very important is to use the ordering in the Union: go for most restricted values to less restricted (e.g. bool -> int -> float -> str).
Then the strict means that 0 is not False (which could be an issue in some cases but not here yet), also 3 is an int but 3.0 isn't.