Skip to content

Optimize CI Setup and Workflow#216

Open
Sendipad wants to merge 4 commits into
developfrom
optimize-ci-setup-8369750222823590959
Open

Optimize CI Setup and Workflow#216
Sendipad wants to merge 4 commits into
developfrom
optimize-ci-setup-8369750222823590959

Conversation

@Sendipad

Copy link
Copy Markdown
Owner

This PR optimizes the GitHub Actions CI workflow by introducing a dedicated setup script and removing extraneous dependencies.

Key improvements:

  • Faster CI: By stripping out ERPNext and other large apps, we significantly reduce the time spent on bench get-app and bench setup requirements.
  • Better Reliability: Manual database and user creation via MariaDB CLI avoids common permission issues often encountered with bench new-site in CI environments.
  • Maintainability: The core setup logic is now encapsulated in a shell script, making the workflow YAML cleaner and the setup easier to test locally.
  • Resource Efficiency: Disabling background workers (watch, schedule, etc.) and removing wkhtmltopdf reduces the CI footprint.

PR created automatically by Jules for task 8369750222823590959 started by @Sendipad

- Consolidate Frappe and FlexiRule installation logic into `.github/helper/tests_setup.sh`.
- Remove unnecessary app dependencies (ERPNext, Payments, Lending, HRMS) to improve CI performance.
- Implement manual MariaDB setup and dynamic `site_config.json` generation for better reliability in headless environments.
- Disable background workers in `Procfile` during test setup.
- Update `ci.yml` to utilize the new optimized setup script.
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Sendipad added 3 commits June 19, 2026 01:28
- Add `--db-root-password root` to `bench reinstall` to prevent interactive prompt in CI.
- Add `--admin-password admin` to `bench reinstall` to prevent interactive prompt in CI.
- Add retries for `git clone` of Frappe to handle network timeouts.
- Remove redundant `redis-server` installation to avoid CI service conflicts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant