caucase:0.9.5 commitshttps://lab.nexedi.com/nexedi/caucase/-/commits/0.9.52019-01-24T20:35:28+09:00https://lab.nexedi.com/nexedi/caucase/-/commit/561f0af1c7eb09127ddddb104b7fa6a6dd459b15CHANGES: Update.2019-01-24T20:35:28+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/caucase/-/commit/cd640230562f0c719722cc449ce0211adb365daacli: Use utcnow() as everywhere else2019-01-24T12:23:30+01:00Lukasz Nowakluke@nexedi.com
Timedeltas between utcnow() and now() depend on system timezone, so
they can last many hours when a few seconds is intended.
The now() here was entered by mistake.
/reviewed-on <a href="https://lab.nexedi.com/nexedi/caucase/merge_requests/5" data-original="https://lab.nexedi.com/nexedi/caucase/merge_requests/5" data-link="false" data-link-reference="true" data-project="560" data-merge-request="2720" data-project-path="nexedi/caucase" data-iid="5" data-mr-title="cli: Use utcnow() as everywhere" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!5</a>https://lab.nexedi.com/nexedi/caucase/-/commit/1997adb2c2e8fea9d86b4f98b0db3cdebdf2dccehttp: Improve coding style a bit.2019-01-05T13:08:38+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/caucase/-/commit/8283ffebaee4c33a45ac07a49c15c1e4ac951863shell: Resist inputs starting with dashes.2019-01-03T23:01:41+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/caucase/-/commit/2261582d400ab520230d7132a418e05a1256fdd9shell: Add (minimal) tests.2019-01-03T23:01:41+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/caucase/-/commit/a36ccf92679d54c8a90d4ef1c20577cefcc9ca49shell: Use single-quote strings wherever possible.2019-01-03T23:01:36+09:00Vincent Pelletiervincent@nexedi.com
Reduces backslash-doubling crazyness.https://lab.nexedi.com/nexedi/caucase/-/commit/268b3a536b21707634646b7780fdeb19595d81fbshell: Add --version support.2019-01-03T22:52:31+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/caucase/-/commit/a9e2c64f4c8b94cacef7375134d0b29d343aa460shell: Fix indentation.2019-01-03T22:49:12+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/caucase/-/commit/5090557f6094dbaa3f63ac7b48cef15a27306b1cshell: Add mktemp as a dependency.2019-01-03T22:49:12+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/caucase/-/commit/c3ac3e886aad9d01512b129927fa8129841e8af4all: Bump copyright year.2019-01-03T22:49:05+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/caucase/-/commit/01b42a7aa1faa6298b2e9264cc639dc630ee3498storage: Forbid subtransactions.2019-01-03T15:16:54+09:00Vincent Pelletiervincent@nexedi.com
...when connection is used as a context manager (which is the expected
coding style anyway).
If silently ignored, rollback may be incomplete if a subtransaction already
committed.
And if commit only happen at outmost transaction, no-undo changes could
come undone if outer transaction aborts.
This is currently observed in the code, so no other change is needed.https://lab.nexedi.com/nexedi/caucase/-/commit/6aec197ab485a19a159002168d399f607e763959test: Fix Date header check rounding.2019-01-03T15:05:35+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/caucase/-/commit/9de6f6d27b7686b2561ec8f517ffb90d528cc68butils: Returns timestamp as an integer.2019-01-03T15:04:57+09:00Vincent Pelletiervincent@nexedi.com
This is used for serialisation, and there is no need for sub-second
precision.https://lab.nexedi.com/nexedi/caucase/-/commit/55dc07d09f4af1cca79f18cbdfc45bbf8d106e0bwsgi: Fix docstring.2019-01-03T15:04:57+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/caucase/-/commit/e4cc32f3ad416322db41ce31a504411034203ee7wsgi: Make response headers RFC7231-compliant.2018-12-31T15:45:20+09:00Vincent Pelletiervincent@nexedi.com
- 405 (Method Not Allowed) response contains the list of methods allowed on
current resource
- all responses contain a Date headerhttps://lab.nexedi.com/nexedi/caucase/-/commit/9429da8fb9b88507e9e37bb95c61d2909ed51f1ctest: Unpack request's return value.2018-12-31T15:45:20+09:00Vincent Pelletiervincent@nexedi.com
Makes test a bit more readable by naming what each value is.https://lab.nexedi.com/nexedi/caucase/-/commit/7d0f56c36fef1548d2924f4ee943f4f9b125ea11test: Remove unused import.2018-12-31T15:45:20+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/caucase/-/commit/19d126fb44abd0426b9a3f626eb479e63158fb61ca: Fold single-use local.2018-12-30T18:35:00+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/caucase/-/commit/d5b2eb4e19e8166e5dfe59316cc077804a635580test: Simplify a bit.2018-12-30T18:35:00+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/caucase/-/commit/c272414f5a79178a48408d13868f9a4c90ae4e6btest: format_exc in 3rd assert* method argument is pointless.2018-12-30T18:35:00+09:00Vincent Pelletiervincent@nexedi.com
Just call cli.manage directly to get produced exception, as it's what this
part of the test is really about.https://lab.nexedi.com/nexedi/caucase/-/commit/ce1c239aca75221e659407c2ae581e99984fd0b6test: Remove unused import.2018-12-30T18:35:00+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/caucase/-/commit/883dce362e6dcb1c9cf659128cf21e4f06760259test: Do not expect coverage of test failure code path.2018-12-18T15:55:44+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/caucase/-/commit/12d2fe088fc379aaddeee9bf31fb5a30093efbe0cli,http: Use future-compatible --version declaration.2018-12-18T15:55:44+09:00Vincent Pelletiervincent@nexedi.com
argparse.__init__'s "version" argument is for backward-compatibility with
optparse, and is dropped in python3.https://lab.nexedi.com/nexedi/caucase/-/commit/feb5cae6b0c5d97c8e982af75b21b41d3eba07c1test: Validate cli.key_id output.2018-12-18T15:33:13+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/caucase/-/commit/fc3bf97e09999c816f26f045a052a605f96bcc9btest: Use a context manager for temporary stdout overrides.2018-12-18T15:33:13+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/caucase/-/commit/b4cc623653f16ea91bf971eb2c7decf49c5825bdcli: Fix key_id used with no-encoding stdout on python2.2018-12-18T15:33:13+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/caucase/-/commit/058935982b1ee12149833b7538779e43ccf77aa8all: Rework logging.2018-12-14T20:40:50+09:00Vincent Pelletiervincent@nexedi.com
Make tests almost completely silent by default, while still printing output
generated during corresponding test on failure.
Produce more somewhat-apache-like error logs, both from httpd and wsgi
errors.https://lab.nexedi.com/nexedi/caucase/-/commit/35f061c70e25b80a052b851fc086426d80a46f18http: Catch an occasional error not handled in standard library.2018-12-14T20:40:50+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/caucase/-/commit/9e7732539204d5d22bc305bf7277ebcb63a92eadhttp: Fix typo.2018-12-14T20:40:50+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/caucase/-/commit/666c24cde8f170eb64c007ff8d01ad494a3fc6a7cli.updater: Reduce verbosity when getting network errors.2018-12-14T20:40:50+09:00Vincent Pelletiervincent@nexedi.com
Show the error message without a traceback.https://lab.nexedi.com/nexedi/caucase/-/commit/c91a8bb49f725d1b0a0c79dca65cd9b249cfafabshell: Fix port extraction after a bracket-enclosed address.2018-12-13T15:48:23+09:00Vincent Pelletiervincent@nexedi.com
More consistent with address extraction.https://lab.nexedi.com/nexedi/caucase/-/commit/49036c7e73727c15b4210df7ebf93ed10a24c8d1shell: Escape literal end bracket in "case" patterns.2018-12-13T15:45:59+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/caucase/-/commit/d6fd5a407a3c51b37d7c09cbccad580341267b89cli,http: Add --version support.2018-12-13T15:45:06+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/caucase/-/commit/1cac65d16f066a842d10155dcae22f287541d62ecli: Fix import ordering.2018-12-13T14:30:51+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/caucase/-/commit/dfbb2e0fe8d3bcfa457b3a4b6ea8f935cdf19356CHANGES: Update.2018-11-14T14:21:49+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/caucase/-/commit/184b9b8d42d43a41fcb506f161fe0ea5df9c30efca: Fold a local into its only usage place.2018-11-09T15:05:01+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/caucase/-/commit/e8eeb3ce8d1ca91f38cf9d9e82a614901fd7268btest: Skip testHttpNetlocIPv6 if OpenSSL lacks IP constraints support2018-11-09T15:04:44+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/caucase/-/commit/40a892603b6754f670fbdcc34e9f3a7628d0b294all: Make pylint happier.2018-11-05T11:58:53+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/caucase/-/commit/6c612e2298f68671e15ef5227e47eaa69776d373cli: Fix RetryingCaucaseClient.2018-11-05T11:58:10+09:00Vincent Pelletiervincent@nexedi.com
Python was unexpectedly binding utils.until to this class, causing "self"
argument to be automatically generated, which is not expected by this
function.
Tests do not exercise this code path because they are overriding this
property, precisely to check that it gets called...
Also, add docstring.https://lab.nexedi.com/nexedi/caucase/-/commit/b45adc5adf611635f88f97922e13be975f7d9c31pylint: Enable "too many arguments" check.2018-11-05T11:45:54+09:00Vincent Pelletiervincent@nexedi.com
Not sure what this is doing here. There are not any failure masked by this.