This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Move Complement test matrix jobs definition to match Sytest and Trial. #14153
Closed
realtyem
wants to merge
20
commits into
matrix-org:develop
from
realtyem:realtyem/complement-move-workers-def-to-one-place
Closed
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
d7192cd
Duplicate worker types defined in start_for_complement.sh into calcul…
realtyem 5847f41
Modify tests.yml to use the new job matrix.
realtyem db446cc
Pass the SYNAPSE_WORKER_TYPES through to the Complement tests.
realtyem 560e28c
Strip out the now unneeded part of start_for_complement.sh.
realtyem 84399a3
Changelog.
realtyem 2f9f79b
Merge branch 'develop' into realtyem/complement-move-workers-def-to-o…
realtyem 6be11b6
Adjust for PR #14028 being merged.
realtyem a246dda
Fix executable permission on start_for_complement.sh.
realtyem 01992aa
Don't actually need to put the SYNAPSE_ prefix on env variables.
realtyem 785cf2e
Update docs and include example.
realtyem a4306d1
Merge branch 'develop' into realtyem/complement-move-workers-def-to-o…
realtyem a5de665
Merge branch 'develop' into realtyem/complement-move-workers-def-to-o…
realtyem 079c5d9
Create backwards compatibility use for WORKERS=1 in start_for_complem…
realtyem 7528511
[REVERT THIS] Create quick test to make sure it all works as intended.
realtyem 6846a1c
How did those get in there?
realtyem 80afb8a
Update to docs.
realtyem eca4595
Merge branch 'develop' into realtyem/complement-move-workers-def-to-o…
realtyem b16d4b3
It's an underscore, not a hyphen
realtyem 6c8675c
Seriously? Editing on Github directly changes the executable permissi…
realtyem 720f55e
Merge branch 'develop' into realtyem/complement-move-workers-def-to-o…
realtyem File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Move Complement CI job matrix definition to central location to match Sytest and Trial. Contributed by Jason Little. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -323,7 +323,8 @@ COMPLEMENT_DIR=../complement ./scripts-dev/complement.sh -run TestImportHistoric | |
The above will run a monolithic (single-process) Synapse with SQLite as the database. For other configurations, try: | ||
|
||
- Passing `POSTGRES=1` as an environment variable to use the Postgres database instead. | ||
- Passing `WORKERS=1` as an environment variable to use a workerised setup instead. This option implies the use of Postgres. | ||
- Passing `WORKERS=1` as an environment variable to use a set of workers that mirrors what is used in Sytest. This option implies the use of Postgres. | ||
- If setting `WORKERS=1`, optionally set `WORKER_TYPES=` to declare which worker types you wish to test. A simple comma-delimited string containing the worker types defined from the template in [here](https://github.com/matrix-org/synapse/blob/develop/docker/configure_workers_and_start.py). A safe example would be `WORKER_TYPES="federation_inbound,federation_sender,synchrotron,"`. See the [worker documentation](https://matrix-org.github.io/synapse/latest/workers.html) for additional information on workers. | ||
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. I think you don't want to have a trailing comma after 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. Nice catch, that's right it needs to not be there. |
||
|
||
To increase the log level for the tests, set `SYNAPSE_TEST_LOG_LEVEL`, e.g: | ||
```sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,6 +139,9 @@ if [[ -n "$WORKERS" ]]; then | |
# Use workers. | ||
export PASS_SYNAPSE_COMPLEMENT_USE_WORKERS=true | ||
|
||
# Pass through the workers defined. If none, it will be an empty string | ||
export PASS_SYNAPSE_WORKER_TYPES="$WORKER_TYPES" | ||
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. This way it matches with the variables being declared on the commandline and environment at the same time. Standardization is good, redundancy is bad. |
||
|
||
# Workers can only use Postgres as a database. | ||
export PASS_SYNAPSE_COMPLEMENT_DATABASE=postgres | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why wouldn't this be included under the
complement
job above as part of the matrix?It's also not clear what this is testing backwards compatibility with?