When received via the scheduler (which manipulates JSON), it's a string.
The RevisionIndexer uses the exact same conversion code.
Differential D874
ContentIndexer: convert hash to bytes. vlorentz on Dec 20 2018, 6:35 PM. Authored by
Details
When received via the scheduler (which manipulates JSON), it's a string. The RevisionIndexer uses the exact same conversion code. docker-compose up python3 -m swh.loader.git.loader --origin-url https://github.com/SoftwareHeritage/swh-storage.git echo 'indexer_mimetype;oneshot;[["6dfe5dd2ab86d1ad3677285155027332fb35e9e5"]];{"policy_update": "update-dups"}' | python3 -m swh.scheduler.cli --cls remote --url http://localhost:5008/ task schedule /dev/stdin -c type -c policy -c args -c kwargs -d ';'
Diff Detail
Event TimelineComment Actions Build has FAILED Link to build: https://jenkins.softwareheritage.org/job/DCIDX/job/tox/163/ Comment Actions I'm not too fond of silently accepting both data types (I'd rather have limitations of the scheduler handled on the task side rather than here) but I guess that's fine. This also probably needs test coverage so we don't break it in the future.
Comment Actions I agree, but we already do it all over the indexers :/
It's already tested, modulo D876 Comment Actions Build has FAILED Link to build: https://jenkins.softwareheritage.org/job/DCIDX/job/tox/169/ Comment Actions Build has FAILED Link to build: https://jenkins.softwareheritage.org/job/DCIDX/job/tox/170/ |