Mike Hardy
f59fe0ab87
fix emulator OutOfMemory by forcing zygote init race win via warm reboot
...
https://github.com/ankidroid/Anki-Android/issues/11091#issuecomment-1221325800
2022-08-20 10:47:31 -05:00
David Allison
e2e07068cc
Remove whitespace & code style PR checklist items
...
These items are now handled by lint checks + pre-commit hooks for
Kotlin-based code
We have very little Java code, and I feel it's very unlikely
that new users will be modifying this before we remove the remainder
This streamlines the process of submitting a PR, which hopefully
encourages new contributors to participate in the repo
2022-08-19 20:34:54 -05:00
nathannaveen
bc5d28d597
chore: Set permissions for GitHub actions
...
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.
- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ )
Signed-off-by: nathannaveen <42319948+nathannaveen@users.noreply.github.com>
2022-06-28 13:01:28 +05:30
dependabot[bot]
196a568edd
Bump actions/setup-python from 3 to 4
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 3 to 4.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/v3...v4 )
---
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>
2022-06-08 18:15:17 -05:00
Mike Hardy
24673bc825
release: allow 80 mins (v 40) for release to run
...
build is slower with kotlin and we timed out after
doing the release but before parallel builds were propagated - it got close though. Probably will take
50-55 in practice
2022-06-03 12:39:18 -05:00
Mani
29fe0055d5
Update JS library (jquery & mathjax) using GitHub action ( #11454 )
...
* update js library (jquery & mathjax)
* restore file mode, change paths in conf.js
* use variable for paths and replacement strings
* check if path exists or not for replacement
2022-06-02 18:28:36 -05:00
Elizalll
4e70260e88
[Automation] Remove assignees on merged Pull Request ( #11432 )
2022-05-29 22:13:09 -05:00
Mike Hardy
a112501498
test(ci, windows): stop gradle daemon to unlock files for caching
...
looks like windows file locking strikes again, with the gradle daemon
locking files in a way that makes caching them not work, leading to
persistent underperformance on windows runners
2022-05-17 14:56:41 -05:00
Mike Hardy
70b722556f
test(ci): give lint / unit test a bit more time to complete
...
noticed these failed a couple times recently due to timeouts where
they *almost* completed, slacken the timeout just a bit
2022-05-17 13:15:55 -05:00
Mike Hardy
bd32f30af2
test(windows, ci): increase available paging space
...
See https://github.community/t/error-the-paging-file-is-too-small-for-this-operation-to-complete/17141/12
2022-05-17 13:15:55 -05:00
Mike Hardy
e262766700
test(ci): add tight timeout to gradle setup setup
...
Fixes #11301
2022-05-10 20:26:22 +01:00
Mike Hardy
3e91bdc13e
perf(ci): use gradle-build-action w/main cache only on all workflows
...
This should optimize LRU cache eviction so main and branches always have
reasonably fresh gradle caches and main does not ever get evicted, since
branches have independent caches and would otherwise fill up 10GB cache limit
Note that `--daemon` is specified as the default for this action is no daemon,
that is correct for long-lived runners to avoid cross-build contamination, but
on GitHub Hosted Runners (which we use) we are clean each run, so this is a small
optimization to share gradle between steps: https://github.com/gradle/gradle-build-action/issues/113#issuecomment-1003204780
2022-04-25 22:25:52 -05:00
Mike Hardy
b565d5b19c
perf(ci, emulator): community emulator action / AVD caching / gradle cachine
...
Also adds an emulator run benchmarking suite that works in combo with matrix
If branch builds result in cache upload of emulator files the cache files there will
need to be scoped for just changes on the snapshot file(s)
2022-04-24 13:15:19 -05:00
Mike Hardy
06e5b4210f
refactor(ci): use built-in concurrency features
...
these did not exist prior, and cancel-workflow has worked well for us,
but built-in is better when it is available
2022-04-22 11:04:43 -05:00
George Pauer
7f1a758d52
test(unit, CI): use OS matrix w/macOS+windows+linux for unit tests ( #10801 )
2022-04-13 09:32:55 -05:00
krmanik
c6427a4725
add milestone to linked issues for merged pr
2022-04-12 09:41:55 -05:00
krmanik
eb6556c132
enhancements: add merged pr to milestone
2022-04-11 12:32:35 -05:00
dependabot[bot]
755ca16817
build(deps): bump actions/upload-artifact from 2 to 3
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 2 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-09 16:38:58 -05:00
dependabot[bot]
fcafe55804
build(deps): bump actions/stale from 4 to 5
...
Bumps [actions/stale](https://github.com/actions/stale ) from 4 to 5.
- [Release notes](https://github.com/actions/stale/releases )
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/stale/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/stale
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-09 16:38:50 -05:00
dependabot[bot]
560c7fe19a
build(deps): bump actions/setup-java from 2 to 3
...
Bumps [actions/setup-java](https://github.com/actions/setup-java ) from 2 to 3.
- [Release notes](https://github.com/actions/setup-java/releases )
- [Commits](https://github.com/actions/setup-java/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/setup-java
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-09 16:38:42 -05:00
krmanik
908884f198
fix milestone pr
2022-04-07 22:10:58 -05:00
krmanik
4b9bcd9cf1
fix: add merged pr to milestone
2022-04-07 11:43:49 -05:00
krmanik
c01a9fb67a
fix: remove specific labels from merged pr
2022-04-05 08:48:53 -05:00
krmanik
cb082fa651
fix auto label and milestone
2022-04-01 12:51:16 -05:00
Mani
0b23430653
Add merged PR to milestone and remove specific labels ( #10673 )
2022-04-01 10:48:44 -05:00
Mike Hardy
b169c9a24d
test(CI): call robolectric SDK download task during gradle cache warm
2022-03-27 22:48:13 -05:00
dependabot[bot]
ef840d2902
chore(deps): bump actions/cache from 2 to 3
...
Bumps [actions/cache](https://github.com/actions/cache ) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases )
- [Commits](https://github.com/actions/cache/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-03-22 15:09:20 +05:30
Tharun K
e27213356d
chore(lint, javascript): added prettier check ( #10500 )
...
* feat(prettier-check): added .prettierrc + workflow
* feat(prettier-check): ran prettier + .prettierignore
* feat(prettier-check): check if npx is installed
pre-commit now skips Prettier check if `npx` is not present.
2022-03-14 15:09:16 -05:00
Mike Hardy
458dc53884
chore: rename default branch to main
2022-03-06 14:22:18 -05:00
dependabot[bot]
6b728901da
chore(deps): bump actions/checkout from 2 to 3
...
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>
2022-03-02 07:39:56 -05:00
dependabot[bot]
925490636e
chore(deps): bump actions/setup-python from 2 to 3
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 2 to 3.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/v2...v3 )
---
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>
2022-03-01 07:45:24 -05:00
David Allison
ac5891d2d2
lint: change to Debug to allow androidTest lint
...
Lint did not work on `androidTest` if set to release
I have confirmed that `lintPlayDebug` will lint:
* main
* test
* androidTest
It will not lint:
* api:main
* api:test
Release and debug lint are now equivalent.
Cause of equivalence: fcf111c329
We could use `gradlew lint` to lint everything, but this runs under the
Amazon Debug Flavor, which is unusual in CI
Fixes 10322
2022-02-15 07:55:28 -05:00
dependabot[bot]
8de70d72a4
Bump webfactory/ssh-agent from 0.5.3 to 0.5.4
...
Bumps [webfactory/ssh-agent](https://github.com/webfactory/ssh-agent ) from 0.5.3 to 0.5.4.
- [Release notes](https://github.com/webfactory/ssh-agent/releases )
- [Changelog](https://github.com/webfactory/ssh-agent/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webfactory/ssh-agent/compare/v0.5.3...v0.5.4 )
---
updated-dependencies:
- dependency-name: webfactory/ssh-agent
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-11-23 08:28:37 -05:00
Mike Hardy
873362ce15
release: update github-release from 0.8.1 to 0.10.0
2021-08-05 16:07:33 -05:00
dependabot[bot]
7c942940ae
build(deps): bump styfle/cancel-workflow-action from 0.9.0 to 0.9.1
...
Bumps [styfle/cancel-workflow-action](https://github.com/styfle/cancel-workflow-action ) from 0.9.0 to 0.9.1.
- [Release notes](https://github.com/styfle/cancel-workflow-action/releases )
- [Commits](https://github.com/styfle/cancel-workflow-action/compare/0.9.0...0.9.1 )
---
updated-dependencies:
- dependency-name: styfle/cancel-workflow-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-07-29 20:21:33 -05:00
dependabot[bot]
325b8e3701
build(deps): bump actions/stale from 3 to 4
...
Bumps [actions/stale](https://github.com/actions/stale ) from 3 to 4.
- [Release notes](https://github.com/actions/stale/releases )
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/stale/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/stale
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-07-16 08:47:26 -05:00
Mike Hardy
681c37d332
build(dependabot): ignore commons-compress v1.22 as well
...
Re-verified, java.io.File.toPath is only available API26+, and the library has
not changed their compatibility, so we're still waiting on this one, just sliding the version range
here
Closes #9257
2021-07-13 08:14:59 -05:00
Mike Hardy
33473d9408
build: invalidate github actions unit test gradle cache
...
Bumping the cache key from v1 to v2 clears it.
Intended to resolve GesureMapper NoClassDefFoundErrors popping up in CI right now.
2021-06-30 10:53:41 -05:00
Mike Hardy
34b2e95645
Dependency updates 20210622 ( #9133 )
...
* Bump protobuf-java from 3.17.0 to 3.17.1
* build(deps): bump annotations from 21.0.0 to 21.0.1
* Bump protobuf-java from 3.17.1 to 3.17.2
* Bump recyclerview from 1.2.0 to 1.2.1
* build(deps): bump ucrop from 2.2.6 to 2.2.7
* chore(rust): dependabot should ignore backend verisons
* Bump mockito-inline from 3.10.0 to 3.11.0
* Bump protobuf-java from 3.17.2 to 3.17.3
* Bump mockito-inline from 3.11.0 to 3.11.1
* Bump fragment from 1.3.4 to 1.3.5
* Bumps fragment from 1.3.4 to 1.3.5.
* Bump fragment-testing from 1.3.4 to 1.3.5
* Bump mockito-inline from 3.11.1 to 3.11.2
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-23 08:14:53 -05:00
dependabot[bot]
f554614ce3
Bump webfactory/ssh-agent from 0.5.2 to 0.5.3
...
Bumps [webfactory/ssh-agent](https://github.com/webfactory/ssh-agent ) from 0.5.2 to 0.5.3.
- [Release notes](https://github.com/webfactory/ssh-agent/releases )
- [Changelog](https://github.com/webfactory/ssh-agent/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webfactory/ssh-agent/compare/v0.5.2...v0.5.3 )
---
updated-dependencies:
- dependency-name: webfactory/ssh-agent
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-06-14 16:31:46 -05:00
Shridhar
d652fa2c81
Add ktlint
2021-05-28 20:12:33 +02:00
Mike Hardy
7282a42f14
test(ci): run QA workflows on dependency-branch push
2021-05-14 09:28:30 -05:00
Mike Hardy
118f3d00d2
chore(dependabot): fix yml typo
2021-05-14 09:21:29 -05:00
Mike Hardy
54e686ba4e
chore(dependabot): add github-actions to scan, explicitly ignore incompatible commons-compress
2021-05-14 09:11:41 -05:00
Mike Hardy
a30004680d
chore(dependabot): configure label to use for PRs
2021-05-14 08:56:56 -05:00
dependabot-preview[bot]
a9b9fb0b42
Upgrade to GitHub-native Dependabot ( #322 )
...
* Upgrade to GitHub-native Dependabot
* remove stale dependabot ignores
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Mike Hardy <github@mikehardy.net>
2021-05-14 08:46:57 -05:00
Mike Hardy
fe32002ae9
Run module-specific / variant-specific lint checks
...
The conversion to variants in #8151 meant AnkiDroid did not have a valid
lintRelease target anymore so it was not running in CI as expected
Using the variant-specific name makes it work, and splitting the checks into
specific ones for each sub-module should make it obvious in the future if any
further variant-related work happens
Fixes #8669
2021-04-24 11:31:27 -05:00
Mrudul Tora
6d68424cd4
Fixes #8151 Build flavors for Amazon Appstore and Google Playstore ( #8427 )
...
Fixes #8151 Build flavors for Amazon Appstore and Google Playstore
2021-04-19 22:39:06 -05:00
Mike Hardy
f3a53cf5be
stale bot exempt properties are plural now
2021-04-15 23:07:31 -05:00
Mike Hardy
b0efa29f7a
chore: bump workflow dependencies
...
- java needs a distribution now, "adopt" is best in my opinion
- cancel-workflow-action can kill all_but_latest now (I helped on that one, nice)
- nothing else that was breaking or worth using feature-wise
2021-04-15 20:58:01 -05:00