[Rndstroppy-76]: tests introspection, probation#47
Merged
Conversation
Now it's a separate complex step with lots of mock logic. Probe absorbs useful to users metainfo, "probeprint", with config. Closes RNDSTROPPY-76
human readable and json info about tests Closes RNDSTROPPY-76
Closes RNDSTROPPY-76
Closes RNDSTROPPY-76
a4814ea to
df37640
Compare
Closes RNDSTROPPY-76
Closes RNDSTROPPY-76
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description of Changes
stroppy probe path/to/test.ts [path/to/sql.sql] [--output (human | json)Human readable format emits copy paste ready introspection about test.
Help message show how to read 'human' readable format.
./build/stroppy probe --helpExample of tpcc probe:
stroppy probe workloads/tpcc/tpcc.tsJson, machine readable format.
stroppy probe workloads/tpcc/tpcc.ts -o json{"global_config":{"driver":{"url":"postgres://postgres:postgres@localhost:5432","dbSpecific":{},"driverType":"DRIVER_TYPE_POSTGRES","connectionType":{"sharedPool":{"sharedConnections":100}}}},"options":{"paused":null,"vus":null,"duration":null,"iterations":null,"stages":null,"scenarios":{"delivery":{"executor":"constant-vus","startTime":null,"gracefulStop":null,"env":null,"exec":"delivery","tags":null,"vus":4,"duration":"1h0m0s"},"new_order":{"executor":"constant-vus","startTime":null,"gracefulStop":null,"env":null,"exec":"new_order","tags":null,"vus":44,"duration":"1h0m0s"},"order_status":{"executor":"constant-vus","startTime":null,"gracefulStop":null,"env":null,"exec":"order_status","tags":null,"vus":4,"duration":"1h0m0s"},"payments":{"executor":"constant-vus","startTime":null,"gracefulStop":null,"env":null,"exec":"payments","tags":null,"vus":43,"duration":"1h0m0s"},"stock_level":{"executor":"constant-vus","startTime":null,"gracefulStop":null,"env":null,"exec":"stock_level","tags":null,"vus":4,"duration":"1h0m0s"}},"executionSegment":null,"executionSegmentSequence":null,"noSetup":null,"setupTimeout":"5m0s","noTeardown":null,"teardownTimeout":null,"rps":null,"dns":{"ttl":null,"select":null,"policy":null},"maxRedirects":null,"userAgent":null,"batch":null,"batchPerHost":null,"httpDebug":null,"insecureSkipTLSVerify":null,"tlsCipherSuites":null,"tlsVersion":null,"tlsAuth":null,"throw":null,"thresholds":null,"blacklistIPs":null,"blockHostnames":null,"hosts":null,"noConnectionReuse":null,"noVUConnectionReuse":null,"minIterationDuration":null,"ext":null,"summaryTrendStats":null,"summaryTimeUnit":null,"systemTags":null,"tags":null,"metricSamplesBufferSize":null,"noCookiesReset":null,"discardResponseBodies":null},"sql_sections":[{"name":"drop_schema","queries":null},{"name":"create_schema","queries":null},{"name":"workload","queries":[{"name":"delivery","text":""},{"name":"new_order","text":""},{"name":"order_status","text":""},{"name":"payment","text":""},{"name":"stock_level","text":""}]}],"envs":["DURATION","SCALE_FACTOR","WAREHOUSES","DRIVER_URL","SQL_FILE"],"steps":["create_schema","load_data","workload"]}Pretty-printed version.
stroppy probe workloads/tpcc/tpcc.ts -o json | jq{ "global_config": { "driver": { "url": "postgres://postgres:postgres@localhost:5432", "dbSpecific": {}, "driverType": "DRIVER_TYPE_POSTGRES", "connectionType": { "sharedPool": { "sharedConnections": 100 } } } }, "options": { "paused": null, "vus": null, "duration": null, "iterations": null, "stages": null, "scenarios": { "delivery": { "executor": "constant-vus", "startTime": null, "gracefulStop": null, "env": null, "exec": "delivery", "tags": null, "vus": 4, "duration": "1h0m0s" }, "new_order": { "executor": "constant-vus", "startTime": null, "gracefulStop": null, "env": null, "exec": "new_order", "tags": null, "vus": 44, "duration": "1h0m0s" }, "order_status": { "executor": "constant-vus", "startTime": null, "gracefulStop": null, "env": null, "exec": "order_status", "tags": null, "vus": 4, "duration": "1h0m0s" }, "payments": { "executor": "constant-vus", "startTime": null, "gracefulStop": null, "env": null, "exec": "payments", "tags": null, "vus": 43, "duration": "1h0m0s" }, "stock_level": { "executor": "constant-vus", "startTime": null, "gracefulStop": null, "env": null, "exec": "stock_level", "tags": null, "vus": 4, "duration": "1h0m0s" } }, "executionSegment": null, "executionSegmentSequence": null, "noSetup": null, "setupTimeout": "5m0s", "noTeardown": null, "teardownTimeout": null, "rps": null, "dns": { "ttl": null, "select": null, "policy": null }, "maxRedirects": null, "userAgent": null, "batch": null, "batchPerHost": null, "httpDebug": null, "insecureSkipTLSVerify": null, "tlsCipherSuites": null, "tlsVersion": null, "tlsAuth": null, "throw": null, "thresholds": null, "blacklistIPs": null, "blockHostnames": null, "hosts": null, "noConnectionReuse": null, "noVUConnectionReuse": null, "minIterationDuration": null, "ext": null, "summaryTrendStats": null, "summaryTimeUnit": null, "systemTags": null, "tags": null, "metricSamplesBufferSize": null, "noCookiesReset": null, "discardResponseBodies": null }, "sql_sections": [ { "name": "drop_schema", "queries": null }, { "name": "create_schema", "queries": null }, { "name": "workload", "queries": [ { "name": "delivery", "text": "" }, { "name": "new_order", "text": "" }, { "name": "order_status", "text": "" }, { "name": "payment", "text": "" }, { "name": "stock_level", "text": "" } ] } ], "envs": [ "DURATION", "SCALE_FACTOR", "WAREHOUSES", "DRIVER_URL", "SQL_FILE" ], "steps": [ "create_schema", "load_data", "workload" ] }Motivation and Context
Why is this change required?
How Has This Been Tested?
Describe tests or steps to verify.
Type of Changes
Checklist