Skip to content

Commit 257e57f

Browse files
committed
Comment self-hosted installation to speed up
1 parent f4fd43c commit 257e57f

File tree

1 file changed

+46
-46
lines changed

1 file changed

+46
-46
lines changed

action.yaml

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -107,52 +107,52 @@ runs:
107107
volumes: |
108108
sentry-kafka
109109
110-
- name: Install self-hosted
111-
env:
112-
# Note that cache keys for Sentry and Snuba have their respective Kafka configs built into them
113-
# and the Kafka volume cache is comprises both keys. This way we can omit the Kafka cache hit
114-
# in here to still avoid running Sentry or Snuba migrations if only one of their Kafka config has
115-
# changed. Heats up your head a bit but if you think about it, it makes sense.
116-
SKIP_SENTRY_MIGRATIONS: ${{ steps.restore_cache_sentry.outputs.cache-hit == 'true' && '1' || '' }}
117-
SKIP_SNUBA_MIGRATIONS: ${{ steps.restore_cache_snuba.outputs.cache-hit == 'true' && '1' || '' }}
118-
shell: bash
119-
run: |
120-
cd ${{ github.action_path }}
121-
# Add some customizations to test that path
122-
cat <<EOT >> sentry/enhance-image.sh
123-
#!/bin/bash
124-
touch /created-by-enhance-image
125-
apt-get update
126-
apt-get install -y gcc libsasl2-dev python-dev-is-python3 libldap2-dev libssl-dev
127-
EOT
128-
chmod 755 sentry/enhance-image.sh
129-
echo "python-ldap" > sentry/requirements.txt
130-
131-
./install.sh --no-report-self-hosted-issues --skip-commit-check
132-
133-
- name: Save Sentry Volume Cache
134-
if: steps.restore_cache_sentry.outputs.cache-hit != 'true'
135-
uses: BYK/docker-volume-cache-action/save@be89365902126f508dcae387a32ec3712df6b1cd
136-
with:
137-
key: ${{ steps.restore_cache_sentry.outputs.cache-primary-key }}
138-
volumes: |
139-
sentry-postgres
140-
141-
- name: Save Snuba Volume Cache
142-
if: steps.restore_cache_snuba.outputs.cache-hit != 'true'
143-
uses: BYK/docker-volume-cache-action/save@be89365902126f508dcae387a32ec3712df6b1cd
144-
with:
145-
key: ${{ steps.restore_cache_snuba.outputs.cache-primary-key }}
146-
volumes: |
147-
sentry-clickhouse
148-
149-
- name: Save Kafka Volume Cache
150-
if: steps.restore_cache_kafka.outputs.cache-hit != 'true'
151-
uses: BYK/docker-volume-cache-action/save@be89365902126f508dcae387a32ec3712df6b1cd
152-
with:
153-
key: ${{ steps.restore_cache_kafka.outputs.cache-primary-key }}
154-
volumes: |
155-
sentry-kafka
110+
# - name: Install self-hosted
111+
# env:
112+
# # Note that cache keys for Sentry and Snuba have their respective Kafka configs built into them
113+
# # and the Kafka volume cache is comprises both keys. This way we can omit the Kafka cache hit
114+
# # in here to still avoid running Sentry or Snuba migrations if only one of their Kafka config has
115+
# # changed. Heats up your head a bit but if you think about it, it makes sense.
116+
# SKIP_SENTRY_MIGRATIONS: ${{ steps.restore_cache_sentry.outputs.cache-hit == 'true' && '1' || '' }}
117+
# SKIP_SNUBA_MIGRATIONS: ${{ steps.restore_cache_snuba.outputs.cache-hit == 'true' && '1' || '' }}
118+
# shell: bash
119+
# run: |
120+
# cd ${{ github.action_path }}
121+
# # Add some customizations to test that path
122+
# cat <<EOT >> sentry/enhance-image.sh
123+
# #!/bin/bash
124+
# touch /created-by-enhance-image
125+
# apt-get update
126+
# apt-get install -y gcc libsasl2-dev python-dev-is-python3 libldap2-dev libssl-dev
127+
# EOT
128+
# chmod 755 sentry/enhance-image.sh
129+
# echo "python-ldap" > sentry/requirements.txt
130+
#
131+
# ./install.sh --no-report-self-hosted-issues --skip-commit-check
132+
#
133+
# - name: Save Sentry Volume Cache
134+
# if: steps.restore_cache_sentry.outputs.cache-hit != 'true'
135+
# uses: BYK/docker-volume-cache-action/save@be89365902126f508dcae387a32ec3712df6b1cd
136+
# with:
137+
# key: ${{ steps.restore_cache_sentry.outputs.cache-primary-key }}
138+
# volumes: |
139+
# sentry-postgres
140+
#
141+
# - name: Save Snuba Volume Cache
142+
# if: steps.restore_cache_snuba.outputs.cache-hit != 'true'
143+
# uses: BYK/docker-volume-cache-action/save@be89365902126f508dcae387a32ec3712df6b1cd
144+
# with:
145+
# key: ${{ steps.restore_cache_snuba.outputs.cache-primary-key }}
146+
# volumes: |
147+
# sentry-clickhouse
148+
#
149+
# - name: Save Kafka Volume Cache
150+
# if: steps.restore_cache_kafka.outputs.cache-hit != 'true'
151+
# uses: BYK/docker-volume-cache-action/save@be89365902126f508dcae387a32ec3712df6b1cd
152+
# with:
153+
# key: ${{ steps.restore_cache_kafka.outputs.cache-primary-key }}
154+
# volumes: |
155+
# sentry-kafka
156156

157157
- name: Setup swapfile
158158
shell: bash

0 commit comments

Comments
 (0)