Skip to content
Draft
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
18 changes: 11 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -304,26 +304,30 @@ jobs:
with:
repository: getsentry/sentry
path: sentry
ref: hubertdeng123/add-toggle-setup-sentry-gha

- name: Setup steps
id: setup
run: |
# We cannot execute actions that are not placed under .github of the main repo
mkdir -p .github/actions
cp -r sentry/.github/actions/* .github/actions
# Move sentry to be a sibling of snuba so devenv can find both
mv sentry ../sentry
# Create devenv config
mkdir -p ~/.config/sentry-devenv
echo -e "[devenv]\ncoderoot = $GITHUB_WORKSPACE/.." > ~/.config/sentry-devenv/config.ini

- name: Setup Sentry
id: setup-sentry
uses: ./.github/actions/setup-sentry
with:
workdir: sentry
workdir: ../sentry
mode: minimal
toggle: snuba

- name: Start snuba
run: |
# TODO(hubertdeng123): New devservices doesn't support running sentry without snuba yet, remove this when it does
docker stop snuba-snuba-1
docker rm snuba-snuba-1
docker run -d --rm \
-p 127.0.0.1:1218:1218 \
-e PYTHONUNBUFFERED=1 \
Expand All @@ -343,15 +347,15 @@ jobs:

- name: Run snuba tests
if: needs.files-changed.outputs.api_changes == 'false'
working-directory: sentry
working-directory: ../sentry
run: |
pytest -k 'not __In' tests \
-m snuba_ci \
-vv --cov . --cov-report="xml:.artifacts/snuba.coverage.xml"

- name: Run full tests
if: needs.files-changed.outputs.api_changes == 'true'
working-directory: sentry
working-directory: ../sentry
run: |
pytest -k 'not __In' \
tests/snuba \
Expand All @@ -373,7 +377,7 @@ jobs:

- name: Run CI module tests
if: needs.files-changed.outputs.api_changes == 'true'
working-directory: sentry
working-directory: ../sentry
run: pytest -k 'not __In' tests -vv -m snuba_ci

clickhouse-versions:
Expand Down
Loading