-
Notifications
You must be signed in to change notification settings - Fork 2
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
Move fourfront from pytest 2.9 to 3.10 (ALT) #1437
base: master
Are you sure you want to change the base?
Changes from all commits
d106085
53ea8b8
2ffb342
70375ff
3407507
39393e5
56e25b4
ec3c2cc
7187013
2cca870
effb1a1
5f12ac0
4966b2d
ba95e4f
fad2e81
cf4a6c5
8dc4b70
6001cbf
c0e9317
c4bffdd
6410658
86ec08c
22ae5f2
aab5734
0552293
22b6902
d64a698
d4e3e83
bff4eca
c0c1d85
174e191
37a10f5
4ac2485
d667276
659ab9f
3c71f6b
a918509
15aab13
d2965dc
e900f48
0d492f8
615c7a9
712c61b
78e9730
ac83546
17561b8
576dbff
6806e37
47a6534
c9b7f29
6d46604
0cf5885
75267b5
a54c22a
23c793d
4d65034
2ec7e7f
ab02f65
4337fe6
4c5ddaf
53142cb
b457e2f
559c77e
14b8bad
54194cf
0cfc702
946299f
313f440
df9e5ca
94c3552
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
SHELL=/bin/bash | ||
|
||
clean: # clear node modules, eggs, npm build stuff | ||
make clean-python-caches | ||
make clean-npm-caches | ||
|
@@ -38,7 +40,7 @@ macpoetry-install: # Same as 'poetry install' except that on OSX Catalina, an e | |
|
||
configure: # does any pre-requisite installs | ||
pip install --upgrade pip | ||
pip install poetry==1.0.10 # pinned to avoid build problems we cannot fix in pyproject.toml | ||
pip install poetry==1.1.4 # poetry latest as of 1/25/2021 seemed to work but apparantly does not | ||
|
||
build: # builds | ||
make configure | ||
|
@@ -93,11 +95,17 @@ deploy2: # spins up waittress to serve the application | |
pserve development.ini | ||
|
||
psql-dev: # starts psql with the url after 'sqlalchemy.url =' in development.ini | ||
@psql `grep 'sqlalchemy[.]url =' development.ini | sed -E 's/^.* = (.*)/\1/'` | ||
@scripts/psql-start dev | ||
|
||
psql-test: # starts psql with a url constructed from data in 'ps aux'. | ||
@scripts/psql-start test | ||
|
||
kibana-start: | ||
kibana-start: # starts a dev version of kibana (default port) | ||
scripts/kibana-start | ||
|
||
kibana-start-test: # starts a test version of kibana (port chosen for active tests) | ||
scripts/kibana-start test | ||
|
||
kibana-stop: | ||
scripts/kibana-stop | ||
|
||
|
@@ -112,16 +120,36 @@ clean-python: | |
pip freeze | xargs pip uninstall -y | ||
|
||
test: | ||
bin/test -vv --timeout=200 -m "working and not performance" | ||
make test-npm | ||
make test-unit | ||
|
||
retest: | ||
bin/test -vv --last-failed | ||
|
||
test-any: | ||
bin/test -vv --timeout=200 | ||
|
||
test-npm: | ||
bin/test -vv --timeout=200 -m "working and not manual and not integratedx and not performance and not broken and not broken_locally and not sloppy and not indexing" | ||
|
||
test-unit: | ||
bin/test -vv --timeout=200 -m "working and not manual and not integratedx and not performance and not broken and not broken_locally and not sloppy and indexing" | ||
|
||
test-performance: | ||
bin/test -vv --timeout=200 -m "working and not manual and not integratedx and performance and not broken and not broken_locally and not sloppy" | ||
|
||
test-integrated: | ||
bin/test -vv --timeout=200 -m "working and not manual and (integrated or integratedx) and not performance and not broken and not broken_locally and not sloppy" | ||
|
||
travis-test: # Actually, we don't normally use this. Instead the GA workflow sets up two parallel tests. | ||
make travis-test-npm | ||
make travis-test-unit | ||
|
||
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. Some of the changes in this file, and this PR in general, are just leveling with Note that in spite of all these markers, I still had to mark tests not to run with The |
||
travis-test-npm: # Note this only does the 'not indexing' tests | ||
bin/test -vv --force-flaky --max-runs=3 --timeout=400 -m "working and not performance and not indexing and not action_fail" --aws-auth --durations=10 --cov src/encoded --es search-fourfront-testing-6-8-kncqa2za2r43563rkcmsvgn2fq.us-east-1.es.amazonaws.com:443 | ||
bin/test -vv --force-flaky --max-runs=3 --timeout=400 -m "working and not manual and not integratedx and not performance and not broken and not broken_remotely and not sloppy and not indexing" --aws-auth --durations=10 --cov src/encoded --es search-fourfront-testing-6-8-kncqa2za2r43563rkcmsvgn2fq.us-east-1.es.amazonaws.com:443 | ||
|
||
travis-test-unit: # Note this does the 'indexing' tests | ||
bin/test -vv --force-flaky --max-runs=3 --timeout=400 -m "working and not performance and indexing and not action_fail" --aws-auth --durations=10 --cov src/encoded --es search-fourfront-testing-6-8-kncqa2za2r43563rkcmsvgn2fq.us-east-1.es.amazonaws.com:443 | ||
bin/test -vv --force-flaky --max-runs=3 --timeout=400 -m "working and not manual and not integratedx and not performance and not broken and not broken_remotely and not sloppy and indexing" --aws-auth --durations=10 --cov src/encoded --es search-fourfront-testing-6-8-kncqa2za2r43563rkcmsvgn2fq.us-east-1.es.amazonaws.com:443 | ||
|
||
update: # updates dependencies | ||
poetry update | ||
|
@@ -140,11 +168,14 @@ info: | |
$(info - Use 'make configure' to install poetry. You should not have to do this directly.) | ||
$(info - Use 'make deploy1' to spin up postgres/elasticsearch and load inserts.) | ||
$(info - Use 'make deploy2' to spin up the application server.) | ||
$(info - Use 'make psql-dev' to start psql on data associated with an active 'make deploy1'.) | ||
$(info - Use 'make kibana-start' to start kibana, and 'make kibana-stop' to stop it.) | ||
$(info - Use 'make kibana-start' to start kibana on the default local ES port, and 'make kibana-stop' to stop it.) | ||
$(info - Use 'make kibana-start-test' to start kibana on the port being used for active testing, and 'make kibana-stop' to stop it.) | ||
$(info - Use 'make kill' to kill postgres and elasticsearch proccesses. Please use with care.) | ||
$(info - Use 'make moto-setup' to install moto, for less flaky tests. Implied by 'make build'.) | ||
$(info - Use 'make npm-setup' to build the front-end. Implied by 'make build'.) | ||
$(info - Use 'make test' to run tests with normal options we use on travis ('-m "working and not performance"').) | ||
$(info - Use 'make psql-dev' to start psql on data associated with an active 'make deploy1'.) | ||
$(info - Use 'make psql-test' to start psql on data associated with an active test.) | ||
$(info - Use 'make retest' to run failing tests from the previous test run.) | ||
$(info - Use 'make test' to run tests with normal options similar to what we use on GitHub Actions.) | ||
$(info - Use 'make test-any' to run tests without marker constraints (i.e., with no '-m' option).) | ||
$(info - Use 'make update' to update dependencies (and the lock file).) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is actually out of date now,
1.1.4
is latest and didn't work without the fix-dist-info step, which we now have so we're good.