{
  "repo": "pingcap/benchmarksql",
  "binary": "generate-report",
  "binary_path": "run/generateReport.sh",
  "dependencies": {
    "GenerateReportCLI.Execute": {
      "infrastructure": {
        "filesystem": {
          "conditions": [
            "Always when the command is invoked"
          ],
          "operations": [
            {
              "operation": "READ FILE",
              "trigger": "Read run.properties and generated CSV data from the result directory",
              "conditions": [
                "RESULT_DIR exists"
              ],
              "implementation": "open data/runInfo.csv, run.properties, data/tx_summary.csv, and generated graph inputs"
            },
            {
              "operation": "WRITE FILE",
              "trigger": "Render report.html into the result directory",
              "conditions": [
                "graph generation completed successfully"
              ],
              "implementation": "cat > report.html <<_EOF_ ..."
            }
          ]
        },
        "subprocess": {
          "conditions": [
            "Always before report rendering"
          ],
          "operations": [
            {
              "operation": "EXECUTE LOCAL SCRIPT",
              "trigger": "Generate graph PNG artifacts first",
              "conditions": [
                "RESULT_DIR argument is present"
              ],
              "implementation": "./generateGraphs.sh \"${1}\""
            }
          ]
        }
      },
      "services": []
    }
  }
}
