In D1478#32900, @vlorentz wrote:wat?
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Feed Advanced Search
Advanced Search
Advanced Search
May 16 2019
May 16 2019
douardda retitled D1479: cli: add support for aliases in click command groups from cli: add spport for aliases in click command groups to cli: add support for aliases in click command groups.
douardda committed rDCOREc8aa76029507: Remove extras-needed depencies from the main requirements.txt (authored by douardda).
Remove extras-needed depencies from the main requirements.txt
douardda committed rDCORE6b426eda7d5a: tests,tox: do test each 'extra' environment in a dedicated venv (authored by douardda).
tests,tox: do test each 'extra' environment in a dedicated venv
rebased
In D1463#32651, @anlambert wrote:Real word example of why using private members is a bad idea: https://github.com/Tulip-Dev/tulip/commit/cbb85d65da2cb262e0c20f2b9b16603b8a633aed#diff-675480f07686e76ad2b178ce3b9ccd4e
When Python 3.7 was released, some signatures in his private C API were updated.
We were using them to register internal Python modules written in C to an embedded interpreter (gdb did also the same, I found the proper fix from their mailing list) and thus compilation broke.Ok this is a C example but the same could happen for Python code.
May 15 2019
May 15 2019
add an example cli subcommand
import CONTEXT_SETTINGS fron swh.core
rebased on D1478
Herald added a reviewer for D1478: tests: make test_cli.py compatible with scheduler 0.0.56: Reviewers.
cli: import CONTEXT_SETTINGS from swh.core
Herald added a reviewer for D1477: cli: add a 'storage' cli group with a 'serve' subcommand: Reviewers.
add support for --help on the 'identify' cli tool
Let someone else give the thumbs up/down
In D1463#32643, @douardda wrote:In D1463#32623, @anlambert wrote:I don't really understand why you did this. What is the problem with the current implementation. Sure it uses a 'private' API, but the logging module won't change any time soon...
Maybe but this is a bad practice and should be avoided.
<slightly_bad_faith_ mode>like keeping a hand written copy of a piece of data that is in fact defined somewhere else </>
In D1463#32623, @anlambert wrote:I don't really understand why you did this. What is the problem with the current implementation. Sure it uses a 'private' API, but the logging module won't change any time soon...
Maybe but this is a bad practice and should be avoided.
I would have just written this as
setup_log_handler( loglevel=ctx.obj.get('log_level', logging.INFO), colorize=False, format='[%(levelname)s] %(name)s -- %(message)s', log_console=not no_stdout)
but meh
In D1463#32599, @anlambert wrote:Update:
- cli: Remove use of private members from the logging module
Dockerfile: update to python 3.7
douardda committed rCDFD00d3f8f35840: README: update doc to use the new 'swh' master cli tool (authored by douardda).
README: update doc to use the new 'swh' master cli tool
Herald added a reviewer for D1467: README: update doc to use the new 'swh' master cli tool: Reviewers.
douardda triaged T1713: Vault 'Download' suboptimal UI/UX: no feedback that the bundle is being transferred as Normal priority.
May 10 2019
May 10 2019
LGTM but I did not do a very punctilious review
douardda requested changes to D1456: Explicitely implement from_dict instead of using introspection magic..
I agree it's easier to read, so LGTM (just a small refactoring and I'm ok with this)
May 9 2019
May 9 2019
closed by b0fcdebc823fee02dd718c4526829476438daf6c
douardda committed rDVAUb0fcdebc823f: bump dependency to swh.core[db,http] >= 0.0.60 (authored by douardda).
bump dependency to swh.core[db,http] >= 0.0.60
douardda committed rDSTO85b3da962810: bump dependency to swh.core[db,http] >= 0.0.60 (authored by douardda).
bump dependency to swh.core[db,http] >= 0.0.60
douardda committed rDOBJS9a5b5b28b83e: bump dependency to swh.core[http] >= 0.0.60 (authored by douardda).
bump dependency to swh.core[http] >= 0.0.60
douardda committed rDJNL1e4287efbfcd: bump dependency to swh.core[db] >= 0.0.60 (authored by douardda).
bump dependency to swh.core[db] >= 0.0.60
douardda committed rDCIDX25a2e54744bc: bump dependency to swh.core[db,http] >= 0.0.60 (authored by douardda).
bump dependency to swh.core[db,http] >= 0.0.60
douardda committed rDARC9b45b253784f: bump dependency to swh.core[db] >= 0.0.60 (authored by douardda).
bump dependency to swh.core[db] >= 0.0.60
douardda committed rDSCHedaf20251447: cli: split the main cli/__init__.py file in 4 parts (authored by douardda).
cli: split the main cli/__init__.py file in 4 parts
May 7 2019
May 7 2019
lgtm
douardda added inline comments to D1446: models: Keep scheduler task ids reference on deposit model.
In D1444#31990, @douardda wrote:In D1444#31943, @vlorentz wrote:Instead of swh/core/X/tests/, you should put tests in swh/core/tests/X/ (where X is the sub-component), for uniformity with other repos (deposit/indexer/storage/web)
let me check that
Add missing __init__.py files
In D1444#31943, @vlorentz wrote:Instead of swh/core/X/tests/, you should put tests in swh/core/tests/X/ (where X is the sub-component), for uniformity with other repos (deposit/indexer/storage/web)
In D1444#31944, @ardumont wrote:Build fails with:
_______________ ERROR collecting swh/core/db/tests/test_db.py _________________ swh/core/db/tests/test_db.py:14: in <module> from .db_testing import ( E SystemError: Parent module '' not loaded, cannot perform relative import !!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!! =Wondering if we are not missing __init__.py files in the new subfolders created (db, api, server)?
In D1445#31940, @ardumont wrote:debian related, i'm wondering how to package this ;)
Not a big stuff, but I would have preferred to see the refactoring (of the get_local_backend's code) and the actual fix (add client_max_size arg when calling make_app) in 2 revisions.
douardda added inline comments to D1446: models: Keep scheduler task ids reference on deposit model.
douardda closed T1651: Create a separate project for deposit-client, a subtask of T1671: Implement a uniform and consistent cli to be used by all SWH packages, as Wontfix.
This won't be done as a separate project, but rather from swh.core directly. see D1426
May 6 2019
May 6 2019
douardda committed rDSCH3f88069d020f: README: remove the deprecated tests section (authored by douardda).
README: remove the deprecated tests section
douardda committed rDSCH84c0bd724b5d: cli: make swh-scheduler a subcommand of swh.core's main "swh" command (authored by douardda).
cli: make swh-scheduler a subcommand of swh.core's main "swh" command
cli: make it a subpackage
douardda updated the diff for D1439: cli: make swh-scheduler a subcommand of swh.core's main "swh" command.
rebased + bump dep on swh.core 0.0.60
douardda committed rDDEP02a2e91d2b9f: docs: update the getting-started document to use 'swh deposit upload' command (authored by douardda).
docs: update the getting-started document to use 'swh deposit upload' command
douardda committed rDDEPf5624c801b68: cli: rename the 'deposit' subcommand as 'upload' (authored by douardda).
cli: rename the 'deposit' subcommand as 'upload'
douardda committed rDDEPc0b1d5467669: cli: make the deposit cli command a subcommand of the main 'swh' one (authored by douardda).
cli: make the deposit cli command a subcommand of the main 'swh' one
douardda committed rDDEPbf2fb8692bc0: cli: rename cli/deposit.py as cli/client.py to prevent a name clash (authored by douardda).
cli: rename cli/deposit.py as cli/client.py to prevent a name clash
douardda updated the diff for D1429: docs: update the getting-started document to use 'swh deposit upload' command.
add missing \ and 's/^I/ /' as noticed by ardumont
douardda updated the diff for D1429: docs: update the getting-started document to use 'swh deposit upload' command.
rebase
douardda updated the diff for D1428: cli: make the deposit cli command a subcommand of the main 'swh' one.
depends on swh.core 0.0.60
douardda committed rDCORE86eeb30ffd0e: setup: extract db and http related parts to dedicated optional 'extras' (authored by douardda).
setup: extract db and http related parts to dedicated optional 'extras'
douardda committed rDCOREa057ad05c021: logger: kill the (now unused) PostresHandler (authored by douardda).
logger: kill the (now unused) PostresHandler
douardda committed rDCORE19b1bece67a3: cli: add a generic main 'swh' command (authored by douardda).
cli: add a generic main 'swh' command