File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -48,16 +48,16 @@ runs:
48
48
source ${{ github.action_path }}/.env
49
49
# See https://explainshell.com/explain?cmd=ls%20-Rv1rpq
50
50
# for that long `ls` command
51
- SENTRY_MIGRATIONS_MD5=$(docker run --rm --entrypoint bash $SENTRY_IMAGE -c '{ ls -Rv1rpq src/sentry/**/migrations/*; sed -n "/KAFKA_TOPIC_TO_CLUSTER/,/}/p " src/sentry/conf/server .py; }' | md5sum | cut -d ' ' -f 1)
51
+ SENTRY_MIGRATIONS_MD5=$(docker run --rm --entrypoint bash $SENTRY_IMAGE -c '{ cat migrations_lockfile.txt; grep -Poz "(?s)(?<=class Topic\\(Enum\\):\\n).+?(?=\\n\\n\\n) " src/sentry/conf/types/kafka_definition .py; }' | md5sum | cut -d ' ' -f 1)
52
52
echo "SENTRY_MIGRATIONS_MD5=$SENTRY_MIGRATIONS_MD5" >> $GITHUB_OUTPUT
53
- SNUBA_MIGRATIONS_MD5=$(docker run --rm --entrypoint bash $SNUBA_IMAGE -c '{ ls -Rv1rpq snuba/snuba_migrations/**/*.py; sed -n "/^ class Topic(Enum):/,/ \\n\\n/p " snuba/utils/streams/topics.py; }' | md5sum | cut -d ' ' -f 1)
53
+ SNUBA_MIGRATIONS_MD5=$(docker run --rm --entrypoint bash $SNUBA_IMAGE -c '{ ls -Rv1rpq snuba/snuba_migrations/**/*.py; grep -Poz "(?s)(?<= class Topic\\ (Enum\\): \\n).+?(?= \\n\\n\\n) " snuba/utils/streams/topics.py; }' | md5sum | cut -d ' ' -f 1)
54
54
echo "SNUBA_MIGRATIONS_MD5=$SNUBA_MIGRATIONS_MD5" >> $GITHUB_OUTPUT
55
55
56
56
- name : Restore Sentry Volume Cache
57
57
id : restore_cache_sentry
58
58
uses : BYK/docker-volume-cache-action/restore@be89365902126f508dcae387a32ec3712df6b1cd
59
59
with :
60
- key : db-volumes-sentry-v1 -${{ steps.cache_key.outputs.SENTRY_MIGRATIONS_MD5 }}
60
+ key : db-volumes-sentry-v2 -${{ steps.cache_key.outputs.SENTRY_MIGRATIONS_MD5 }}
61
61
restore-keys : |
62
62
db-volumes-sentry-v1-
63
63
volumes : |
67
67
id : restore_cache_snuba
68
68
uses : BYK/docker-volume-cache-action/restore@be89365902126f508dcae387a32ec3712df6b1cd
69
69
with :
70
- key : db-volumes-snuba-v1 -${{ steps.cache_key.outputs.SNUBA_MIGRATIONS_MD5 }}
70
+ key : db-volumes-snuba-v2 -${{ steps.cache_key.outputs.SNUBA_MIGRATIONS_MD5 }}
71
71
restore-keys : |
72
72
db-volumes-snuba-v1-
73
73
volumes : |
You can’t perform that action at this time.
0 commit comments