Conversation
WalkthroughThe install script's ERPNext application retrieval process was modified. The cloning source was changed from a dynamic repository path using the 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/helper/install.sh:
- Around line 51-52: The bench get-app invocation was changed to a hardcoded
fork/branch; revert it to use the parameterized variables so CI/env vars work.
Replace the hardcoded bench get-app line with the parameterized form that uses
$frappeuser (or FRAPPE_USER) and $erpnextbranch (or ERPNEXT_BRANCH) so ERPNext
is installed consistently like the other apps; update the bench get-app call
(the one currently calling "ruthra-kumar/erpnext" and branch
"move_commits_inside_test_guard_clause") to the original parameterized
invocation that references $frappeuser and $erpnextbranch.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 1e551e95-4582-4c49-8948-6b178caa92c3
📒 Files selected for processing (1)
.github/helper/install.sh
| # bench get-app "https://github.com/${frappeuser}/erpnext" --branch "$erpnextbranch" --resolve-deps | ||
| bench get-app "https://github.com/ruthra-kumar/erpnext" --branch "move_commits_inside_test_guard_clause" --resolve-deps |
There was a problem hiding this comment.
Debug code should not be merged: Hardcoded personal fork and test branch.
This change replaces the parameterized ERPNext source with a hardcoded personal fork (ruthra-kumar/erpnext) and a test-specific branch (move_commits_inside_test_guard_clause). This appears to be temporary test code that should not be committed to the develop branch:
-
Bypasses CI parameterization: The
$frappeuserand$erpnextbranchvariables (lines 14, 16) are now ignored for ERPNext, breaking theFRAPPE_USER/ERPNEXT_BRANCHenvironment variable support used byci.ymlandrun-individual-tests.yml. -
Creates inconsistency: Frappe (line 20), payments (line 50), and lending (line 53) still use parameterized URLs, while ERPNext now uses a hardcoded fork.
-
Branch name indicates test code: The branch name
move_commits_inside_test_guard_clausesuggests this is for testing specific changes, not a permanent CI configuration.
If you need to test against a fork temporarily, consider using the existing FRAPPE_USER mechanism or reverting before merge.
Suggested fix: Revert to parameterized command
-# bench get-app "https://github.com/${frappeuser}/erpnext" --branch "$erpnextbranch" --resolve-deps
-bench get-app "https://github.com/ruthra-kumar/erpnext" --branch "move_commits_inside_test_guard_clause" --resolve-deps
+bench get-app "https://github.com/${frappeuser}/erpnext" --branch "$erpnextbranch" --resolve-deps📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| # bench get-app "https://github.com/${frappeuser}/erpnext" --branch "$erpnextbranch" --resolve-deps | |
| bench get-app "https://github.com/ruthra-kumar/erpnext" --branch "move_commits_inside_test_guard_clause" --resolve-deps | |
| bench get-app "https://github.com/${frappeuser}/erpnext" --branch "$erpnextbranch" --resolve-deps |
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In @.github/helper/install.sh around lines 51 - 52, The bench get-app invocation
was changed to a hardcoded fork/branch; revert it to use the parameterized
variables so CI/env vars work. Replace the hardcoded bench get-app line with the
parameterized form that uses $frappeuser (or FRAPPE_USER) and $erpnextbranch (or
ERPNEXT_BRANCH) so ERPNext is installed consistently like the other apps; update
the bench get-app call (the one currently calling "ruthra-kumar/erpnext" and
branch "move_commits_inside_test_guard_clause") to the original parameterized
invocation that references $frappeuser and $erpnextbranch.
Summary by CodeRabbit