-
Notifications
You must be signed in to change notification settings - Fork 5
Add top level track filter #7
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
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
2a13276
Add top-level tracks in --track-filter
NickDris c4b2b7d
Minor fixes
NickDris 38a80df
Merge branch 'main' into add-top-level-track-filter
NickDris 76e27c9
Don't test all tracks if given a sub-track in the filter
NickDris 6355fa2
Fix expected unit test outcomes and get rid of any() conditional
NickDris 7715b4b
Simplify unit tests
NickDris 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
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
28 changes: 28 additions & 0 deletions
28
tests/resources/track-repo/many-tracks/sub-track/index.json
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 |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| { | ||
| "settings": { | ||
| "index.number_of_replicas": 0 | ||
| }, | ||
| "mappings": { | ||
| "dynamic": "strict", | ||
| "properties": { | ||
| "geonameid": { | ||
| "type": "long" | ||
| }, | ||
| "name": { | ||
| "type": "text" | ||
| }, | ||
| "latitude": { | ||
| "type": "double" | ||
| }, | ||
| "longitude": { | ||
| "type": "double" | ||
| }, | ||
| "country_code": { | ||
| "type": "text" | ||
| }, | ||
| "population": { | ||
| "type": "int" | ||
| } | ||
| } | ||
| } | ||
| } |
104 changes: 104 additions & 0 deletions
104
tests/resources/track-repo/many-tracks/sub-track/track.json
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 |
|---|---|---|
| @@ -0,0 +1,104 @@ | ||
| { | ||
| "version": 2, | ||
| "description": "Track 1 for testing pytest-rally", | ||
| "indices": [ | ||
| { | ||
| "name": "test", | ||
| "body": "index.json" | ||
| } | ||
| ], | ||
| "corpora": [ | ||
| { | ||
| "name": "test-track", | ||
| "documents": [ | ||
| { | ||
| "source-file": "documents.json", | ||
| "document-count": 100, | ||
| "uncompressed-bytes": 100 | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "challenges": [ | ||
| { | ||
| "name": "index-and-query", | ||
| "default": true, | ||
| "schedule": [ | ||
| { | ||
| "operation": { | ||
| "operation-type": "delete-index" | ||
| } | ||
| }, | ||
| { | ||
| "operation": { | ||
| "operation-type": "create-index" | ||
| } | ||
| }, | ||
| { | ||
| "operation": { | ||
| "operation-type": "cluster-health", | ||
| "request-params": { | ||
| "wait_for_status": "green" | ||
| }, | ||
| "retry-until-success": true | ||
| } | ||
| }, | ||
| { | ||
| "operation": { | ||
| "operation-type": "bulk", | ||
| "bulk-size": 5000 | ||
| }, | ||
| "warmup-time-period": 120, | ||
| "clients": 8 | ||
| }, | ||
| { | ||
| "operation": { | ||
| "name": "query-match-all", | ||
| "operation-type": "search", | ||
| "body": { | ||
| "query": { | ||
| "match_all": {} | ||
| } | ||
| } | ||
| }, | ||
| "clients": 8, | ||
| "warmup-iterations": 1000, | ||
| "iterations": 1000, | ||
| "target-throughput": 100 | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "name": "index-only", | ||
| "schedule": [ | ||
| { | ||
| "operation": { | ||
| "operation-type": "delete-index" | ||
| } | ||
| }, | ||
| { | ||
| "operation": { | ||
| "operation-type": "create-index" | ||
| } | ||
| }, | ||
| { | ||
| "operation": { | ||
| "operation-type": "cluster-health", | ||
| "request-params": { | ||
| "wait_for_status": "green" | ||
| }, | ||
| "retry-until-success": true | ||
| } | ||
| }, | ||
| { | ||
| "operation": { | ||
| "operation-type": "bulk", | ||
| "bulk-size": 5000 | ||
| }, | ||
| "warmup-time-period": 120, | ||
| "clients": 8 | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
28 changes: 28 additions & 0 deletions
28
tests/resources/track-repo/many-tracks/sub-track2/index.json
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 |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| { | ||
| "settings": { | ||
| "index.number_of_replicas": 0 | ||
| }, | ||
| "mappings": { | ||
| "dynamic": "strict", | ||
| "properties": { | ||
| "geonameid": { | ||
| "type": "long" | ||
| }, | ||
| "name": { | ||
| "type": "text" | ||
| }, | ||
| "latitude": { | ||
| "type": "double" | ||
| }, | ||
| "longitude": { | ||
| "type": "double" | ||
| }, | ||
| "country_code": { | ||
| "type": "double" | ||
| }, | ||
| "population": { | ||
| "type": "long" | ||
| } | ||
| } | ||
| } | ||
| } |
109 changes: 109 additions & 0 deletions
109
tests/resources/track-repo/many-tracks/sub-track2/track.json
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 |
|---|---|---|
| @@ -0,0 +1,109 @@ | ||
| { | ||
| "version": 2, | ||
| "description": "Track 2 for testing pytest-rally", | ||
| "indices": [ | ||
| { | ||
| "name": "test", | ||
| "body": "index.json" | ||
| } | ||
| ], | ||
| "corpora": [ | ||
| { | ||
| "name": "test-track2", | ||
| "documents": [ | ||
| { | ||
| "source-file": "documents.json", | ||
| "document-count": 100, | ||
| "uncompressed-bytes": 100 | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "challenges": [ | ||
| { | ||
| "name": "index-and-query", | ||
| "default": true, | ||
| "schedule": [ | ||
| { | ||
| "operation": { | ||
| "operation-type": "delete-index" | ||
| } | ||
| }, | ||
| { | ||
| "operation": { | ||
| "operation-type": "create-index" | ||
| } | ||
| }, | ||
| { | ||
| "operation": { | ||
| "operation-type": "cluster-health", | ||
| "request-params": { | ||
| "wait_for_status": "green" | ||
| }, | ||
| "retry-until-success": true | ||
| } | ||
| }, | ||
| { | ||
| "operation": { | ||
| "operation-type": "bulk", | ||
| "bulk-size": 5000 | ||
| }, | ||
| "warmup-time-period": 120, | ||
| "clients": 8 | ||
| }, | ||
| { | ||
| "operation": { | ||
| "operation-type": "force-merge" | ||
| } | ||
| }, | ||
| { | ||
| "operation": { | ||
| "name": "query-match-all", | ||
| "operation-type": "search", | ||
| "body": { | ||
| "query": { | ||
| "match_all": {} | ||
| } | ||
| } | ||
| }, | ||
| "clients": 8, | ||
| "warmup-iterations": 1000, | ||
| "iterations": 1000, | ||
| "target-throughput": 100 | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "name": "index-only", | ||
| "schedule": [ | ||
| { | ||
| "operation": { | ||
| "operation-type": "delete-index" | ||
| } | ||
| }, | ||
| { | ||
| "operation": { | ||
| "operation-type": "create-index" | ||
| } | ||
| }, | ||
| { | ||
| "operation": { | ||
| "operation-type": "cluster-health", | ||
| "request-params": { | ||
| "wait_for_status": "green" | ||
| }, | ||
| "retry-until-success": true | ||
| } | ||
| }, | ||
| { | ||
| "operation": { | ||
| "operation-type": "bulk", | ||
| "bulk-size": 5000 | ||
| }, | ||
| "warmup-time-period": 120, | ||
| "clients": 8 | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
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.
Uh oh!
There was an error while loading. Please reload this page.