serhiy-bzhezytskyy opened a new pull request, #189:
URL: https://github.com/apache/solr-orbit/pull/189

   A converted geonames `workload.json` has a top-level `data-url`, and 
nyc_taxis' has a `#COMMENT` key, that the shipped workloads do not carry. 
geonames' procedures also say OpenSearch in four descriptions.
   
   solr-orbit reads each corpus's own `base-url` and never the workload-level 
`data-url`, and nothing reads `#COMMENT`, so the converter removes both. In a 
`description` the word OpenSearch becomes Solr; names and every other field 
stay as they are.
   
   | converted workload | before | after |
   |---|---|---|
   | geonames `workload.json`, `data-url` | 1 | 0 |
   | nyc_taxis `workload.json`, `#COMMENT` | 1 | 0 |
   | geonames `test_procedures/default.json`, "OpenSearch" | 4 | 0 |
   
   Not covered: the descriptions in solr-orbit-workloads are shorter than 
upstream's, because they drop the sentences about replicas and the benchmark's 
start condition. The converter keeps upstream's remaining text, so a 
description still differs in length. A description that names OpenSearch on 
purpose, to compare the engines, would now say Solr.
   
   Test with:
   ```
   solr-orbit convert-workload --workload-path 
<opensearch-benchmark-workloads>/geonames --output-path /tmp/geonames-solr
   grep -c "data-url" /tmp/geonames-solr/workload.json
   grep -c "OpenSearch" /tmp/geonames-solr/test_procedures/default.json
   pytest tests/unit/solr -k "InertKeys or Descriptions"
   ```
   Both `grep -c` print 0; before the change they printed 1 and 4. pytest 
prints `5 passed`.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to