Jira (PDB-5094) Add some initial command processing tests

2 views
Skip to first unread message

Rob Browning (Jira)

unread,
Apr 6, 2021, 8:22:03 PM4/6/21
to puppe...@googlegroups.com
Rob Browning created an issue
 
PuppetDB / Improvement PDB-5094
Add some initial command processing tests
Issue Type: Improvement Improvement
Assignee: Unassigned
Components: PuppetDB
Created: 2021/04/06 5:21 PM
Priority: Normal Normal
Reporter: Rob Browning

Add an initial tool (say ext/bin/check-query-perf or something) to run a query performance test (for now just capturing query execution times) against puppetdb, likely via ./pdb, when given a set of queries and the pdb address (or could just default to localhost:8080 for now). It's fine for it to be a requirement that lein uberjar has already been run. One place we might consider storing the queries, if they're not sensitive, is somewhere in dev-resources/.

It's completely fine for the first implementation to be as simple as (effectively) running time curl ... -d@query-file > /dev/null once for each query and saving the times somewhere for later processing.
We'll probably also eventually want some way, perhaps via gnuplot, or matplotlib to quickly compare results, but that can be addressed separately. Capturing the execution times, can support that work, and future possible automated regression testing.

While we don't need (and might not want for now) the full automatic PDBBOX creation whenever one isn't already indicated in the environment that ext/bin/render-pdb-schema does, we might want to follow some of the existing argument conventions/behaviors there and in our other tools. For example, if we want to allow specification of the pdb to query, we could use --pgport PGPORT, etc.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages