HomeSoftware Heritage

Add end to end save code now check

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

Add end to end save code now check

This defines an end to end check which trigger for an dedicated origin with a given type
a save code now requests.

This then regularly polls the status out of the save code now api. Depending on the time
it took to actually ingest and the ingestion status, it will return the status of said
ingestion and roughly the time it took.

The end goal being to deploy such checks into icinga and being notified when a save code
now request takes too long.

Example use:

$ swh icinga_plugins \
  check-savecodenow --swh-storage-url http://localhost:5002/ \
  --swh-web-url https://webapp.staging.swh.network \
  origin <url> \
  --visit-type git

SAVECODENOW WARNING - Save code now request for ('git', '<url>') took 30.58s and succeeded.
| 'total_time' = 30.58s

Related to T2117

Details

Provenance
ardumontAuthored on Apr 15 2021, 6:44 PM
ardumontPushed on Apr 16 2021, 3:56 PM
Differential Revision
D5541: Add end to end save code now check
Tasks
T2117: Save Code Now: End to End monitoring
Build Status
Buildable 20824
Build 32317: test-and-buildJenkins console · Jenkins

Commit No Longer Exists

This commit no longer exists in the repository.