Page MenuHomeSoftware Heritage

Ignore empty lines from swh-graph instead of crashing
ClosedPublic

Authored by vlorentz on Sep 13 2022, 10:14 AM.

Details

Reviewers
anlambert
Group Reviewers
Reviewers
Maniphest Tasks
Restricted Maniphest Task
Commits
rDWAPPS13158c81d2a5: Ignore empty lines from swh-graph instead of crashing
Summary

It happens frequently for some reason, but it does not seem to be
reproducible.

Workaround for T4531. This does not fix the underlying issue, though.

Diff Detail

Repository
rDWAPPS Web applications
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 31482
Build 49248: Phabricator diff pipeline on jenkinsJenkins console · Jenkins
Build 49247: arc lint + arc unit

Unit TestsFailed

TimeTest
0 msJenkins > "before all" hook for "should redirect to default page"::Tests / Cypress tests / Test Admin Login/logout "before all" hook for "should redirect to default page"
TypeError: Cannot read properties of undefined (reading 'login') Because this error occurred during a `before all` hook we are skipping the remaining tests in the current suite: `Test Admin Login/logout`
256 msJenkins > "before each" hook for "should select or unselect a table row by clicking on it"::Tests / Cypress tests / Test Admin Origin Save Urls Filtering "before each" hook for "should select or unselect a table row by clicking on it"
TypeError: cy.adminLogin is not a function Because this error occurred during a `before each` hook we are skipping the remaining tests in the current suite: `Test Admin Origin Save Urls...`
201 msJenkins > should reject a save code now request with note::Tests / Cypress tests / Test Admin Origin Save should reject a save code now request with note
TypeError: Cannot read properties of undefined (reading 'admin_origin_save_request_reject') at Context.eval (http://localhost:5002/__cypress/tests?p=cypress/e2e/admin.cy.js:237:33)
340 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.web.tests.add_forge_now.test_api_views::Tests / Python tests / test_add_forge_request_create_anonymous_user
349 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.web.tests.add_forge_now.test_api_views::Tests / Python tests / test_add_forge_request_create_duplicate
View Full Test Results (3 Failed · 1,026 Passed · 2 Skipped)

Event Timeline

vlorentz added a task: Restricted Maniphest Task.Sep 13 2022, 10:14 AM

Build has FAILED

Patch application report for D8456 (id=30475)

Rebasing onto c52158a8d7...

Current branch diff-target is up to date.
Changes applied before test
commit 13158c81d2a5aabe363335f8af4a5f64572b8d0c
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Tue Sep 13 10:12:10 2022 +0200

    Ignore empty lines from swh-graph instead of crashing
    
    It happens frequently for some reason, but it does not seem to be
    reproducible.

Link to build: https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/2048/
See console output for more information: https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/2048/console

Harbormaster returned this revision to the author for changes because remote builds failed.Sep 13 2022, 10:23 AM
Harbormaster failed remote builds in B31482: Diff 30475!
This revision is now accepted and ready to land.Sep 13 2022, 10:59 AM
This revision was landed with ongoing or failed builds.Sep 13 2022, 11:58 AM
This revision was automatically updated to reflect the committed changes.