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:
4848 source ${{ github.action_path }}/.env
4949 # See https://explainshell.com/explain?cmd=ls%20-Rv1rpq
5050 # 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)
5252 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)
5454 echo "SNUBA_MIGRATIONS_MD5=$SNUBA_MIGRATIONS_MD5" >> $GITHUB_OUTPUT
5555
5656 - name : Restore Sentry Volume Cache
5757 id : restore_cache_sentry
5858 uses : BYK/docker-volume-cache-action/restore@be89365902126f508dcae387a32ec3712df6b1cd
5959 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 }}
6161 restore-keys : |
6262 db-volumes-sentry-v1-
6363 volumes : |
6767 id : restore_cache_snuba
6868 uses : BYK/docker-volume-cache-action/restore@be89365902126f508dcae387a32ec3712df6b1cd
6969 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 }}
7171 restore-keys : |
7272 db-volumes-snuba-v1-
7373 volumes : |
You can’t perform that action at this time.
0 commit comments