-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
test: add required testing on Python 3.8.12 #29116
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
Changes from all commits
053db49
d69ad1e
5f44b7f
12372a1
32b1b9e
d335fcf
48ed287
9c3ecf1
e7277f3
633b824
8aee9d5
d7a4765
4a12386
e563d44
f4ca150
391964b
08b2188
b8c8b5f
eb8fa09
e1d2b24
01cae19
28bb46f
bab9c5c
ddc2a07
cf689e3
2aae397
bdc874a
198b29c
5c9eacd
0729e9e
6ac87f6
369fce3
58cc93c
dda38ab
39ff322
fe43c29
f501407
f99d583
d4238d7
483ab2e
bda99f7
07c9b0a
b909931
20fb2c0
1a94b1e
07b70d2
6f5f2d3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,6 +54,9 @@ outputs: | |
| matrix-instance-number: | ||
| description: "The matrix instance number (starting at 1)" | ||
| value: ${{ steps.config.outputs.matrix-instance-number }} | ||
| matrix-instance-total: | ||
| description: "Reexport of MATRIX_INSTANCE_TOTAL." | ||
| value: ${{ steps.config.outputs.matrix-instance-total }} | ||
|
|
||
| runs: | ||
| using: "composite" | ||
|
|
@@ -63,7 +66,10 @@ runs: | |
| env: | ||
| NEED_KAFKA: ${{ inputs.kafka }} | ||
| MATRIX_INSTANCE: ${{ matrix.instance }} | ||
| MATRIX_INSTANCE_TOTAL: ${{ strategy.job-total }} | ||
| # XXX: We should be using something like len(strategy.matrix.instance) (not possible atm) | ||
| # If you have other things like python-version: [foo, bar, baz] then the sharding logic | ||
| # isn't right because job-total will be 3x larger and you'd never run 2/3 of the tests. | ||
| # MATRIX_INSTANCE_TOTAL: ${{ strategy.job-total }} | ||
|
Comment on lines
+69
to
+72
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah yeah -- when we were doing 2.7, 3.6 - I opted to make a new workflow file with this being a reason. The other reason being that restarting the acceptance workflow would re-run acceptance tests for both python versions + frontend acceptance tests (when a flake probably wouldn't affect all jobs in the workflow).
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, I could have done that too... given that it's already working + I expect being able to remove 3.6 pretty quickly, I'll just leave it like this if that's ok? The way it is now, it's less prone to introducing something to the matrix and not realizing some sharded tests aren't being run. Plus the comments about the strategy matrix are helpful for the future. |
||
| run: | | ||
| # Only set `MIGRATIONS_TEST_MIGRATE` if it is not already set (or if it's an empty string) | ||
| if [ -z $MIGRATIONS_TEST_MIGRATE ]; then | ||
|
|
@@ -81,11 +87,17 @@ runs: | |
| ### pytest-sentry configuration ### | ||
| echo "PYTEST_SENTRY_DSN=https://6fd5cfea2d4d46b182ad214ac7810508@sentry.io/2423079" >> $GITHUB_ENV | ||
| echo "PYTEST_ADDOPTS=--reruns 5" >> $GITHUB_ENV | ||
|
|
||
| # this handles pytest test sharding | ||
| if [ "$MATRIX_INSTANCE" ]; then | ||
| if ! [ "$MATRIX_INSTANCE_TOTAL" ]; then | ||
| echo "MATRIX_INSTANCE_TOTAL is required." | ||
| exit 1 | ||
| fi | ||
| echo "TEST_GROUP=$MATRIX_INSTANCE" >> $GITHUB_ENV | ||
| echo "TOTAL_TEST_GROUPS=$MATRIX_INSTANCE_TOTAL" >> $GITHUB_ENV | ||
| fi | ||
|
|
||
| # This records failures on master to sentry in order to detect flakey tests, as it's | ||
| # expected that people have failing tests on their PRs | ||
| [ "$GITHUB_REF" = "refs/heads/master" ] && echo "PYTEST_SENTRY_ALWAYS_REPORT=1" >> $GITHUB_ENV || true | ||
|
|
@@ -124,6 +136,7 @@ runs: | |
| run: | | ||
| echo "::set-output name=yarn-cache-dir::$(yarn cache dir)" | ||
| echo "::set-output name=matrix-instance-number::$(($MATRIX_INSTANCE+1))" | ||
| echo "::set-output name=matrix-instance-total::$(($MATRIX_INSTANCE_TOTAL))" | ||
| echo "::set-output name=acceptance-dir::.artifacts/visual-snapshots/acceptance" | ||
|
|
||
| - name: Install python dependencies | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.