-
Notifications
You must be signed in to change notification settings - Fork 51
Parallel Playwright #1945
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
Merged
Merged
Parallel Playwright #1945
Changes from 14 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
19a9c77
Set playwright test timeouts to default
ryan-pratt 5b208c7
Fix some parallelization issues with tests
ryan-pratt 6196f3f
Enable playwright parallelization
ryan-pratt 713e60d
Disable parallelization for a few playwright test files
ryan-pratt 51c5579
Fix more parallelization issues
ryan-pratt 7c5fa9e
Set start/end date in no time delta case
jmthomas dff0609
Merge branch 'playwright' of https://github.com/OpenC3/cosmos into pl…
jmthomas 89c4f28
Merge branch 'main' into playwright
jmthomas ff08b9b
More playwright parallel fixes
ryan-pratt a2f05c5
Merge branch 'main' into playwright
ryan-pratt 445b996
Split tests into parallel and serial groups
ryan-pratt 995a216
fix typo
ryan-pratt 9df8390
Merge branch 'main' into playwright
ryan-pratt 79701ca
changes for enterprise
ryan-pratt faec881
Merge branch 'main' into playwright
ryan-pratt 80e4d01
Stop testing if parallel tests fail
ryan-pratt 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 hidden or 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 hidden or 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
34 changes: 17 additions & 17 deletions
34
openc3-cosmos-init/plugins/packages/openc3-cosmos-demo/targets/INST2/procedures/stash.py
This file contains hidden or 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 |
---|---|---|
@@ -1,22 +1,22 @@ | ||
# Stash API is useful for storing simple key/value pairs | ||
# to preserve state between script runs | ||
stash_set("key1", "val1") | ||
stash_set("key2", "val2") | ||
check_expression(f"'{stash_get('key1')}' == 'val1'") | ||
check_expression(f"'{stash_get('key2')}' == 'val2'") | ||
check_expression(f"{stash_keys()} == ['key1', 'key2']") | ||
stash_set("key1", 1) | ||
stash_set("key2", 2) | ||
check_expression(f"{stash_all()} == {{'key1':1, 'key2':2}}") | ||
stash_delete("key2") | ||
check_expression(f"{stash_get('key2')} == None") | ||
stash_delete("key1") | ||
stash_set("key1_py", "val1") | ||
stash_set("key2_py", "val2") | ||
check_expression(f"'{stash_get('key1_py')}' == 'val1'") | ||
check_expression(f"'{stash_get('key2_py')}' == 'val2'") | ||
stash_set("key1_py", 1) | ||
stash_set("key2_py", 2) | ||
check_expression(f"'{stash_get('key1_py')}' == '1'") | ||
check_expression(f"'{stash_get('key2_py')}' == '2'") | ||
stash_delete("key2_py") | ||
check_expression(f"{stash_get('key2_py')} == None") | ||
stash_delete("key1_py") | ||
data = [1, 2, [3, 4]] | ||
stash_set("ary", data) | ||
check_expression(f"{stash_get('ary')} == {data}") | ||
stash_delete("ary") | ||
stash_set("ary_py", data) | ||
check_expression(f"{stash_get('ary_py')} == {data}") | ||
stash_delete("ary_py") | ||
# Note: hashes with symbol keys works but get converted to string keys on stash_get | ||
hash = {"one": 1, "two": 2, "string": "string"} | ||
stash_set("hash", hash) | ||
check_expression(f"{stash_get('hash')} == {hash}") | ||
stash_delete("hash") | ||
stash_set("hash_py", hash) | ||
check_expression(f"{stash_get('hash_py')} == {hash}") | ||
stash_delete("hash_py") |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -6,6 +6,7 @@ usage() { | |
echo "* build-plugin: builds the plugin to be used in the playwright tests" >&2 | ||
echo "* reset-storage-state: clear out cached data" >&2 | ||
echo "* run-chromium: runs the playwright tests against a locally running version of Cosmos using Chrome" >&2 | ||
echo "* run-enterprise: runs the enterprise playwright tests against a locally running version of Cosmos using Chrome" >&2 | ||
echo "* run-aws: runs the playwright tests against a remotely running version of Cosmos using Chrome" >&2 | ||
exit 1 | ||
} | ||
|
@@ -44,12 +45,15 @@ case $1 in | |
;; | ||
|
||
run-chromium ) | ||
yarn playwright test "${@:2}" --project=chromium | ||
yarn test | ||
;; | ||
|
||
run-enterprise ) | ||
yarn test:enterprise | ||
|
||
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. Missing closing ;; |
||
run-aws ) | ||
sed -i 's#http://localhost:2900#https://aws.openc3.com#' playwright.config.ts | ||
KEYCLOAK_URL=https://aws.openc3.com/auth REDIRECT_URL=https://aws.openc3.com/* yarn playwright test --project=keycloak | ||
yarn playwright test "${@:2}" --project=chromium | ||
KEYCLOAK_URL=https://aws.openc3.com/auth REDIRECT_URL=https://aws.openc3.com/* yarn test:keycloak | ||
yarn test | ||
;; | ||
esac |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or 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
File renamed without changes.
File renamed without changes.
This file contains hidden or 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 hidden or 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
What's up with the new
keycloak
project?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.
It's part of the aws testing: https://github.com/OpenC3/cosmos/blob/main/playwright/playwright.sh#L52