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
Ankush Menat
7d4d6b59df
test: reduce noise in test output ( #28862 )
...
* chore: remove verbose output from test runner
This is same output that's shared by test runner in different format?
This makes it annoying to scroll through when just running single test
locally.
* fix: Remove clutter from test output
Test records don't change after first run.
Tests are executed many many times locally
* test: retry flaky postgres backup tests
2024-12-23 06:11:47 +00:00
David
1d31663f4b
fix(testing): clarify --pdb to --debug from a users perspective; also attach pdb on any exception
...
prior, the implementation attached to AssertionErrors
and the flag did not represent that this disables the buffer so that normal breakpoints work
2024-12-12 13:19:20 +01:00
David
aec58a9ad0
chore(ui-tests): raise click Exit exception
2024-11-29 13:39:03 +01:00
Akhil Narang
318a47219c
chore(ui-tests): don't print subprocess traceback
...
We have the cypress error from its output above, just a simple error message is enough here
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-11-29 18:03:18 +05:30
Akhil Narang
5e5a332cec
fix(new-site): mariadb_user_host_login_scope was broken since it was added
...
Mismerge in 0d3b2499fc
Thanks Revant for pointing it out
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-11-07 16:33:02 +05:30
David Arnold
61a107b6af
ci: make gh actions functions ( #28299 )
...
* ci: make gh actions downstream reusable
* refactor: merge ci helper into run-parallel-test command
* ci: refactor to sensible db password
2024-10-27 02:09:02 +00:00
David Arnold
2f9fd308e8
fix(testing): pdb post mortem ( #28156 )
2024-10-17 18:52:25 +00:00
David Arnold
9d63208c9c
fix: test record generation ( #28102 )
...
* chore: improve log record of testing command invokation
* chore(testing): narrower specificacion of the persistence log
* fix(testing): append raw record source data to globalTestRecords
2024-10-12 22:31:40 +02:00
David Arnold
5324431fc0
fix: Testing Module 28000 ( #28032 )
...
* fix: logging text
* fix: app handling
2024-10-08 10:14:19 +00:00
David Arnold
7e453ea515
Testing Module ( #28000 )
...
* refactor: add create_handler alongside create_logger
* fix: bench helper click exceptions for --help (2nd attempt)
* fix: increase logging level missing test records
* fix: reorganize test runner into testing module and refine logging
* fix: semgrep complaint
* chore: remove unused code; only keep deprecation proxies
* fix: import statements
* fix: output & string processing
2024-10-07 09:46:49 +02:00
David Arnold
fd65584c40
Test Runner 3 b (cleanup) ( #27999 )
...
* refactor: Move TestConfig.categories to TestRunner.categories
* fix: app addTest
* fix: run with app arg
* fix: refactor simplify
* fix: run_before_test_hooks signature
* fix: python test module discovery
* fix: app test execution in series
2024-10-06 16:55:41 +00:00