Page MenuHomeSoftware Heritage

vault: add monitoring of bundle downloads
ClosedPublic

Authored by olasd on Feb 28 2022, 6:21 PM.

Details

Summary

This adds a download step to the vault end to end check once the API
claims that the cooking was successful.

The download step checks:

  • that the fetch_url is present
  • that the status code is successful
  • that the response is not empty

Related to T3983

Test Plan

new test scenarios added for the new failure modes

Diff Detail

Repository
rDICP Icinga plugins
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build has FAILED

Patch application report for D7264 (id=26322)

Rebasing onto 26a98cae80...

Current branch diff-target is up to date.
Changes applied before test
commit a1423a8715ded457e29feb890eb123a921ebd8b3
Author: Nicolas Dandrimont <nicolas@dandrimont.eu>
Date:   Mon Feb 28 18:18:54 2022 +0100

    vault: add monitoring of bundle downloads
    
    This adds a download step to the vault end to end check once the API
    claims that the cooking was successful.
    
    The download step checks:
     - that the fetch_url is present
     - that the status code is successful
     - that the response is not empty

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

Harbormaster returned this revision to the author for changes because remote builds failed.Feb 28 2022, 6:22 PM
Harbormaster failed remote builds in B27195: Diff 26322!

Looks like we need to release swh.deposit with D7265 for these to become green.

Build is green

Patch application report for D7264 (id=26322)

Rebasing onto 27a2ef97c1...

First, rewinding head to replay your work on top of it...
Applying: vault: add monitoring of bundle downloads
Changes applied before test
commit 617c0d81381446d059c82330031968ca96413143
Author: Nicolas Dandrimont <nicolas@dandrimont.eu>
Date:   Mon Feb 28 18:18:54 2022 +0100

    vault: add monitoring of bundle downloads
    
    This adds a download step to the vault end to end check once the API
    claims that the cooking was successful.
    
    The download step checks:
     - that the fetch_url is present
     - that the status code is successful
     - that the response is not empty

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

olasd requested review of this revision.Mar 4 2022, 3:49 PM
This revision is now accepted and ready to land.Mar 4 2022, 3:59 PM

Build is green

Patch application report for D7264 (id=26405)

Rebasing onto 27a2ef97c1...

Current branch diff-target is up to date.
Changes applied before test
commit c698de271141c4dc45570e2b7d8a2d78fa02fd5b
Author: Nicolas Dandrimont <nicolas@dandrimont.eu>
Date:   Mon Feb 28 18:18:54 2022 +0100

    vault: add monitoring of bundle downloads
    
    This adds a download step to the vault end to end check once the API
    claims that the cooking was successful.
    
    The download step checks:
     - that the fetch_url is present
     - that the status code is successful
     - that the response is not empty

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

This revision was automatically updated to reflect the committed changes.