2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-10 09:02:10 +00:00
Commit Graph

2533 Commits

Author SHA1 Message Date
Revant Nandgaonkar
00391bfeb9 feat: pass verbose to npm install 2023-09-14 04:35:30 +05:30
Revant Nandgaonkar
346d08d30f feat: pass verbose to yarn install 2023-09-14 04:29:58 +05:30
Ankush Menat
dcae3e35cf
Merge pull request #1485 from ankush/localhost
refactor: use 127.0.0.1 instead of localhost
2023-09-13 15:58:45 +05:30
Ankush Menat
672eca10a7 test: fix expected failing tests 2023-09-13 15:44:17 +05:30
David Arnold
697939e205 fix: nodejs redis v4 interprets localhost as ipv6 address
But the redis only binds to 127.0.0.1, not ::1.

Avoid this problem by being explicit.
2023-09-13 15:43:06 +05:30
Revant Nandgaonkar
8ba685cc50 feat: allow custom image in easy install 2023-09-12 14:27:24 +05:30
semantic-release-bot
acbceb8f96 chore(release): Bumped to Version 5.17.2
## [5.17.2](https://github.com/frappe/bench/compare/v5.17.1...v5.17.2) (2023-09-06)

### Bug Fixes

* sync socketio port for old benches ([#1481](https://github.com/frappe/bench/issues/1481)) ([c2af169](c2af169dd6))
2023-09-06 06:33:45 +00:00
Ankush Menat
56d78415e2 Merge branch 'staging' into v5.x 2023-09-06 12:02:44 +05:30
Ankush Menat
cf253fff84 Merge branch 'develop' into staging 2023-09-06 12:02:27 +05:30
Ankush Menat
c2af169dd6
fix: sync socketio port for old benches (#1481) 2023-09-06 09:46:01 +05:30
semantic-release-bot
8ad9d19a56 chore(release): Bumped to Version 5.17.1
## [5.17.1](https://github.com/frappe/bench/compare/v5.17.0...v5.17.1) (2023-08-29)

### Bug Fixes

* port number mismatch when having multiple benches ([#1480](https://github.com/frappe/bench/issues/1480)) ([3c8cbbc](3c8cbbc023))
2023-08-29 09:11:04 +00:00
Ankush Menat
9c41260ba1 Merge branch 'staging' into v5.x 2023-08-29 14:40:06 +05:30
Ankush Menat
9dad3024f5 Merge branch 'develop' into staging 2023-08-29 14:39:25 +05:30
Ankush Menat
3c8cbbc023
fix: port number mismatch when having multiple benches (#1480) 2023-08-29 14:38:29 +05:30
semantic-release-bot
62d040a9f6 chore(release): Bumped to Version 5.17.0
# [5.17.0](https://github.com/frappe/bench/compare/v5.16.4...v5.17.0) (2023-08-08)

### Features

* Multi queue consumption ([#1475](https://github.com/frappe/bench/issues/1475)) ([5a2c052](5a2c052b9b))
2023-08-08 16:40:07 +00:00
Ankush Menat
ffabe3a6e1 Merge branch 'staging' into v5.x 2023-08-08 22:08:50 +05:30
Ankush Menat
ffe969bdc3 Merge branch 'develop' into staging 2023-08-08 22:08:01 +05:30
Ankush Menat
5a2c052b9b
feat: Multi queue consumption (#1475)
Ref: https://frappe.io/blog/engineering/reducing-memory-footprint-of-frappe-framework
2023-08-07 14:28:02 +05:30
Ankush Menat
87efb75a08
refactor!: Reuse redis_cache instace for socketio (#1382)
WARNING: Just a POC. You're free to modify your setup to test this out.

Summary:
- After this change bench wont generate config for redis_socketio
  instance.
- Instead we set the same port as redis_cache service for use in
  socketio. i.e. both will share same instance.

Code changes:

- Config will have this difference:

```diff
- "redis_socketio": "redis://localhost:12000",
- "redis_cache": "redis://localhost:13000",
+ "redis_socketio": "redis://localhost:13000",
+ "redis_cache": "redis://localhost:13000",
```

- supervisord/systemd wont start redis_socketio service
- for development setups: redis_socketio service is removed from procfile.

Why?

- Currently this redis instance is used only to ship messages from python
to nodejs server... which is largely stateless (only pub/sub channels)
- This change reduces 1 running process. Less resources for this ~= more
  resources for other running things.

TODO:
- [ ] decicisions - should we even do this? this should be optinal?
- [ ] refactor progressbar in frappe
- [ ] Tests - manual, FC, docker, automated
- [ ] "migration" plan

All dependent deployment projects will likely have to refactor their code to drop this service, shouldn't be too much work.
Example: Frappe cloud, Frappe Docker.
2023-08-07 12:55:19 +05:30
Ankush Menat
77ebdbe6f9
ci: fix test versions (#1474) 2023-08-07 12:27:02 +05:30
semantic-release-bot
b09a96d13d chore(release): Bumped to Version 5.16.4
## [5.16.4](https://github.com/frappe/bench/compare/v5.16.3...v5.16.4) (2023-07-12)

### Bug Fixes

* don't compile python files manually. ([#1469](https://github.com/frappe/bench/issues/1469)) ([036cb62](036cb6291e))
2023-07-12 15:53:27 +00:00
Ankush Menat
12ebc2e300 Merge branch 'staging' into v5.x 2023-07-12 21:22:20 +05:30
Ankush Menat
0e8e5ba18c Merge branch 'develop' into staging 2023-07-12 21:22:06 +05:30
Ankush Menat
036cb6291e
fix: don't compile python files manually. (#1469) 2023-07-04 19:52:05 +05:30
semantic-release-bot
ed4b51b896 chore(release): Bumped to Version 5.16.3
## [5.16.3](https://github.com/frappe/bench/compare/v5.16.2...v5.16.3) (2023-06-09)

### Bug Fixes

* add customer background workers in group ([#1439](https://github.com/frappe/bench/issues/1439)) ([4ec73c3](4ec73c3b92))
* Archive app for different repo/app names ([3af6058](3af6058d1b))
* easy-install for letsencrypt tls ([#1424](https://github.com/frappe/bench/issues/1424)) ([eba0f7a](eba0f7a54f))
* Hide irrelevant stacks during exc raise ([8175239](8175239434))
* Print failing command with CommandFailedError ([a1d2c52](a1d2c5226b))
* Remove except-pass ValueError ([d9c8335](d9c8335fbf))
* resolve filesystem app dependencies ([#1450](https://github.com/frappe/bench/issues/1450)) ([f3b55f7](f3b55f7785))
* Revert usage of app_name for repo name ([f7fbee9](f7fbee99d6))
* Setup exception handler for CommandFailedError only ([94a1b8c](94a1b8c3fb))
* Use == for dict comparison ([e80daf8](e80daf8c3e))
* Use App.app_name over repo attr ([4f42392](4f423923b4))

### Reverts

* Revert "fix: resolve filesystem app dependencies (#1450)" (#1452) ([082692c](082692cae2)), closes [#1450](https://github.com/frappe/bench/issues/1450) [#1452](https://github.com/frappe/bench/issues/1452)
2023-06-09 11:55:59 +00:00
Gavin D'souza
93eedbd876
Merge branch 'staging' into v5.x 2023-06-09 17:24:52 +05:30
Gavin D'souza
0e7a94d411
Merge branch 'develop' into staging 2023-06-09 17:22:23 +05:30
Ritwik Puri
480e35c1c7
Merge pull request #1446 from gavindsouza/app_name-repo
fix: Handle apps with different repo & app names
2023-06-02 13:49:20 +05:30
Gavin D'souza
d9c8335fbf
fix: Remove except-pass ValueError 2023-06-02 12:41:56 +05:30
Gavin D'souza
f7fbee99d6
fix: Revert usage of app_name for repo name 2023-05-31 14:00:24 +05:30
Gavin D'souza
e80daf8c3e
fix: Use == for dict comparison 2023-05-31 14:00:24 +05:30
Gavin D'souza
4f423923b4
fix: Use App.app_name over repo attr 2023-05-31 14:00:24 +05:30
Gavin D'souza
3af6058d1b
fix: Archive app for different repo/app names 2023-05-31 14:00:24 +05:30
Ritwik Puri
3e448d4d42
Merge pull request #1455 from gavindsouza/cleaner-cli
fix(cli): Show relevant details on CommandFailedError
2023-05-30 12:13:54 +05:30
Gavin D'souza
94a1b8c3fb
fix: Setup exception handler for CommandFailedError only
* Match only certain module lib paths
2023-05-26 11:25:28 +05:30
Gavin D'souza
8175239434
fix: Hide irrelevant stacks during exc raise 2023-05-26 11:25:06 +05:30
Gavin D'souza
a1d2c5226b
fix: Print failing command with CommandFailedError
I've seen way too many issues being faced / misunderstandings due to the
lack of "cmd"
2023-05-26 11:25:02 +05:30
Ankush Menat
082692cae2
Revert "fix: resolve filesystem app dependencies (#1450)" (#1452)
This reverts commit f3b55f7785.
2023-05-09 21:31:33 +05:30
Alok Singh
f3b55f7785
fix: resolve filesystem app dependencies (#1450)
* fix: resolve private app dependencies

* fix: removed additional check and moved self.on_disk to previous check.
2023-05-04 17:28:34 +05:30
Sagar Vora
934b2677c8
chore: fix typo (#1448) 2023-05-03 13:52:01 +05:30
Ankush Menat
fd6dfc3ae7
ci: run easy install test with lower python version (#1442) 2023-03-01 10:36:50 +05:30
Ankush Menat
f7a0d28174 chore: remove unsupported annotations
closes https://github.com/frappe/bench/issues/1441
2023-03-01 10:26:54 +05:30
Ankush Menat
9fb55e6dca chore: remove unsupported annotations
these annotations dont work on python <3.9

closes https://github.com/frappe/bench/issues/1440
2023-02-28 10:25:08 +05:30
Saif Ur Rehman
4ec73c3b92
fix: add customer background workers in group (#1439) 2023-02-27 14:16:51 +05:30
Revant Nandgaonkar
eba0f7a54f
fix: easy-install for letsencrypt tls (#1424)
* fix: easy-install for letsencrypt tls

* ci: change site for easy-install test

* ci: set host header for easy-install ping test
2023-02-27 10:58:33 +05:30
semantic-release-bot
e0f8169e31 chore(release): Bumped to Version 5.16.2
## [5.16.2](https://github.com/frappe/bench/compare/v5.16.1...v5.16.2) (2023-02-24)

### Bug Fixes

* Handle supervisor escalation better ([#1438](https://github.com/frappe/bench/issues/1438)) ([c690e8e](c690e8e7f5))
* trigger release ([f374e80](f374e80bcc))
2023-02-24 09:59:30 +00:00
Ankush Menat
f374e80bcc fix: trigger release 2023-02-24 15:28:14 +05:30
Ankush Menat
a369bb7f0c Merge branch 'staging' into v5.x 2023-02-24 15:14:49 +05:30
Ankush Menat
a5d8169b61 Merge branch 'develop' into staging 2023-02-24 15:14:34 +05:30
gavin
c690e8e7f5
fix: Handle supervisor escalation better (#1438)
* fix: Give more meaningful context in subproc failures

* fix: Handle supervisor escalation if no exc is raised

* fix: only apply sudo if not already running as sudo
2023-02-24 15:13:36 +05:30