Since eed3531328681397f07aa67715bbe59def7f4d98, the 'finally' clause silenced re-raised
exception because it contains a 'return' statement.
Details
Details
- Reviewers
ardumont - Group Reviewers
Reviewers - Commits
- rDCIDX3ac0c155dad5: Make BaseIndexer.catch_exception=False actually re-raise exceptions instead of…
Diff Detail
Diff Detail
- Repository
- rDCIDX Metadata indexer
- Branch
- attrs
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 15920 Build 24499: Phabricator diff pipeline on jenkins Jenkins console · Jenkins Build 24498: arc lint + arc unit
Event Timeline
Comment Actions
Build is green
Patch application report for D4151 (id=14640)
Rebasing onto 1eb521c98c...
First, rewinding head to replay your work on top of it... Applying: Make BaseIndexer.catch_exception=False actually re-raise exceptions instead of silencing them.
Changes applied before test
commit 651ba6c1536af3418bcc0127388474830378e153 Author: Valentin Lorentz <vlorentz@softwareheritage.org> Date: Tue Oct 6 12:31:10 2020 +0200 Make BaseIndexer.catch_exception=False actually re-raise exceptions instead of silencing them. Since eed3531328681397f07aa67715bbe59def7f4d98, the 'finally' clause silenced re-raised exception because it contains a 'return' statement.
See https://jenkins.softwareheritage.org/job/DCIDX/job/tests-on-diff/61/ for more details.
swh/indexer/tests/test_indexer.py | ||
---|---|---|
37 | I don't even recall we had a self.catch_exceptions... |
swh/indexer/tests/test_indexer.py | ||
---|---|---|
37 | So tests raises a nice error instead of silently passing and then crashing later when they check the content of the storage.. I just got bitten by this while refactoring the storage. |
Comment Actions
Build is green
Patch application report for D4151 (id=14641)
Rebasing onto 1eb521c98c...
Current branch diff-target is up to date.
Changes applied before test
commit 3ac0c155dad552fdd921561974d52164dcfc8820 Author: Valentin Lorentz <vlorentz@softwareheritage.org> Date: Tue Oct 6 12:31:10 2020 +0200 Make BaseIndexer.catch_exception=False actually re-raise exceptions instead of silencing them. Since eed3531328681397f07aa67715bbe59def7f4d98, the 'finally' clause silenced re-raised exception because it contains a 'return' statement.
See https://jenkins.softwareheritage.org/job/DCIDX/job/tests-on-diff/62/ for more details.