Commit graph

51 commits

Author SHA1 Message Date
gavin
9bd79e80a6
Merge pull request #16902 from phot0n/ci-no-run
ci: `Skip CI` label for not running build processes
2022-05-24 11:25:15 +05:30
phot0n
909ce30f0a ci: Skip CI label for stopping build process 2022-05-23 13:01:31 +05:30
chillaranand
e2652daf73 chore: Added flake8 to pre-commit config 2022-05-19 15:34:35 +05:30
Ankush Menat
9bec3480ed
ci: failfast in case of conflicts (#16777) 2022-04-27 14:25:45 +05:30
Suraj Shetty
21fcd00416 ci: While running all builds set build-server as well 2022-02-21 11:07:37 +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
e0dcabf224 ci: Build not required for UI tests
Since we build again after instrumentation
2022-02-17 09:52:49 +05:30
Suraj Shetty
20056a447f ci: Track server-side coverage as well while doing UI tests 2022-02-16 17:21:59 +05:30
Faris Ansari
ad390aab22 fix: update docs link checker
since docs are moved to wiki
2021-12-14 16:31:02 +05:30
Ankush Menat
3baa09401e
ci: update apt cache before install (#15226) 2021-12-09 09:59:19 +05:30
Ankush Menat
488cb31265 ci: move semgrep rules out of repo 2021-10-22 21:46:50 +05:30
Ankush Menat
61a59240dd
ci: install dev dependencies for server tests 2021-10-20 12:46:07 +05:30
Gavin D'souza
4a5bb2873d ci: Ignore sql=>qb rule for test files 2021-10-19 13:25:37 +05:30
Ankush Menat
ac1bb636cf
ci: flag new instances of sql_ddl and sql_list 2021-10-18 22:13:50 +05:30
Ankush Menat
059e5441c2
ci: use semgrep pattern instead of regex 2021-10-18 21:33:06 +05:30
abhishek
236c84ab8b feat: semgrep rule for db.sql 2021-10-18 16:35:13 +05:30
Ankush Menat
e6bbc698d0
ci: fail CI if asset bundling fails (#14364)
* ci: fail CI if asset bundling fails

* chore: formatting

Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
2021-10-08 11:40:31 +05:30
Ankush Menat
eb4e94f52d
fix: install mariadb client
GitHub action's Ubuntu 20.04 image has mysql8 tooling which is not
compatible with mariadb.
2021-09-12 18:11:12 +05:30
Gavin D'souza
a5ded007a5 fix(ci): Run all builds on github push events
Issue: No PR number is detected on Push events and all builds are
skipped. We want the opposite to be true, so we're running all builds on
merges in hopes of testing better.
2021-08-30 12:54:37 +05:30
Gavin D'souza
14d46f10de chore: Add vue as extn to frontend code 2021-08-27 20:28:42 +05:30
Gavin D'souza
525923d213 fix(roulette): Run only one conditional block 2021-08-25 15:23:00 +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
fe060bda0e fix: Use urllib instead of requests
Simply because "too much effort" to add another library pfft
2021-08-25 13:25:40 +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 D'souza
87f05c2e6b ci: Handle payload elements as not set/None
alt motive: Re-trigger GHAs that have been showing waiting for too
long ;)
2021-08-17 09:57:32 +05:30
Ankush Menat
144880bfb1
ci: make semgrep check diff-aware 2021-07-16 12:00:30 +05:30
Ankush Menat
327b9669e3
Merge branch 'develop' into sgrep_microtemplate 2021-06-03 12:09:19 +05:30
Gavin D'souza
feea2f3c44 fix: Use raw string to avoid invalid escape sequence errors 2021-05-26 16:32:41 +05:30
Ankush Menat
889e8aacb7
ci(semgrep): false +ve translation on templates
separated JS and python rules for granuarilty.

Ignore matches with microtemplating that have this structure: `{{.*_.*}}` in string.
2021-05-25 12:53:37 +05:30
Ankush Menat
4d7f5a8f8d
ci: fix semgrep false positives (#13161)
* ci: fix false positive rule for split js translate

- limit regex to must match end of line.
- expand previous check to take care of other ways to split multi-line
  calls.

* ci: update tests for rules, ignore rules in sider

* ci: enable semgrep on v13 branches

* ci: fix false positive for python split strings
2021-05-12 20:22:48 +05:30
Leela vadlamudi
3875004d7e
Merge pull request #13057 from leela/email-refactoring
refactor: Email Module - 1
2021-05-05 11:45:04 +05:30
leela
0a1902e650 fix: semgrep's split translation regex 2021-05-03 06:25:57 +05:30
Ankush Menat
5881c5dbec
ci(semgrep): add more rules, r/python.correctness (#12876)
* ci(semgrep): add more rules, r/python.correctness

- Added file for defining rules as per frappe data model:
frappe_correctness.yml
- Add rule for SQLi, with WARNING only for now
- Add rule file for UX
- WARNING | INFO do not fail the build now

* ci(semgrep): on_cancel, on_submit correctness rule

* ci(semgrep): split workflow in steps

* ci(semgrep): catch line breaks in _()

* chore: fix sider issue
2021-04-23 09:04:34 +05:30
Ankush Menat
cee30d2fa7
ci: ignore safe_eval paths 2021-03-23 18:24:01 +05:30
Ankush Menat
d7bc848a52
test(semgrep): python and javascript translation
- Move rules to .github folder to reduce clutter in root folder
- separate out rules
- add tests for rules
- docs for writing more rules
2021-03-13 18:22:48 +05:30
Mohammad Hasnain Mohsin Rajan
7148af3c20
ci: Fix Github Action (#12574) 2021-03-12 22:44:30 +05:30
Mohammad Hasnain Mohsin Rajan
3ee0d76776
ci: Port from TravisCI to Github Actions (#12559) 2021-03-12 13:59:30 +05:30
Suraj Shetty
da166c3db9 chore: Fix translation syntax check 2021-01-30 13:02:52 +05:30
Suraj Shetty
e643ccf002 chore: Show correct line number 2021-01-30 08:29:20 +05:30
Suraj Shetty
cae26da129 chore: Fix translation syntax check 2021-01-30 08:16:59 +05:30
Raffael Meyer
0d6dafa3f5
fix: allow other github links in same PR 2020-11-24 11:36:23 +01:00
Faris Ansari
c7ed6ce977 fix: Remove test strings and early return 2020-10-12 21:12:47 +05:30
Faris Ansari
18bc0d14cf fix: remove hardcoded path 2020-10-12 21:03:22 +05:30
Faris Ansari
8708e56896 fix: Handle f string and fix words check 2020-10-12 21:00:15 +05:30
Faris Ansari
d1b92c66bb fix: eager lookup 2020-10-12 17:36:44 +05:30
Faris Ansari
a113f5c285 fix: add test strings 2020-10-12 17:28:21 +05:30
Faris Ansari
5cf39f746a chore: Check existence of words in translation linter 2020-10-12 17:26:36 +05:30
Suraj Shetty
23bbbb1bbd chore: Consider template string as invalid 2020-10-12 11:34:51 +05:30
Gavin D'souza
076ba11111 fix: Update documentation helper 2020-10-05 14:06:58 +05:30