Disable build cache for Gradle/Maven and fix var-typed instrumentation#1970
Disable build cache for Gradle/Maven and fix var-typed instrumentation#1970HeshamHM28 wants to merge 1 commit intomainfrom
Conversation
…trumentation capture - Add --no-build-cache flag to all Gradle build commands to ensure fresh compilation - Add -Dmaven.build.cache.enabled=false to Maven validation skip flags - Fix Java instrumentation to use var-typed capture instead of Object for method chaining support - Update instrumentation tests to reflect new var-based capture pattern Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Claude finished @HeshamHM28's task in 4m 3s —— View job PR Review Summary
Prek Checks✅ Ruff (lint + format): passed Code Reviewgradle_strategy.py / maven_strategy.py — Build Cache DisablingChanges look correct. instrumentation.py — var-typed captureThe approach is sound: using Bug:
obj_var = f"_cf_obj{iter_id}_{call_counter}" # declared
obj_assign = f"{obj_var} = {var_name};" # assigned inside try
# pre_lines includes:
f"{line_indent_str}Object {obj_var} = null;", # Java: Object _cf_obj1_1 = null;
...
f"{line_indent_str} {obj_assign}", # Java: _cf_obj1_1 = _cf_result1_1;
The generated Java code will contain an unused variable ( Minor: test moved inside try block
Duplicate DetectionNo duplicates detected. The Test CoverageThe test update in |
Summary
--no-build-cacheto all Gradle commands to prevent stale cached artifacts from affecting optimization runs-Dmaven.build.cache.enabled=falseto Maven skip flags for the same reasonvar-typed capture instead ofObject, preserving return types for method chaining (builder pattern support)Test plan