|
36 | 36 | run: |
|
37 | 37 | yarn add ts-node && make test-api-docs
|
38 | 38 |
|
| 39 | + backend-test-gha: |
| 40 | + name: backend test on GHA |
| 41 | + runs-on: ubuntu-24.04 |
| 42 | + timeout-minutes: 60 |
| 43 | + permissions: |
| 44 | + contents: read |
| 45 | + id-token: write |
| 46 | + strategy: |
| 47 | + # This helps not having to run multiple jobs because one fails, thus, reducing resource usage |
| 48 | + # and reducing the risk that one of many runs would turn red again (read: intermittent tests) |
| 49 | + fail-fast: false |
| 50 | + matrix: |
| 51 | + # XXX: When updating this, make sure you also update MATRIX_INSTANCE_TOTAL. |
| 52 | + instance: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] |
| 53 | + pg-version: ["14"] |
| 54 | + |
| 55 | + env: |
| 56 | + # XXX: `MATRIX_INSTANCE_TOTAL` must be hardcoded to the length of `strategy.matrix.instance`. |
| 57 | + # If this increases, make sure to also increase `flags.backend.after_n_builds` in `codecov.yml`. |
| 58 | + MATRIX_INSTANCE_TOTAL: 11 |
| 59 | + |
| 60 | + steps: |
| 61 | + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 |
| 62 | + with: |
| 63 | + repository: getsentry/sentry |
| 64 | + ref: master |
| 65 | + |
| 66 | + - name: Setup sentry env |
| 67 | + uses: ./.github/actions/setup-sentry |
| 68 | + id: setup |
| 69 | + with: |
| 70 | + mode: backend-ci |
| 71 | + |
| 72 | + - name: Run backend test (${{ steps.setup.outputs.matrix-instance-number }} of ${{ steps.setup.outputs.matrix-instance-total }}) |
| 73 | + run: | |
| 74 | + make test-python-ci |
| 75 | +
|
39 | 76 | cli-gha:
|
40 | 77 | name: cli test on GHA
|
41 | 78 | runs-on: ubuntu-24.04
|
@@ -106,6 +143,40 @@ jobs:
|
106 | 143 | run: |
|
107 | 144 | yarn add ts-node && make test-api-docs
|
108 | 145 |
|
| 146 | + backend-test-depot: |
| 147 | + name: backend test on Depot |
| 148 | + runs-on: depot-ubuntu-22.04 |
| 149 | + timeout-minutes: 60 |
| 150 | + strategy: |
| 151 | + # This helps not having to run multiple jobs because one fails, thus, reducing resource usage |
| 152 | + # and reducing the risk that one of many runs would turn red again (read: intermittent tests) |
| 153 | + fail-fast: false |
| 154 | + matrix: |
| 155 | + # XXX: When updating this, make sure you also update MATRIX_INSTANCE_TOTAL. |
| 156 | + instance: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] |
| 157 | + pg-version: ["14"] |
| 158 | + |
| 159 | + env: |
| 160 | + # XXX: `MATRIX_INSTANCE_TOTAL` must be hardcoded to the length of `strategy.matrix.instance`. |
| 161 | + # If this increases, make sure to also increase `flags.backend.after_n_builds` in `codecov.yml`. |
| 162 | + MATRIX_INSTANCE_TOTAL: 11 |
| 163 | + |
| 164 | + steps: |
| 165 | + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 |
| 166 | + with: |
| 167 | + repository: getsentry/sentry |
| 168 | + ref: master |
| 169 | + |
| 170 | + - name: Setup sentry env |
| 171 | + uses: ./.github/actions/setup-sentry |
| 172 | + id: setup |
| 173 | + with: |
| 174 | + mode: backend-ci |
| 175 | + |
| 176 | + - name: Run backend test (${{ steps.setup.outputs.matrix-instance-number }} of ${{ steps.setup.outputs.matrix-instance-total }}) |
| 177 | + run: | |
| 178 | + make test-python-ci |
| 179 | +
|
109 | 180 | cli-depot:
|
110 | 181 | name: cli test on Depot
|
111 | 182 | runs-on: depot-ubuntu-22.04
|
|
0 commit comments