-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Explain the purpose of the "tests" conditional dependency requirement #7751
Conversation
I think in the past the assumption has been that tests get run with |
Hm, if that's the case we should probably place a comment in Edit: This PR has been updated to perform the above. |
3af5917
to
a424d62
Compare
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.
given that all
implies test
... what is the point of the test
extra?
Probably just to avoid magic in the calculation of the "all" requirement? |
fair |
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.
lgtm!
* commit 'dc80a0762': 1.16.0rc1 Back out MSC2625 implementation (#7761) Additional configuration options for auto-join rooms (#7763) Add some metrics for inbound and outbound federation processing times (#7755) Explain the purpose of the "tests" conditional dependency requirement (#7751) Add another yield point to state res v2 (#7746) Move flake8 to end. Don't exit script on failure (#7738) Make tox actions work on Debian 10 (#7703) Yield during large v2 state res. (#7735) add org.matrix.login.jwt so that m.login.jwt can be deprecated (#7675) Set Content-Length for Metrics requests (#7730) Sync ignored table names in synapse_port_db to current database schema (#7717) Allow local media to be marked as safe from being quarantined. (#7718) Convert directory handler to async/await (#7727) Speed up state res v2 across large state differences. (#7725)
jwt
, provided the thepyjwt
module, is required by our unit testssynapse/tests/rest/client/v1/test_login.py
Line 7 in 831b31e
This PR adds the module to the
test
conditional requirement.This does mean that we have to change a version number in two places if we ever want to update
pyjwt
s minimum version. Is there a way to consolidate this? (I'm aware I could define a version string outside of theCONDITIONAL_REQUIREMENTS
dict, but is there a better way?)EDIT: This PR has been updated to explain that
"test"
is not supposed to be all of the modules necessary to run the unit tests, but rather those modules that are exclusively required by unit test code.