)]}'
{
  "commit": "043859c1ccfe1095bdfa366139e259a4af0c9bb9",
  "tree": "ab23b39d18791bc1e8d1d464df2bb2570bb335b4",
  "parents": [
    "e80445814220f1e10292cfac7477586bcde6a61d"
  ],
  "author": {
    "name": "Dmitriy Dolovov",
    "email": "Dmitriy.Dolovov@jetbrains.com",
    "time": "Tue Mar 10 01:02:00 2026 +0100"
  },
  "committer": {
    "name": "Space Team",
    "email": "noreply@jetbrains.team",
    "time": "Tue Mar 10 21:44:36 2026 +0000"
  },
  "message": "[Native] Fail spawned Native compilation in case of diagnostic errors\n\nThis is a preparatory change for promoting the PL to always-on.\n\nNormally, the spawned compiler configuration is a copy of\nthe original configuration with some adjustments. And invalid values\npassed in CLI arguments should not affect the spawned compilation,\nbecause they should have already been checked in the main compilation.\n\nHowever, we have two tests that emulate running IC/cache building\nin the 2nd stage that is expected to fail:\n* CompilerOutputTest.testCacheBuildErrorMessage()\n* CompilerOutputTest.testIncrementalBuildErrorMessage()\n\nTo force the failure, we supply an invalid CLI argument via\n`-Xoverride-konan-properties\u003dadditionalCacheFlags\u003d\u003cCLI_FLAG\u003e`.\nAnd we expect that the flag parsing that will happen in the spawned\ncompilation will fail with the error. This is the cheapest and\nsimplest way to fail the compilation.\n\nHowever, we are going to switch from reporting CLI flag parsing\nerrors from writing them to MessageCollector to emitting the appropriate\ndiagnostics. And in order for these diagnostics to be printed and\nthe compilation to be aborted, we need to insert a check in\nthe spawned compilation to make sure there are no disgnostic errors.\n\n^KT-79663",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "6bab0d1a696920be9e0d874275bd77573db110cb",
      "old_mode": 33188,
      "old_path": "native/cli-native/src/org/jetbrains/kotlin/cli/bc/K2Native.kt",
      "new_id": "affddad592ee6422770bd55b8daecfa88741f464",
      "new_mode": 33188,
      "new_path": "native/cli-native/src/org/jetbrains/kotlin/cli/bc/K2Native.kt"
    }
  ]
}
