Commit graph

125 commits

Author SHA1 Message Date
Deepesh Garg
bf21d2fe2a chore: use ubuntu latest 2022-04-18 16:46:14 +05:30
Deepesh Garg
bafb1faa48 chore: Add semantic releases 2022-04-18 10:52:49 +05:30
ChillarAnand
b2fc959307 refactor: Clean up whitespace & add CI check 2022-02-25 20:01:29 +05:30
Suraj Shetty
5de89df5b7 ci: Only upload server-side coverage report if .py files are changed 2022-02-21 09:32:44 +05:30
Suraj Shetty
4e24efda8f ci: Exclude coverage.py and build.py from the report 2022-02-16 17:44:14 +05:30
Suraj Shetty
20056a447f ci: Track server-side coverage as well while doing UI tests 2022-02-16 17:21:59 +05:30
Suraj Shetty
da5779dc43 ci: Run cypress tests on each re-run
- using $GITHUB_RUN_ID-$GITHUB_RUN_ATTEMPT to keep each re-run unique
- Previously, cypress used to just return "Run finished" (without actually re-running the test) after re-running the GA build (without updating the code). This used to give false impression that all tests are passed.
2022-01-25 13:46:18 +05:30
Ankush Menat
3d474b5927 fix: drop py3.7 support for v14 2022-01-10 13:45:18 +05:30
Suraj Shetty
8a84ae4f08
ci: Use node version 14 to avoid node-sass failure in patch testing build (#15176) 2021-12-03 13:57:57 +05:30
Ankush Menat
d79450c501
ci: add timeout to CI jobs (#15000)
once a day some job gets stuck and default timeout is 6 hours.

Changed timeout to 1 hour which is 3-4x more than max running time of
all jobs.
2021-11-17 15:37:28 +05:30
Ankush Menat
b70251baba ci: user hotfix branches for patch test 2021-11-11 12:25:03 +05:30
Revant Nandgaonkar
9b68a9e5b4 ci: change GITHUB_PAT to CI_PAT 2021-11-03 13:51:46 +05:30
Revant Nandgaonkar
30992116ee chore: migrate docker to github actions 2021-11-02 12:12:49 +05:30
Ankush Menat
614423e41c
chore: change repo name 2021-10-22 22:37:06 +05:30
Ankush Menat
488cb31265 ci: move semgrep rules out of repo 2021-10-22 21:46:50 +05:30
Gavin D'souza
42acb7647f ci: Upgrade Py37 to Py39 2021-10-07 20:33:50 +05:30
Suraj Shetty
db9b3e1313
Merge pull request #14269 from mituldavid/coverage 2021-10-06 13:29:40 +05:30
MitulDavid
b798b96deb ci: Set Codecov flags to categorize coverage 2021-10-04 08:21:40 +05:30
Suraj Shetty
4d435e271e
Merge branch 'develop' into coverage 2021-09-30 23:11:26 +05:30
Ankush Menat
c1f9231d72
fix: install future and minor changes
minor changes:
1. quitely checkout new tags
2. avoid changing directory
3. use pip instead of bench to install deps.
2021-09-28 17:28:24 +05:30
Ankush Menat
42791744ff
test: migration tests each version at a time 2021-09-26 13:18:21 +05:30
MitulDavid
eeae52bbf9 ci: Use file-existence-action instead of hashFiles() 2021-09-22 19:07:32 +05:30
Mitul David
eb16a09a57
ci: Upload coverage only if report is generated 2021-09-21 20:26:14 +05:30
Ankush Menat
b140bb3f43
test: run patch test to last release and PR
In the patch test, instead of migrating to the current SHA directly.
Migrate to the latest release (with code at the time of release) and
then migrate to last commit in PR.

Why? When directly migrating, the previous patches that would've run
with old code have access to the new code and it's not realistic. This
change brings it a little bit closer to reality. Hence missing failures
that would occur with IRL installations.
2021-09-21 18:14:17 +05:30
MitulDavid
d8d8c8e54e ci: Code coverage for JS files 2021-09-20 21:11:47 +05:30
Gavin D'souza
a0e2d0ec20 fix: Drop support for Python 3.6
* Bumping iPython by a minor version broke 3.6 installs for us via https://github.com/frappe/frappe/pull/14192
* We could just add another line in requirements.txt to solve this, but
  since PY36 is reaching end of life by end of this year and release of
  3.10 is just around the corner, might as well just drop it now than
    later
* Frappe v14 would probably have the support range of 3.7-3.10/11 given
  when we release it. Maintaining dependencies for such a large range
  can become cumbersome
2021-09-17 11:24:51 +05:30
Ankush Menat
b33b469aff
Merge branch 'develop' into ci_ubuntu_latest 2021-09-07 13:10:56 +05:30
Suraj Shetty
fba196484c
ci: Conditionally run codecov upload 2021-09-06 22:50:42 +05:30
Suraj Shetty
8b252d493a
ci: Conditionally run codecov upload 2021-09-06 22:49:48 +05:30
Suraj Shetty
f4e477ef42
ci: Run postgres builds as well after a push on develop 2021-09-02 13:06:48 +05:30
Suraj Shetty
cbd94bd33d ci: Set name for coverage data upload 2021-09-02 10:53:53 +05:30
Suraj Shetty
ba73d99377 ci: Enable code coverage for postgres build as well 2021-09-02 09:36:57 +05:30
Suraj Shetty
cf028964f3 CI: Use codecov coverage reporting
Why?
- Coveralls had login issues and we were not able to view files to find the actual uncovered lines
- Codecov has better reporting (status checks & commit diff coverage, ), UX (better folder/file navigation, faster page loads), and has more features.
- Codecov will not require additional step of
coverage wrap-up for parallel builds (it manages it internally somehow).
2021-09-02 09:36:25 +05:30
Ankush Menat
765a255a00
ci: use ubuntu-latest for all jobs 2021-08-31 22:31:50 +05:30
Suraj Shetty
93b7eb64ec
Merge pull request #14061 from ankush/gha_concurrency 2021-08-30 13:10:44 +05:30
Ankush Menat
132864a776
ci: extend concurrency control to all long jobs 2021-08-27 23:08:09 +05:30
Ankush Menat
d0099985fc
ci: concurrency control for postgres 2021-08-27 23:05:09 +05:30
Ankush Menat
a5e9d1ef4d
ci: concurrency control for CI jobs
When same PR causes multiple CI triggers due to rapid addition of new
commits, this change will cancel previous CI jobs to save resources.
2021-08-27 22:50:44 +05:30
Gavin D'souza
8412674f49 fix(ci): Don't skip Coverage job unconditionally
pls ;)
2021-08-27 19:31:06 +05:30
Gavin D'souza
e2585cbc7e ci(roulette): Add support for running on forks 2021-08-25 13:46:09 +05:30
Gavin D'souza
e01ef7ff52 ci(roulette): Use GitHub REST to figure out changed files 2021-08-25 12:40:44 +05:30
Gavin D'souza
597d237f63 ci: Roulette for GHA 2021-08-24 20:41:24 +05:30
gavin
850939ed13 Revert "ci: ignore js only changes while running unittests (#13932)"
This reverts commit ead26527b7.
2021-08-24 13:26:03 +05:30
Ankush Menat
ead26527b7
ci: ignore js only changes while running unittests (#13932)
* ci: ignore js only changes while running unittests

- IF PR only changes JS files then unittests / patch tests wont run.
- Change done to save resources / concurrent builds.

* ci: ignore md files in build
2021-08-13 18:14:47 +05:30
Ankush Menat
144880bfb1
ci: make semgrep check diff-aware 2021-07-16 12:00:30 +05:30
Ankush
d58d2ac77f
ci(cypress): use env variable for key (#13616)
documentation ref: https://docs.cypress.io/guides/guides/command-line#cypress-run
2021-06-30 23:05:05 +05:30
Gavin D'souza
0d8aeba3ee fix: Update coverage omit files
Files that don't end with .py or .pyo ot .pyc are automatically
skipped by coveragepy. Updated omit list accordingly to remove non
python importable files.

ref: https://coverage.readthedocs.io/en/coverage-5.5/source.html#execution
2021-06-03 18:59:00 +05:30
Gavin D'souza
95ab1a60b4 ci: Add frappe patch test
* Generated v10 backup archive
    * used old v7 erpnext backup hosted via build.erpnext.com
    * upgraded to v10 frappe + erpnext
    * uninstalled and deleted erpnext related data
* Hosted backup on https://frappeframework.com/files/v10-frappe.sql.gz
2021-06-03 17:38:03 +05:30
Suraj Shetty
ab9b6bf36e
ci: Run ui tests after PR merge for status badge 2021-05-26 15:46:41 +05:30
Suraj Shetty
8764134309
ci: Run mariadb tests after PR merge for coverage badge 2021-05-26 10:02:12 +05:30