Commit graph

25 commits

Author SHA1 Message Date
Ankush Menat
14daf5860e
test: flaky RQ / Gunicorn tests (#37815)
2% is too low and causes flaky tests sometimes.
2026-03-06 06:21:11 +00:00
Ankush Menat
ff3580bfd6
test: Skip gunicorn flaky tests (#37519)
Leaving just one of them (gthread).

Most failures seem to be from flaky cleanup between tests.
2026-02-25 08:52:27 +00:00
Faris Ansari
4b1f55d306
feat: improve bench execute argument passing (#35964)
* fix: better way to pass arguments to bench execute

* refactor: move execute logic in separate file

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2026-02-09 06:22:05 +00:00
Ankush Menat
735ea6fa0a
test: avoid flake from orphan gunicorn workers (#35798)
`kill` only kills arbiter, not workers.

pgrep and kill all gunicorn processes.
2026-01-09 17:09:17 +05:30
Saqib Ansari
de9c274f39 fix: flaky gunicorn test 2026-01-05 17:01:47 +05:30
Ankush Menat
02ecb10205
fix!: Remove badly written default portal list views (#35182)
* fix!: Remove badly written default portal list views

* fix!: Remove guest permissions from web form list endpoint

* test: cleanly terminate gunicorn

int sometimes ends up leaving socket open
2025-12-14 07:11:45 +00:00
Sagar Vora
9623b6f4cf test: increase threshold for idle CPU usage to reduce flakiness 2025-12-01 19:05:42 +05:30
Aarol D'Souza
ef5d2213e0
test(postgres): enable test_restore for postgres (#34768) 2025-11-24 11:23:24 +05:30
Aarol D'Souza
c57444bc84
fix(postgres): fix query for pg compatibility in clear_log_table (#34706) 2025-11-24 11:22:21 +05:30
AarDG10
b8793fac5b test(postgres): enable test_force_install_app for postgres 2025-11-09 18:46:18 +05:30
AarDG10
103841bd0c test(postgres): enable test_bench_drop_site_should_archive_site for postgres 2025-11-09 18:30:49 +05:30
AarDG10
2feb536ec9 test(postgres): add pg-compatible query for test_db_cli_with_sql 2025-11-08 11:46:57 +05:30
AarDG10
a9c17f0e84 test(postgres): add delay in test_backup_no_options to avoid same-second timestamp collision 2025-11-07 15:08:08 +05:30
AarDG10
e1b1426147 test(postgres): enable test_backup_no_options for postgres 2025-11-06 19:37:40 +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
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
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
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
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
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
Renamed from frappe/tests/test_commands.py (Browse further)