{"record":{"id":"f10603a50f6ae8cb","repo":"oracle/graal","slug":"data-location-is-not-supported-for-suite-version","errorCode":null,"errorMessage":"data location is not supported for suite version '{self.version()}'","messagePattern":"data location is not supported for suite version '(.+?)'","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"sdk/mx.sdk/mx_sdk_benchmark.py","lineNumber":2630,"sourceCode":"                iterations = iterations + int(self.getExtraIterationCount(iterations) * args.sf)\n                return [\"-n\", str(iterations)] + otherArgs\n\n    def jarPath(self, benchmark):\n        if self.version() == \"23.11-MR2-chopin\":\n            return os.path.join(self.dataLocation(), \"launchers\", benchmark + \".jar\")\n        else:\n            return self.daCapoPath()\n\n    # The directory that contains `stats`, `launchers`, `dat` and `jar`\n    def dataLocation(self):\n        if self.version() == \"23.11-MR2-chopin\":\n            basePath = self.daCapoPath()\n            subdir = \"dacapo-23.11-MR2-chopin\"\n            if self.minimalArchive():\n                subdir += \"-minimal\"\n            return os.path.join(basePath, subdir)\n        else:\n            raise RuntimeError(f\"data location is not supported for suite version '{self.version()}'\")\n\n    def minimalArchive(self):\n        return False\n\n    def createCommandLineArgs(self, benchmarks, bmSuiteArgs):\n        if benchmarks is None:\n            raise RuntimeError(\n                \"Suite runs only a single benchmark.\")\n        if len(benchmarks) != 1:\n            raise RuntimeError(\n                f\"Suite runs only a single benchmark, got: {benchmarks}\")\n\n        benchmark = benchmarks[0]\n        runArgs = self.postprocessRunArgs(benchmark, self.runArgs(bmSuiteArgs))\n        if runArgs is None:\n            return None\n\n        jarPath = self.jarPath(benchmark)","sourceCodeStart":2612,"sourceCodeEnd":2648,"githubUrl":"https://github.com/oracle/graal/blob/a66e9ccd1d7bf2552883939aa0788dfd0e294aab/sdk/mx.sdk/mx_sdk_benchmark.py#L2612-L2648","documentation":"DaCapo suite dataLocation() only knows how to lay out data directories for suite version '23.11-MR2-chopin'. For any other version() it raises RuntimeError because the location of stats/launchers/dat/jar is version-specific and unimplemented.","triggerScenarios":"Selecting a DaCapo suite version other than 23.11-MR2-chopin (e.g. via --javaconstants-suite-version or a suite.py version override) and then invoking any code path that calls dataLocation().","commonSituations":"After a DaCapo suite upgrade in suite.py that adds a new version without extending dataLocation(); explicitly requesting an older version on the command line.","solutions":["Run with the supported version: pass --suite-version=23.11-MR2-chopin (or remove the override that selects a different version).","If you maintain the suite, add a branch for your version in dataLocation() describing where stats/launchers/dat/jar live for it.","Check self.version() resolution (suite.py metadata) to see which version is actually being picked up."],"exampleFix":"# before\nmx benchmark dacapo-chopin:fop -- --suite-version=9.12   # unsupported -> RuntimeError\n\n# after\nmx benchmark dacapo-chopin:fop -- --suite-version=23.11-MR2-chopin","handlingStrategy":"validation","validationCode":"version = suite.version()\nassert version == \"23.11-MR2-chopin\", (\n    f\"DaCapo dataLocation() unsupported for {version}; \"\n    \"pin --suite-version=23.11-MR2-chopin or extend dataLocation().\")","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Pin the suite version explicitly in benchmark commands.","When upgrading the DaCapo suite, extend dataLocation() for new versions in the same change.","Run a cheap listing command first to validate version handling before long runs."],"tags":["graalvm","benchmark","dacapo","version","mx"],"backgroundTag":null,"analyzedSha":"a66e9ccd1d7bf2552883939aa0788dfd0e294aab","analyzedAt":"2026-08-14T13:58:47.161Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}