Commit graph

712 commits

Author SHA1 Message Date
Samar Singh
39b14f3a67
feat: configurable esbuild build target (#34398) 2025-10-17 00:55:21 +00:00
Akhil Narang
871ae70172
Merge pull request #34263 from akhilnarang/fix-encrypted-restore-relative-path
fix: move backup file locating logic to `_restore()`
2025-10-16 16:27:35 +05:30
Akhil Narang
7e61d71817
fix: move backup file locating logic to _restore()
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-10-04 16:51:55 +05:30
Ejaaz Khan
5f99434f52 fix: import function/module inside inside fucntion 2025-09-29 23:09:25 +05:30
Ejaaz Khan
964dd6c034 feat: Chrome PDF generator
Co-authored-by: maharshivpatel <maharshivpatel@users.noreply.github.com>
2025-09-29 12:15:51 +05:30
Akhil Narang
898742cdb6
chore: manual fixups
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-09-26 13:22:29 +05:30
Akhil Narang
6ca4d4d167
refactor(treewide): ruff format
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-09-26 13:16:43 +05:30
Abhishek kumar
76517d101c
feat: add --skip-fixtures option to bench migrate command (#33754) 2025-08-22 16:51:17 +05:30
Akhil Narang
d5fcdff679
Merge pull request #33621 from akhilnarang/change-get-version-output
chore(commands/version)!: use `plain` output instead of `legacy` by default
2025-08-13 12:50:28 +05:30
Akhil Narang
c22ff226aa
fix(restore): check for AES instead of cipher to detect encrypted backup
Seems more consistent, have seen the following outputs with `file`:

- GPG symmetrically encrypted data (AES256 cipher)
- PGP symmetric key encrypted data - AES with 256-bit key salted & iterated - SHA512 .

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-08-13 12:04:14 +05:30
Akhil Narang
b40c1d292b
chore(commands/version)!: use plain output instead of legacy by default
This includes the commit hash in the output, which is useful

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-08-12 14:57:14 +05:30
ruthra kumar
df2ab80f82
Merge pull request #33003 from ruthra-kumar/lightmode_on_parallel_test_runner
refactor: introduce lightmode in parallel test runner
2025-06-23 16:05:57 +05:30
ruthra kumar
a134b83eb8 refactor: toggle test flag in lightmode 2025-06-20 15:11:16 +05:30
ruthra kumar
ee864dac12 refactor: introduce lightmode in parallel test runner 2025-06-19 11:40:09 +05:30
Sagar Vora
cb0d06455b chore: use frappe._dev_server instead of local.dev_server 2025-06-17 12:03:08 +05:30
ruthra kumar
7b811d0490 refactor: return code for light test runner 2025-06-05 20:10:24 +05:30
ruthra kumar
ccfb5a01eb
Merge pull request #32726 from ruthra-kumar/lightweight_test_runner
feat: Lightweight test runner
2025-06-05 11:34:29 +05:30
ruthra kumar
31c4bbec73 refactor: move imports to defer memory usage 2025-06-05 09:23:03 +05:30
ruthra kumar
0c6c6f50c4 refactor: support failfast and minor changes 2025-06-05 09:23:03 +05:30
ruthra kumar
0a02603cfe refactor: rename parameter and move code to function 2025-06-05 09:23:03 +05:30
ruthra kumar
4640a78587 refactor: move loader to new fiel
- barebones TestResult class
 - removed debugging statements
2025-06-05 09:23:03 +05:30
ruthra kumar
c659f9021a refactor: cleaner code with debugging statements 2025-06-05 09:23:03 +05:30
ruthra kumar
7e6b8fbf1c refactor: better code readibility 2025-06-05 09:23:03 +05:30
ruthra kumar
fcaf173923 refactor: new lightweight test runner 2025-06-05 09:23:03 +05:30
Kit Rhodes
30c5376653
docs: Correct spelling of 'specified' in frappe/commands/utils.py (#32790) 2025-06-05 02:53:01 +00:00
gavin
792f1c237f
Merge pull request #32167 from gavindsouza/bp-pr-32074
perf(events): get_events performance & Google Calendar Integration fixes
2025-04-16 13:33:33 +02:00
Gavin D'souza
551be4f6ab
fix: Clear site test records log before running test
Not sure if this was intentional - there is no documentation as far as i
can tell
2025-04-15 18:28:21 +02:00
Akhil Narang
05fca5b16b
chore: skip a few tests for sqlite
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:17 +05:30
Akhil Narang
5d566d03a0
fix(tests): use correct quit command for sqlite console
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:17 +05:30
Akhil Narang
d9384366ef
fix: disable partial restore for sqlite
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:16 +05:30
Akhil Narang
ad32216040
fix: support sqlite
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:16 +05:30
Akhil Narang
0b5e245507
feat: init sqlite
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:16 +05:30
Ankush Menat
a6edcface5 test: update constant for bundle and memory usage
Over time code size has grown without any major regressions, so just
accomodating them here.
2025-04-11 13:40:42 +05:30
Ankush Menat
5a5ad3032c
fix: procline crash (#31845)
* fix: Skip rollback if no DB

* fix: drop proctitle from dependency

- While it improves our own processes, it makes gunicorn process titles worse
- It also crashes on mac because of some unknown reason related to fork-safety.

Best to not use this.
2025-03-21 12:30:19 +05:30
Ankush Menat
8baeb5151d
fix: check for running jobs before migrating (#31438) 2025-02-26 09:30:38 +00:00
Ankush Menat
573028ad3f
fix: always persist all indexes added via db.add_index (#31177)
* fix: always persist all indexes added via db.add_index

* fix: Add `if not exists` clause for index creation

This allows replica to have same index and master to add it later
without causing SQL error. Just minor DX benefit.

* fix(postgres): don't cache if table doesn't exist

* chore: revert postgres changes

Hopeless to maintain this
2025-02-25 07:25:49 +00:00
Ankush Menat
429dab759d
perf: Skip loading EPS if not enabled (#31099)
It's disabled by default 🤷
2025-02-04 07:28:29 +00:00
Ankush Menat
551107bdcf
test: ensure utilization of idle threads is <5% (#31092)
All of following should have <2% utilization when idle:
- Redis invalidator thread
- Gunicorn workers and master
- RQ worker and horses
2025-02-04 05:57:38 +00:00
Akhil Narang
a9c1c49fff
refactor: use an alternate key for handling expiry
This allows for less changes to update() + allows impersonated sessions to not end later

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-01-24 18:27:44 +05:30
Akhil Narang
15065a93e3
refactor: don't use impersonate directly, use similar logic
This will allow impersonating as well

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-01-24 17:20:12 +05:30
Akhil Narang
1dc767f671
feat(browse): allow passing a user for impersonated_by
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-01-24 17:20:12 +05:30
Akhil Narang
a121b90d7f
feat: allow created a session for a fixed duration via bench browse
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-01-24 17:20:12 +05:30
Maharshi Patel
6a861fc3c8
chore: added ipv6 to hosts file (#29199)
macos takes 5-10 second on dns when *.local is used unless ipv6 is added to hosts file.

source: https://stackoverflow.com/questions/10064581/how-can-i-eliminate-slow-resolving-loading-of-localhost-virtualhost-a-2-3-secon/17982964#17982964

Adding this even though it's edge case because i spent few days debugging something else to make it faster.

Co-authored-by: Maharshi Patel <maharshipatel@Maharshis-MacBook-Pro.local>
2025-01-16 19:23:32 +05:30
Ankush Menat
14e46495c0
test: use environment's python (#29137)
This test is only passing because ci is sourcing env, it won't work IRL
like this.
2025-01-14 06:21:44 +00:00
Ankush Menat
2214116318 test: sanity tests for gunicorn workers 2025-01-13 19:55:30 +05:30
Akhil Narang
ef341933e4
fix(make-app): don't allow creating an app with the same name as a site
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-01-10 12:02:40 +05:30
Akhil Narang
2610b8435c
fix(new-site): don't allow creating a site with the same name as an app
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-01-10 11:25:13 +05:30
Ankush Menat
6b0d13a5bf test: avoid rebuilding assets 2025-01-04 12:14:55 +05:30
Ankush Menat
13304cd36d ci: balance test distribution manually
Currently one test runner takes significantly longer than another. This
is entirely due to test_commands.py which needs to create new site and
do backup/restore tests etc. All of which are far far slower than other
tests.
2025-01-04 10:55:53 +05:30
Ankush Menat
41d4155bba perf: Use system settings directly for fetching language 2024-12-26 11:52:44 +05:30