Page MenuHomeSoftware Heritage

Allow cooking release objects via the API
AcceptedPublic

Authored by vlorentz on Feb 8 2022, 2:02 PM.

Details

Reviewers
anlambert
Group Reviewers
Reviewers
Summary

No snapshots yet; they are very costly to cook when swh-graph is
outdated; and currently it is outdated for many objects.

Diff Detail

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

Event Timeline

Build has FAILED

Patch application report for D7122 (id=25827)

Could not rebase; Attempt merge onto b0bba742ec...

Updating b0bba742..3cdf6392
Fast-forward
 cypress/integration/vault.spec.js                  | 21 +++++++++++
 swh/web/api/views/vault.py                         | 21 ++++++-----
 swh/web/templates/includes/vault-create-tasks.html | 41 +++++++++-------------
 3 files changed, 50 insertions(+), 33 deletions(-)
Changes applied before test
commit 3cdf63922dba3a0dd34258ce3cbceb5620d11559
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Tue Feb 8 14:02:04 2022 +0100

    Allow cooking release objects via the API
    
    No snapshots yet; they are very costly to cook when swh-graph is
    outdated; and currently it is outdated for many objects.

commit d891b0465a7cae907e721307fed044f7e7a918b7
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Tue Feb 8 11:55:15 2022 +0100

    Allow vault cooking from the UI
    
    The vault is now about as stable as it can be in the short term,
    so I think it is time to finally make this available to everyone,
    without having to go throught the API manually.

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

Harbormaster returned this revision to the author for changes because remote builds failed.Feb 8 2022, 2:17 PM
Harbormaster failed remote builds in B26671: Diff 25827!

Build is green

Patch application report for D7122 (id=25833)

Could not rebase; Attempt merge onto b0bba742ec...

Updating b0bba742..b0b4e693
Fast-forward
 cypress/integration/vault.spec.js                  | 23 ++++++++----
 swh/web/api/views/vault.py                         | 21 ++++++-----
 swh/web/templates/includes/vault-create-tasks.html | 41 +++++++++-------------
 swh/web/tests/api/views/test_vault.py              |  4 +--
 4 files changed, 48 insertions(+), 41 deletions(-)
Changes applied before test
commit b0b4e693b737748234d06f29604f6391cb33482b
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Tue Feb 8 14:02:04 2022 +0100

    Allow cooking release objects via the API
    
    No snapshots yet; they are very costly to cook when swh-graph is
    outdated; and currently it is outdated for many objects.

commit 5b517e6e4d55c74d508d39f850cbe4b6d68c1e20
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Tue Feb 8 11:55:15 2022 +0100

    Allow vault cooking from the UI
    
    The vault is now about as stable as it can be in the short term,
    so I think it is time to finally make this available to everyone,
    without having to go throught the API manually.

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

Looks like release objects cannot be currently cooked, I guess you have another diff coming to add such support ?

I didn't, because I assumed I had already did. Thanks! This is now implemented in D7126.

This revision is now accepted and ready to land.Feb 9 2022, 11:27 AM