Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(devservices): Add option to setup sentry with new devservices to existing action #83415

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/actions/setup-sentry/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ inputs:
description: 'PostgreSQL version to use'
default: '14'
required: false
use-new-devservices:
description: 'Use new devservices'
required: false
default: 'false'
mode:
description: 'Mode to bring up by new devservices'
required: false
default: 'default'

outputs:
yarn-cache-dir:
Expand Down Expand Up @@ -139,6 +147,7 @@ runs:

- name: Start devservices
shell: bash --noprofile --norc -eo pipefail -ux {0}
if: ${{ inputs.use-new-devservices != 'true' }}
env:
NEED_KAFKA: ${{ inputs.kafka }}
NEED_SNUBA: ${{ inputs.snuba }}
Expand Down Expand Up @@ -195,3 +204,23 @@ runs:
# This is necessary when other repositories (e.g. relay) want to take advantage of this workflow
# without needing to fork it. The path needed is the one where tools are located
cd "$WORKDIR"

- name: Start new devservices
if: ${{ inputs.use-new-devservices == 'true' }}
shell: bash --noprofile --norc -eo pipefail -ux {0}
env:
WORKDIR: ${{ inputs.workdir }}
ENABLE_AUTORUN_MIGRATION_SEARCH_ISSUES: '1'
run: |
sentry init

devservices up --mode ${{ inputs.mode }}

# have tests listen on the docker gateway ip so loopback can occur
echo "DJANGO_LIVE_TEST_SERVER_ADDRESS=$(docker network inspect bridge --format='{{(index .IPAM.Config 0).Gateway}}')" >> "$GITHUB_ENV"

docker ps -a

# This is necessary when other repositories (e.g. relay) want to take advantage of this workflow
# without needing to fork it. The path needed is the one where tools are located
cd "$WORKDIR"
Loading