Commit graph

474 commits

Author SHA1 Message Date
Ankush Menat
6b0d13a5bf test: avoid rebuilding assets 2025-01-04 12:14:55 +05:30
Ankush Menat
19bbc24d43
chore: bump stale time (#28973)
[skip ci]
2024-12-31 15:08:13 +05:30
Ankush Menat
bbf9e7f7ff
ci: make things parallel, drop unnecessary things (#28923)
Using parallel tests is pointless if you spend 2.5 minute setting up and
3 minutes running tests

https://en.wikipedia.org/wiki/Amdahl%27s_law
2024-12-27 09:52:26 +00:00
Ankush Menat
8511bc902b
Revert "chore: exempt draft prs from stale bot" (#28924) 2024-12-26 14:18:42 +00:00
Ankush Menat
004990e53e
perf: Make frappe._dict great again (#28824)
* perf: Restore dict's flat overrides

Using `super()` is unnecessary cost. This class is used A LOT. Ref: https://github.com/frappe/frappe/pull/16449/

Please consider performance while adding types, it's almost always possible to achieve good typing without this.

Also `frappe._dict` is almost always used as `dict[Any, Any]` or
`dict[str, Any]`, type annotations are useless here.

* ci: ugh wait for processes to exit
2024-12-18 16:36:31 +05:30
Sumit Bhanushali
051cedb860
chore: update readme (#28819) 2024-12-17 18:35:10 +00:00
Akhil Narang
c0d0a137ec
fix(ci): drop ubuntu version check for wkhtmltopdf
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-12-16 16:10:56 +05:30
Akhil Narang
fadbddff2e
refactor(ci): don't fetch actions from develop
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-12-16 16:10:46 +05:30
Ankush Menat
f5b22ee2f4 ci: Dont specify client version
Clients work on mysql protocol ABI which works for huge ranges of
servers.
2024-12-16 13:22:30 +05:30
David Arnold
8c7f3fac6c
ci: fix type check for manual trigger 2 (#28702) 2024-12-08 00:36:14 +00:00
David Arnold
0fbac0927b
ci: fix type check for manual trigger (#28701) 2024-12-08 01:15:47 +01:00
David Arnold
6e02bfedcd
fix: add backward compatibility for 5 item filter (#28678) 2024-12-05 09:10:45 +00:00
Akhil Narang
a390992408
chore: python3.13 support (#28624)
* chore: python3.13 support

Signed-off-by: Akhil Narang <me@akhilnarang.dev>

* chore: bump pydantic

```
  error: the configured Python interpreter version (3.13) is newer than PyO3's maximum supported version (3.12)
        = help: please check if an updated version of PyO3 is available. Current version: 0.21.2
        = help: set PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1 to suppress this check and build anyway using the stable ABI
```

Signed-off-by: Akhil Narang <me@akhilnarang.dev>

* chore: bump uuid-utils

https://katb.in/ahaqabugefo

Signed-off-by: Akhil Narang <me@akhilnarang.dev>

* chore: bump RestrictedPython

7.4 has support for py3.13
https://restrictedpython.readthedocs.io/en/latest/changes.html#id1

Signed-off-by: Akhil Narang <me@akhilnarang.dev>

* fix(deprecation_dumpster): import functools uncondtionally

Used here: 60f0b1d5c7/frappe/deprecation_dumpster.py (L177C10-L177C19)

Signed-off-by: Akhil Narang <me@akhilnarang.dev>

* chore(docref): improve error message

* fix: error on unability to hash; TypeError expected

* fix: migrate from 3.10 onwards

---------

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
Co-authored-by: David <dgx.arnold@gmail.com>
2024-12-04 15:35:06 +00:00
David Arnold
7748910ddc
ci: chore revert using forked bench (#28584)
* ci: chore revert using branched bench

merge after is released: https://github.com/frappe/bench/pull/1600

* ci: name downstream job
2024-11-28 09:32:12 +01:00
David Arnold
79ebc52b4a
ci: fix redirect (#28606) 2024-11-28 00:16:44 +00:00
David Arnold
0aa089b9f0
ci: remove obsolete helpers & fix coverage config setup (#28603)
* ci: remove obsolete helpers

* ci: fix coverage
2024-11-28 00:00:21 +00:00
David Arnold
762a8130e2
ci: finish off introduction of #28604 (#28605)
* ci: finish off introduction of #28604

* ci: add tmate session debug to ui tests
2024-11-27 21:43:24 +01:00
David Arnold
9ed08706a2
ci: make db-migration arifact part of the workflow inputs (#28604)
* ci: make db-migration arifact part of the workflow inputs

* ci: chore cleanup

* ci: introduce
2024-11-27 21:18:20 +01:00
David Arnold
d532ee95c1
ci: leanly invocate bench modules requiring less upstream refactor (#28600) 2024-11-27 15:26:44 +00:00
David Arnold
f2fd26a660
ci: revert erroneous, auto-merge mediated, commit and fix ui test trigger (#28599)
* ci: fix ui test trigger (inverted copy paste error)

* ci: revert erroneous, auto-merge mediated, commit
2024-11-27 15:18:20 +01:00
David Arnold
a4014ab1c4
fix(json-serialization): prioritize explicit __json__ before iterable (#28597) 2024-11-27 13:11:53 +00:00
David Arnold
11e7b993c3
Revert "ci: temporarily redirect" (#28590)
This reverts commit 31b34b654542a243480e10f4a3db883d750057d2.
2024-11-27 00:13:44 +00:00
David Arnold
92fb8e5c04
ci: fix migration base workflow when used downstream git ref (#28589)
* ci: fix migration base workflow when used downstream git ref

* ci: temporarily redirect
2024-11-27 00:28:15 +01:00
David Arnold
306c935fba
ci: fix migration base workflow when used downstream (#28588) 2024-11-26 22:28:55 +00:00
David Arnold
be4a561c92
ci: add a flexible migration pre-step to perpare the environment (#28587) 2024-11-26 21:02:46 +00:00
David Arnold
7d96f26b95
ci: fix some apps path oversights (#28585) 2024-11-26 19:16:10 +00:00
David Arnold
894c7d871c
ci: prepare shared action for concrete downstream use (#28572)
* ci: cleanup setup action

* ci: make migration & setup downstream-ready

* ci: replace obscure bench remove-app with an equivalent rm -rf
2024-11-26 17:11:08 +00:00
David Arnold
75ed8a8503
ci: small speed up (#28569)
* ci: small speedup

* chore: small fixes
2024-11-25 19:10:34 +01:00
David Arnold
c895d828b4
Revert "ci: temporarily redirect to fixed base workflows" (#28567)
This reverts commit 5cc6b3c89d4b8290bd0bef9b5f292a43fafa17c2.
2024-11-25 16:59:05 +00:00
David Arnold
08ef9df94c
ci: fixup bis (#28566) (#28568)
* ci: ensure new success checks fail when they should
2024-11-25 17:43:50 +01:00
David Arnold
4c5ecfa9e2
ci: fixup (#28566)
* ci: fixup

* ci: temporarily redirect to fixed base workflows

the purpose of this is to pass checks and get this fixed base workflows into develop asap
2024-11-25 14:34:05 +00:00
David Arnold
9cab72843f
ci: add unified success actions for checks (#28563) [follow up] (#28564) 2024-11-25 14:47:21 +01:00
David Arnold
7e6380ddc8
ci: add unified success actions for checks (#28563) 2024-11-25 12:48:36 +00:00
Akhil Narang
bb173b189b
Merge pull request #28522 from blaggacao/ci/join-precommit-linters
ci: join pre-commit with linters
2024-11-25 17:45:48 +05:30
David Arnold
120566c0a0
chore: organize gh workflow names (#28562) 2024-11-25 13:10:02 +01:00
David
8dd2d2b859
ci: join server test and downstream test dispatch 2024-11-25 12:50:46 +01:00
David
54c9ee29c3
ci: join server test and migration test 2024-11-25 12:50:46 +01:00
David
8ee2fdc6e4
ci: use reusable workflow for server tests 2024-11-25 12:50:45 +01:00
David Arnold
1467a7f896
ci: polish reusable workflows (#28521) 2024-11-19 21:50:32 +00:00
David
b830482c13
ci: join pre-commit with linters 2024-11-19 22:38:06 +01:00
dependabot[bot]
2d7b636c83
chore(deps): bump codecov/codecov-action from 4 to 5
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4 to 5.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-18 18:35:00 +00:00
David Arnold
8051652c19
ci: smooth transition when adding mypy support for old PRs (#28442) 2024-11-12 14:35:03 +00:00
dependabot[bot]
e0a84e0f18
build(deps): bump actions/setup-python from 4 to 5 (#28319)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-29 12:42:00 +01:00
dependabot[bot]
a3f43cebd1
build(deps): bump actions/checkout from 3 to 4 (#28318)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-29 12:41:40 +01:00
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
46a0814287
chore: start with type checking (#28190) 2024-10-24 21:56:25 +00:00
David Arnold
52e50ae389
ci: trigger ci runs from upstream fix (#28273) 2024-10-24 11:42:18 +00:00
David Arnold
5fb77b39e5
ci: add action to trigger downstream ci runs (#28272) 2024-10-24 11:24:23 +00:00
David Arnold
93d25424b8
build: pin node version to release-tested version 20 (#28201) 2024-10-20 18:24:39 +00:00
David Arnold
98301e7513
ci: run each test individually (fix fix) (#28109) 2024-10-13 02:42:41 +00:00