The GitHub Actions job "Required Checks" on texera.git/gh-readonly-queue/main/pr-9314-e9e5fda4bbd010ce4f096d806a082f2eebaafed8 has failed. Run started by GitHub user kunwp1 (triggered by kunwp1).
Head commit for run: 4e144048dab8de241eaf6ce63f1a2d61b77c558b / carloea2 <[email protected]> fix(frontend): avoid R UI parameter binding collisions (#9314) ### What changes were proposed in this PR? Reserve script-level R assignments and `for` iterators when generating a UI parameter variable. Braces do not create an R scope, and loops inside calls also bind their iterator in the script environment. These bindings now reserve their names regardless of nesting, so insertion chooses `count_2` or the next available suffix. Skip function bodies and keep named call arguments separate. Only `=` retains the argument-depth check; `<-`, `<<-`, `->`, `->>` and loop iterators are recognized inside blocks and calls. Original R SDK reproduction: | Value | Before | After | | --- | --- | --- | | Supplied UI parameter | 42 | 42 | | Generated parameter variable after the existing loop | 3 | 42 | | Existing loop iterator | 3 | 3 | ### Any related issues, documentation, discussions? Closes #9313. Follow-up to #9279. The companion runtime PR Texera/texera-rudf#2 has merged. ### How was this PR tested? Retested on freshly fetched upstream main `1ec692c5da`. The ten added binding regressions fail before the review correction and pass afterward. All 67 R parser tests pass, including controls for function-local bindings and named call arguments. >From `frontend`: ```text node --max-old-space-size=4096 node_modules/@angular/cli/bin/ng.js test --watch=false --progress=false --include=src/app/workspace/service/code-editor/r-ui-udf-parameters-parser.spec.ts 67 passed node --max-old-space-size=4096 node_modules/@angular/cli/bin/ng.js test --watch=false --progress=false --coverage --coverage-reporters=lcovonly 7200 passed, 1 skipped across 253 files corepack yarn format:fix corepack yarn format:ci ``` Repository formatting, ESLint and `git diff --check` passed. The earlier native R 4.5.3 SDK reproduction of the original loop collision remains unchanged; this follow-up verified the new binding cases through the production frontend parser. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Codex (GPT-6) Report URL: https://github.com/apache/texera/actions/runs/42917235688 With regards, GitHub Actions via GitBox
