Skip to content
Snippets Groups Projects

tests: Ensure nar hash extid matches nar hash of target

1 unresolved thread

Add an extra check in function fetch_extids_from_checksums to ensure a NAR hash extid matches the NAR hash of the targeted archived object.

Related to swh/infra/sysadm-environment#5256 (closed).

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
7 7 import os
8 8 from pathlib import PosixPath
9 9 import subprocess
10 import tempfile
10 11 from typing import Dict, Iterable, List, Optional, Tuple, Union
11 12
13 from swh.loader.core.nar import Nar
12 14 from swh.model.hashutil import hash_to_bytes
13 15 from swh.model.model import ExtID, OriginVisitStatus, Snapshot, TargetType
16 from swh.model.swhids import ObjectType
14 17 from swh.storage.algos.origin import origin_get_latest_visit_status
15 18 from swh.storage.algos.snapshot import snapshot_get_all_branches
16 19 from swh.storage.interface import StorageInterface
20 from swh.vault.to_disk import DirectoryBuilder
  • Antoine R. Dumont approved this merge request

    approved this merge request

  • Antoine Lambert added 3 commits

    added 3 commits

    Compare with previous version

  • Jenkins job DLDBASE/gitlab-builds #296 succeeded .
    See Console Output and Coverage Report for more details.

  • Please register or sign in to reply
    Loading