...since we didn't provide any encoding. Also, open files in binary mode
when hashing to compare against ETags.
Change-Id: Ie8ac1d1ff0216d945b1b1602c944cb62234a84a8
Lots of str-needing-to-be-bytes fixes, mostly.
Seems to be an issue with tests around executing? Skipped the two that
would just hang, but test_deploy_storlet might be a good place to start
poking around.
Change-Id: I99a6beda9c3a8883d9f13a953cba13aa21d847bb
Due to the change https://review.opendev.org/#/c/693309/
the functional test takes around 20 minutes-ish so that
we can decrease the timeout as 30 minutes.
Change-Id: Ic82decc34e5fa5a4049a08b95a8e8f606d9cd973
because the notebook is strictly tightened to python2.
Re-writing the python2 notebook in python3 will cause
an error or a failure in python2 functional test, so
add skipTest check for now.
In the future, we could switch the available version
or have a couple of tests for both versions.
Change-Id: I9ec5cc107459266de509d3c444c5294f965dd749
Currently, the CI may loose the swift proxy error logs
if previous task collecting the func test tox logs failed.
That makes us hard to dig out what happens actually.
This patch attempts to ignore the error and reach out whole
worthful tasks in the post job.
Change-Id: I8a0e22f57255ee7b011d660e19e4ffa664b94d23
... as we don't expect long codes are included in __init__.py .
This patch migrates these implementations to new independent
files, with keeping alias so that we can import things with
the same path.
Change-Id: Iff0b60cd53281c999c930a4e789aaaab360b1c7a
Originally, that was just str, that can be compatible with
char in python c_types. However, in python3, str is not a
byte format but bytes. This patch is intended to encupsulate
any data format (path name, metadata) into SBus module that
tranforms them from str to bytes at the send time. (receive
will work as well from bytes to str) Thus, any other storlet
modules are able to use them as str as well as ever.
Change-Id: I542db555798e7ef67bf0db9d98d1c14578118f86
I saw some warnings locally like
/usr/local/lib/python3.6/dist-packages/tox/config/__init__.py:581:
UserWarning: conflicting basepython version (set 3.6, should be 3.7)
for env 'py37';resolve conflict or set ignore_basepython_conflict
Seems like that may happen in the gate, too?
Change-Id: I31f12bedf77163c8756fecb5000885d01ddbf0e6
Because swiftclient.put_object assumes it as bytes object.
Only ZipFile is not suppoting rb mode so leave it as it is.
It should be okay because Storlets use it just to pick up
the filnames that should be string instead of bytes.
Change-Id: I834b29886a18269de2745ffe584291491e80f9eb
These tests are skipped because we use swift codes which weren't
compatible with Py2, but now we are ready to use them in Py3.
Change-Id: I717686c7d63bb0b21d25f534ba439e611ea2f5bc
Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.
Change-Id: Idbd27e14fbb70278fb1a63e3d0b2a6456b615e41
Add file to the reno documentation build to show release notes for
stable/train.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/train.
Note that release note for train doesn't seem to be ready.
(no 4_0_0_0_hash file exists)
Change-Id: Ia1f9e21af0eab90e1685e9e482fd8affcc415989
Sem-Ver: feature
This patch bundiles a file descriptor and its metadata
into one class named SBusFileDescriptor, so that we can
keep the relationship between them easily.
Change-Id: Ib042f2a7bd4bd524e9b4b8d155ec192edaaca7f0
SBUS_CMD_DESCRIPTOR was implemented in java SDaemon, but
we have never used it.
This patch drop that sbus command, as it is never used and
tested.
Change-Id: Iac92e598ddaa027b9882fbcb8be8ff9738226801
This patch refactors java written SDaemon, by migrating
task specific logics from SDaemon to each Task classes.
*bonus* eliminate trailing white space that can not be
found by pep8 (because it's Java code!)
Change-Id: Ife21fe368a17428dab27cf245ada4f3c0f9f1278
because it looks zuul takes 25 minutes for preparation
so we have to increase timeout to avoid unnecessary failures
Change-Id: I5fb291eadc4e49e19a225e788de564d38a43fbfe
This patch normalizes method name for RunTimePaths, according
to the following policy, so that it is more easy to understand
the characteristics of each method functions
- Use @propery for the functions without any arguments
- Use get_foo for the functions which take arguments
- Use foo_dir for directory paths
This patch also fixes wrong path handling in storlet app log.
Change-Id: I9275a84a2881b29a91eb55efaa6bc5607f1e723c
There are some build warning observed when building c codes.
It is not critical as they are still warning, but it would be
better to avoid these warning if possible.
Trivial-fix
Change-Id: I5f89fc0defce43984471576025636e172630e733