Page MenuHomeSoftware Heritage

swh.deposit.client: Fix unparsable error response
ClosedPublic

Authored by ardumont on Feb 25 2022, 2:15 PM.

Details

Summary

That can happen... when providing the wrong input.
404 returns html content and not xml for example.

Test Plan

existing tests ok, that particular conditional is missing though but i'm lazy right now.

Diff Detail

Repository
rDDEP Push deposit
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 27171
Build 42501: Phabricator diff pipeline on jenkinsJenkins console · Jenkins
Build 42500: arc lint + arc unit

Event Timeline

Build is green

Patch application report for D7257 (id=26291)

Rebasing onto ccff46762b...

Current branch diff-target is up to date.
Changes applied before test
commit 21d4a9c75c1548e4657f9accccb584e0085c0f04
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Feb 25 13:55:03 2022 +0100

    swh.deposit.client: Fix unparsable error response

See https://jenkins.softwareheritage.org/job/DDEP/job/tests-on-diff/778/ for more details.

Shouldn't this pint the reponse?

Shouldn't this pint the reponse?

maybe, yes, in the warning, you mean?

Print unparsable response text in (warning) log

Build is green

Patch application report for D7257 (id=26298)

Rebasing onto ccff46762b...

Current branch diff-target is up to date.
Changes applied before test
commit 9ae4055e3420ab064d630ab46c7a0ae827427435
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Feb 25 13:55:03 2022 +0100

    swh.deposit.client: Fix unparsable error response

See https://jenkins.softwareheritage.org/job/DDEP/job/tests-on-diff/779/ for more details.

Rebase from the correct repository

Build is green

Patch application report for D7257 (id=26438)

Rebasing onto 5271378581...

Current branch diff-target is up to date.
Changes applied before test
commit ddfeadcb62b67e214cd7f7aa99948a0e39bc7309
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Feb 25 13:55:03 2022 +0100

    swh.deposit.client: Fix unparsable error response

See https://jenkins.softwareheritage.org/job/DDEP/job/tests-on-diff/794/ for more details.

Build is green

Patch application report for D7257 (id=26451)

Rebasing onto 1fe5bf1913...

Current branch diff-target is up to date.
Changes applied before test
commit 2c6e56caa062d24fb7648a23ca80790431cbaa63
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Feb 25 13:55:03 2022 +0100

    swh.deposit.client: Fix unparsable error response

See https://jenkins.softwareheritage.org/job/DDEP/job/tests-on-diff/797/ for more details.

This revision was not accepted when it landed; it landed in state Needs Review.Mar 8 2022, 4:38 PM
This revision was automatically updated to reflect the committed changes.