Skip to content

Commit

Permalink
Snapshot engine bugs 2 21 2023 (#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
orcutt989 authored Feb 22, 2023
1 parent 76c7bec commit 7fc11a2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion snapshotEngine/getLatestSnapshotMetadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,16 @@
typed_snapshots = [s for s in snapshots if s["artifact_type"] == artifact_type and s["history_mode"] == history_mode]

# Lowest version is the top item (int) of a sorted unique list of all the versions for this particular artifact type and history mode
octez_versions = sorted(list(set([ s['tezos_version']['version']['major'] for s in typed_snapshots if 'version' in s['tezos_version'] ])))
# newlist = [item for item in list if "value" in list]
#octez_versions = sorted(list(set([ s['tezos_version']['version']['major'] for s in typed_snapshots if 'version' in s['tezos_version'] ])))

octez_versions = []
for s in typed_snapshots:
if 'version' in s['tezos_version']:
octez_versions.append(s['tezos_version']['version']['major'])

octez_versions = sorted(list(set(octez_versions)))

if octez_versions:
lowest_octez_version = octez_versions[0]
else:
Expand Down
2 changes: 1 addition & 1 deletion snapshotEngine/mainJob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ spec:
# Get context elements and octez snapshot version
if [[ "$TEZOS_VERSION" != '763259c5 (2022-12-01 10:20:58 +0000) (15.1)' ]]; then
/usr/local/bin/octez-node snapshot info --json /"${HISTORY_MODE}"-snapshot-cache-volume/"${ROLLING_SNAPSHOT_NAME}".rolling --json > /"${HISTORY_MODE}"-snapshot-cache-volume/SNAPSHOT_HEADER
/usr/local/bin/octez-node snapshot info /"${HISTORY_MODE}"-snapshot-cache-volume/"${ROLLING_SNAPSHOT_NAME}".rolling --json > /"${HISTORY_MODE}"-snapshot-cache-volume/SNAPSHOT_HEADER
fi
rm /rolling-tarball-restore/snapshot-import-in-progress
Expand Down

0 comments on commit 7fc11a2

Please sign in to comment.