|
@@ -74,13 +74,13 @@ jobs:
|
|
|
fail-fast: false
|
|
|
matrix:
|
|
|
# XXX: When updating this, make sure you also update MATRIX_INSTANCE_TOTAL.
|
|
|
- instance: [0, 1, 2, 3, 4, 5, 6]
|
|
|
+ instance: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
|
|
|
pg-version: ['14']
|
|
|
|
|
|
env:
|
|
|
# XXX: `MATRIX_INSTANCE_TOTAL` must be hardcoded to the length of `strategy.matrix.instance`.
|
|
|
# If this increases, make sure to also increase `flags.backend.after_n_builds` in `codecov.yml`.
|
|
|
- MATRIX_INSTANCE_TOTAL: 7
|
|
|
+ MATRIX_INSTANCE_TOTAL: 11
|
|
|
|
|
|
steps:
|
|
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
|
|
@@ -93,6 +93,7 @@ jobs:
|
|
|
uses: ./.github/actions/setup-sentry
|
|
|
id: setup
|
|
|
with:
|
|
|
+ kafka: true
|
|
|
snuba: true
|
|
|
# Right now, we run so few bigtable related tests that the
|
|
|
# overhead of running bigtable in all backend tests
|
|
@@ -298,49 +299,6 @@ jobs:
|
|
|
with:
|
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
|
|
- snuba:
|
|
|
- if: needs.files-changed.outputs.backend == 'true'
|
|
|
- needs: files-changed
|
|
|
- name: snuba test
|
|
|
- runs-on: ubuntu-20.04
|
|
|
- timeout-minutes: 45
|
|
|
- strategy:
|
|
|
- # This helps not having to run multiple jobs because one fails, thus, reducing resource usage
|
|
|
- # and reducing the risk that one of many runs would turn red again (read: intermittent tests)
|
|
|
- fail-fast: false
|
|
|
- matrix:
|
|
|
- # XXX: When updating this, make sure you also update MATRIX_INSTANCE_TOTAL.
|
|
|
- instance: [0, 1, 2, 3]
|
|
|
- env:
|
|
|
- # XXX: MATRIX_INSTANCE_TOTAL must be hardcoded to the length of strategy.matrix.instance.
|
|
|
- MATRIX_INSTANCE_TOTAL: 4
|
|
|
-
|
|
|
- steps:
|
|
|
- - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
|
|
|
- with:
|
|
|
- # Avoid codecov error message related to SHA resolution:
|
|
|
- # https://github.com/codecov/codecov-bash/blob/7100762afbc822b91806a6574658129fe0d23a7d/codecov#L891
|
|
|
- fetch-depth: '2'
|
|
|
-
|
|
|
- - name: Setup sentry env
|
|
|
- uses: ./.github/actions/setup-sentry
|
|
|
- id: setup
|
|
|
- with:
|
|
|
- snuba: true
|
|
|
- kafka: true
|
|
|
-
|
|
|
- - name: Run snuba test (${{ steps.setup.outputs.matrix-instance-number }} of ${{ steps.setup.outputs.matrix-instance-total }})
|
|
|
- run: |
|
|
|
- make test-snuba
|
|
|
-
|
|
|
- # Upload coverage data even if running the tests step fails since
|
|
|
- # it reduces large coverage fluctuations
|
|
|
- - name: Handle artifacts
|
|
|
- if: ${{ always() }}
|
|
|
- uses: ./.github/actions/artifacts
|
|
|
- with:
|
|
|
- token: ${{ secrets.CODECOV_TOKEN }}
|
|
|
-
|
|
|
symbolicator:
|
|
|
if: needs.files-changed.outputs.backend == 'true'
|
|
|
needs: files-changed
|
|
@@ -442,7 +400,6 @@ jobs:
|
|
|
migration,
|
|
|
plugins,
|
|
|
relay,
|
|
|
- snuba,
|
|
|
symbolicator,
|
|
|
typing,
|
|
|
]
|