Commit graph

338 commits

Author SHA1 Message Date
Raffael Meyer
d8101cdf69
ci: print any vulnerabilities found (#20044)
[skip ci]
2023-02-15 11:41:50 +05:30
Ankush Menat
29be4a544e
ci: broken patch tests (#20010)
* Revert "chore: hard pin patch python versions"

This reverts commit aae3bac0b1.

* Revert "chore(deps): bump gabrielfalcao/pyenv-action from 10 to 13 (#19940)"

This reverts commit c525268084.
2023-02-13 16:17:18 +05:30
Ankush Menat
aae3bac0b1 chore: hard pin patch python versions
[skip ci]
2023-02-13 11:34:20 +05:30
dependabot[bot]
c525268084
chore(deps): bump gabrielfalcao/pyenv-action from 10 to 13 (#19940)
Bumps [gabrielfalcao/pyenv-action](https://github.com/gabrielfalcao/pyenv-action) from 10 to 13.
- [Release notes](https://github.com/gabrielfalcao/pyenv-action/releases)
- [Commits](https://github.com/gabrielfalcao/pyenv-action/compare/v10...v13)

---
updated-dependencies:
- dependency-name: gabrielfalcao/pyenv-action
  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>

[skip ci]
2023-02-10 19:52:47 +05:30
Ankush Menat
c0fab395a7 ci(vuln check): skip dropbox package and use cache 2023-01-27 09:05:56 +05:30
Ankush Menat
f5771baf66
ci: use GITHUB_TOKEN for roulette api calls (#19537)
This is safe cuz we set read only permission on this token in workflows.

NOTE: Changing permission type is dangerous here!
2023-01-09 17:09:59 +05:30
Ankush Menat
92a705f8fd
ci: retry if rate limited in roulette (#19523)
[skip ci]
2023-01-09 13:11:22 +05:30
Ankush Menat
ac5b86cab1
ci: use node18 for releases (#19525)
Node <18 isn't supported anymore

> [semantic-release]: node version >=18 is required. Found v14.21.1.

> See https://github.com/semantic-release/semantic-release/blob/master/docs/support/node-version.md for more details and solutions.

[skip ci]
2023-01-09 13:10:26 +05:30
Ankush Menat
9f02f37849
chore: new forum URL
[skip ci]
2023-01-03 16:11:47 +05:30
Sagar Vora
0e40dff4d7
chore: bump gitpython to 3.1.30 (#19446) 2023-01-01 16:00:11 +05:30
Bread Genie
9e79df9802
ci: use $GITHUB_OUTPUT instead of set-output (#19389)
* refactor(boilerplate): use `$GITHUB_OUTPUT` instead of `set-output`

* ci: use `$GITHUB_OUTPUT` instead of `set-output`

* fix: remove unterminated string literal
2022-12-22 14:16:09 +05:30
Ankush Menat
1ab85a66c5 ci: better release notes generation (#19380)
[skip ci]
2022-12-21 12:14:35 +05:30
Sagar Vora
1fbead137c
chore: ignore vuln GHSA-hcpj-qp55-gfph during pip audit (#19328) 2022-12-17 11:51:23 +05:30
Ankush Menat
290a3df68d chore!: drop backup.py direct calls + pragma nocov 2022-12-13 14:18:19 +05:30
Ankush Menat
c06bddb94b
chore: Drop snyk (#19245)
We use dependabot mainly instead of snyk

[skip ci]
2022-12-12 17:19:39 +05:30
Ankush Menat
b304751639
ci: common server test (#19177) 2022-12-08 00:09:59 +05:30
Raffael Meyer
7484ebacb5
ci(deps): install mariadb 10.6 (#19166) 2022-12-07 00:23:35 +05:30
dependabot[bot]
36e857aa00
build(deps): bump dessant/lock-threads from 3 to 4 (#19125)
Bumps [dessant/lock-threads](https://github.com/dessant/lock-threads) from 3 to 4.
- [Release notes](https://github.com/dessant/lock-threads/releases)
- [Changelog](https://github.com/dessant/lock-threads/blob/master/CHANGELOG.md)
- [Commits](https://github.com/dessant/lock-threads/compare/v3...v4)

---
updated-dependencies:
- dependency-name: dessant/lock-threads
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-06 10:04:10 +05:30
Ankush Menat
f019b4fab6
build(deps): update caniuse (#18866)
[skip ci]
2022-11-14 15:46:54 +05:30
Ankush Menat
b0cb1adc01 ci: config cleanup and bump coverage 2022-11-09 15:58:46 +05:30
Ankush Menat
43ccb40d0e chore: rollback to 3.10 for vuln checks
cython dependency fails

[skip ci]
2022-11-05 18:33:50 +05:30
Ankush Menat
0ed7600604
build: py3.11 support (#18550)
* chore: bump RestrictedPython

* ci: use py3.11 on development version

* fix: py311 compat changes

* chore: bump to final versions
2022-11-03 20:49:05 +05:30
dependabot[bot]
ce9570de56
build(deps): bump bruceadams/get-release from 1.2.3 to 1.3.1 (#18535)
Bumps [bruceadams/get-release](https://github.com/bruceadams/get-release) from 1.2.3 to 1.3.1.
- [Release notes](https://github.com/bruceadams/get-release/releases)
- [Commits](https://github.com/bruceadams/get-release/compare/v1.2.3...v1.3.1)

---
updated-dependencies:
- dependency-name: bruceadams/get-release
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

[skip ci]
2022-10-25 11:30:08 +05:30
dependabot[bot]
ab259343c2
build(deps): bump actions/checkout from 2 to 3 (#18442)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [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/v2...v3)

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

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-18 10:07:56 +05:30
Ankush Menat
6de4d68b24
ci: disable test orchestrator (#18385) 2022-10-12 10:10:44 +05:30
mergify[bot]
f0952d0fbb
refactor: use file api to read import data (#18379) (#18382)
* refactor: use file api for reading data in import

* fix: remove unused import

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>

Co-authored-by: Faris Ansari <netchampfaris@users.noreply.github.com>
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
(cherry picked from commit 702e8674f94fde353ac12885f5782ea73ef75b6f)

Co-authored-by: Ankush Menat <ankush@frappe.io>
2022-10-11 21:59:43 +05:30
Ankush Menat
66710ae5c5
ci: Verify yarn lock file (#18336) 2022-10-10 13:45:49 +05:30
mergify[bot]
939d926b91
feat: Added Subscription Banner for remotely logging into FrappeCloud dashboard from site (backport #18263) (#18281)
* feat: Added Subscription Banner for remotely logging into FrappeCloud dashboard from site (#18263)

* feat: added Subscription Banner and Manage Subscription button

* feat[patch]: added a patch for adding `Manage Subscription` button in
navbar_settings

* chore: removed console ;)

* refactor: make the `Manage Subscription` navbar item optional

* keep it hidden by default, only show when the site configs are present

* style: prettier, isort and stuff

* chore: handling null responses, translation and refactored patch

* fix: correct index reset

* perf: reduce network/db calls

If not sys manager then why make a request?

* fix: removed network call and added subscription_expiry to boot process

* chore: added enable_manage_susbcriptions as daily background job and refactored patch

* chore: added hook to hooks.py

* this looks clean enough, also don't have insert for child tables ;)

Co-authored-by: Ankush Menat <ankush@frappe.io>
(cherry picked from commit 68f315d372cc8c6e41f2aabda61eba0d42dcf6e4)

# Conflicts:
#	frappe/patches.txt

* chore: conflicts

* style: format

[skip ci]

Co-authored-by: Rutwik Hiwalkar <50401596+rutwikhdev@users.noreply.github.com>
2022-10-03 16:41:12 +05:30
Ankush Menat
939bf872ae fix: use compact JSON representation for monitor 2022-09-25 15:07:30 +05:30
Ankush Menat
967cc26fab feat: capture custom values in frappe monitor
lets monitor add extra info for:
- Save/Submit by doctype
- Report generation time by standard report name
2022-09-25 15:07:30 +05:30
Ankush Menat
4263aace27 chore: dont run cypress on forks 2022-09-22 14:59:39 +05:30
Ankush Menat
f5a45a7e78 fix: erase default before adding new series-es 2022-09-10 13:14:23 +05:30
Ankush Menat
f07bc3b369 test(UI): use non-admin user for tests 2022-09-10 12:48:33 +05:30
Ritwik Puri
fddaa2da57
Merge pull request #17910 from phot0n/remove-event-streaming
refactor!: remove event streaming
2022-09-08 22:00:45 +05:30
Ankush Menat
f4434e9c80
ci: add alternate backport workflow 2022-09-08 15:23:22 +05:30
Ankush Menat
b47205ff01 chore: use PAT instead of GH token
[skip ci]
2022-09-06 19:00:43 +05:30
Ankush Menat
441fcc5159
ci: auto raise release PRs (#18048) 2022-09-06 18:47:34 +05:30
Ankush Menat
a5ab0c21cc
ci: lock old PR and issues 2022-09-02 19:08:22 +05:30
Ankush Menat
236ab8dbed ci: separate cache for UI jobs and selective test
This is reusing normal cache which doesn't contain half the things
2022-09-02 17:47:30 +05:30
Ankush Menat
fbee80f734
perf: rebuild website search index in background (#17974)
* perf: rebuild website search index in background

* refactor: allow enqueueing jobs during migrate

This was added a long time ago to handle missing redis during migrate.
It is not the case right now as redis HAS to be availabe during
migration.

ref: https://github.com/frappe/frappe/pull/2988

* ci: pass correct build type

* chore: warn about redis unavailability
2022-08-26 17:41:07 +05:30
phot0n
5d943a4b6e ci: create only one site/db for CI
* removed producer and consumer db and sites
* changed db_names to test_frappe
* moved site_config under helper/db dir
2022-08-26 00:54:13 +05:30
Ankush Menat
8950c4170b
ci: only wait for assets in server task
[skip ci]
2022-08-25 23:22:06 +05:30
Ankush Menat
9d06979b2d
ci: misc ci things (#17960)
* ci: skipped jobs should exit with neutral status

* ci: dont cache NPM

We don't use npm, why is this even here?

* ci: supress non-failure compile messages

1000s of files make it difficult to find where failure actually occured.

* ci: install wkhtml after other deps

two apt processes clash each other and waste time till lock is released.

Also silence download... no one cares.

* ci: build assets concurrently

* style: clean up messy bash script

* ci: rename patch job
2022-08-25 19:16:25 +05:30
Ankush Menat
3ec4a618e3
test: FrappeClient tests not skipped (#17843) 2022-08-16 14:10:12 +05:30
Ankush Menat
c9da8d87e5 ci: dont submit coverage if tests din't run 2022-08-16 11:49:08 +05:30
Ankush Menat
4391f8d0f1 ci: dont check python syntax for patch test
patch test runs across multiple versions, doesn't make sense here.
2022-08-16 10:53:28 +05:30
gavin
953b6bde2c ci: Use separate script outside frappe
This is an attempt to calculate python coverage more accurately

Co-Authored-By: Ankush Menat <ankush@frappe.io>
2022-08-14 12:57:31 +05:30
Ankush Menat
c5a514055e ci: dont fail silently and wait for coverage 2022-08-13 22:50:22 +05:30
Ankush Menat
936c073d23 Revert "ci: Only upload server-side coverage report if .py files are changed"
partially reverts this PR https://github.com/frappe/frappe/pull/16048

This is causing random fluctations.
2022-08-13 21:30:42 +05:30
Ankush Menat
eab85fc291 ci: stablilize coverage tracking 2022-08-13 21:30:40 +05:30