Commit graph

69 commits

Author SHA1 Message Date
linsui
6c560ab5fa keep-latest script: full match removed versions 2024-09-10 21:39:06 +08:00
linsui
4c80f513f5 keep-latest script: print commit hashes 2024-09-10 20:13:48 +08:00
linsui
fc0294326d tools: add keep-latest script 2024-09-10 20:08:02 +08:00
linsui
db0946b00c CI: add apk_signing_key_block_list config for lint 2024-05-08 12:48:33 +00:00
linsui
67268cb3bf make-summary-translatable.py: ArchivePolicy is int 2023-06-02 14:06:32 +08:00
Hans-Christoph Steiner
63f77186ce tools/rewrite-git-redirects.py: also handle srclibs 2023-03-23 17:31:00 +00:00
Hans-Christoph Steiner
33481756ef gitlab-ci: add job to check if Repo URL is a redirect
We need a strong link between the source repo URL and our buildserver. HTTP
redirects have a number of issues, and are unnecessary in our use case.
Once this is complete, then the buildserver can set http.followRedirects to
false, and we could also set the buildserver to fetch source over Tor to
avoid targetting it.  Right now, gitlab.com only allows git fetches over
Tor if it is hitting a direct URL.  gitlab.com/s redirect logic will
trigger Cloudflare captures otherwise.

* https://bugs.debian.org/79002
* https://www.debian.org/security/2019/dsa-4371
* https://googleprojectzero.github.io/0days-in-the-wild//0day-RCAs/2021/CVE-2021-38000.html
* fdroidclient#1041
2023-03-20 17:07:37 +00:00
Hans-Christoph Steiner
8e62cba28c gitlab-ci: run tools/make-summary-translatable.py 2022-10-11 10:03:40 +00:00
Jochen Sprickerhof
07a02b008d Recover --name-only and properly fix Python 3.5 syntax 2022-09-20 07:34:10 +00:00
proletarius101
32c6369dc1 optimize trigger-issuebot 2022-08-02 15:42:00 +00:00
proletarius101
834f03dfac
fix python 3.5 syntax 2022-07-12 22:50:33 +08:00
proletarius101
307ef3f6a1 ignore disabled changed builds in ci 2022-07-12 14:08:55 +00:00
proletarius101
d71cd481a5 align changed builds detection's target & source refs 2022-07-12 14:08:46 +00:00
proletarius101
703fa06277
fix find-changed-builds.py 2022-07-10 23:24:46 +08:00
Hans-Christoph Steiner
7c98192b77
tools/: use safe yaml loading
YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as
the default Loader is unsafe. Please read https://msg.pyyaml.org/load for
full details.
2022-06-17 10:05:29 +02:00
Jochen Sprickerhof
19a9366457 check-git-repo-avail ignore NoSourceSince
Apps that have NoSourceSince don't need a Repo:.
2021-10-23 19:58:47 +00:00
FestplattenSchnitzel
141d71ba44 Format Python tools with Black 2021-08-02 17:23:33 +00:00
FestplattenSchnitzel
ea5bf01a8f Refactor tools, optimize imports, misc fixes 2021-08-02 17:23:33 +00:00
FestplattenSchnitzel
67e15e262c Add tools/README.md 2021-08-02 17:23:33 +00:00
Hans-Christoph Steiner
290039dcc5
gitlab-ci: use built-in NDK download/install in fdroid build
This is now handled as part of `fdroid build --onserver`.

https://gitlab.com/fdroid/fdroidserver/-/merge_requests/919
2021-05-25 17:11:07 +02:00
Hans-Christoph Steiner
5ba7220802
tools/fix-ellipsis.sh: standardize to keep translation merges easy 2021-04-29 16:05:35 +02:00
Hans-Christoph Steiner
52b802517f
gitlab-ci: fix broken logic for running publish when signatures are there
!8834
92f77359dd
2021-04-21 11:20:12 +02:00
Hans-Christoph Steiner
92f77359dd
gitlab-ci: fdroid build job fully handles reproducible builds
metadata/*/signatures/* are used for reproducible builds.  If those files
change, then `fdroid build` should run and try to build the app with those
signature files.  Also, `fdroid publish` needs to run to copy those
signature files to complete the test of reproducibility.  Builds that use
the `Binaries:` method are already verified as part of `fdroid build`.

fdroidserver!893
fdroidserver#891
fdroiddata!8816
2021-04-20 10:22:56 +02:00
Hans-Christoph Steiner
438681c771
gitlab-ci: check for signatures without build entries 2021-04-15 17:44:00 +02:00
Hans-Christoph Steiner
5d9101bd33
gitlab-ci: prototype setup for NDK runs 2021-03-10 19:02:46 +01:00
linsui
0bacae2332 fix issuebot trigger 2021-03-07 16:17:30 +00:00
Hans-Christoph Steiner
d2b85073d7 create metadata for com.manuelvargastapia.libgen
add fastlane structure
2020-12-22 16:20:35 +00:00
Hans-Christoph Steiner
6d26432439 gitlab-ci: schedule issuebot to review on merge requests that need it
This looks through all open merge requests to see if issuebo has run on
them yet.  If a merge request needs an issuebot review, this will send the
trigger to start the job on fdroid/fdroiddata per merge request.
2020-12-17 11:35:54 +01:00
Hans-Christoph Steiner
91d80a5a1c
fix tools/fdroid_fetchsrclibs.py to use fdroidserver 2.0 API
fdroid/fdroidserver!838
2020-12-15 22:26:48 +01:00
Hans-Christoph Steiner
cc10a30c1a
gitlab-ci: fix fdroid_fetchsrclibs.py for fdroidserver 2.0 API
Thanks @IzzySoft for reporting.
2020-12-12 22:30:24 +01:00
Hans-Christoph Steiner
eff041ccfa gitlab-ci: improved logging for trigger-issuebot 2020-12-10 16:15:50 +01:00
Hans-Christoph Steiner
2574e6ee78 trigger-issuebot: print a dot per search attempt 2020-12-04 14:20:17 +01:00
Hans-Christoph Steiner
3658328a00
tools/trigger-issuebot: throw errors if required env vars are not set 2020-12-02 23:51:05 +01:00
Hans-Christoph Steiner
e3a48e6dfd
use cleaner working dir selection in check scripts 2020-11-17 19:08:22 +01:00
Hans-Christoph Steiner
0512044643 tools/find-changed-builds.py: normalize code with pyflakes3/black -S 2020-07-02 12:06:34 +02:00
Hans-Christoph Steiner
11a7290a48 gitlab-ci: fix fdroid build for new metadata files
!6845
2020-06-25 21:22:21 +02:00
Hans-Christoph Steiner
07e70de82e
gitlab-ci: make 'fdroid build' job fetch srclibs
This uses @uniqx's awesome new 'plugin' feature to create a 'fetchsrclibs`
command.  The 'fdroid build' gitlab-ci job uses --on-server, which does not
set up the srclibs.  This plugin does the missing setup.
2020-06-25 20:36:09 +02:00
Hans-Christoph Steiner
8d99dfd3c6
gitlab-ci: only run fdroid build on changed build entries 2020-06-23 08:58:57 +02:00
Hans-Christoph Steiner
979d42858e
gitlab-ci: improve issuebot trigger for merge requests
This should hopefully provide reliable triggering for issuebot on merge
requests.  Before, detecting the merge request number was happening on the
receiving side, and it had weird issues.
2020-06-18 18:59:45 +02:00
Hans-Christoph Steiner
6d9777c134 gitlab-ci: check git repo availability for metadata and srclibs MRs
This also ports check-git-repo-availability.py to Debian/stretch for the
buildserver image.
2020-06-02 17:12:24 +02:00
Hans-Christoph Steiner
ce0969d18b
gitlab-ci: make merge requests trigger issuebot 2020-05-21 11:55:04 +02:00
Hans-Christoph Steiner
9f80bf2a9e
tools/rewrite-git-redirects.py: use canonical gitlab URLs for Repo:
```console
$ git clone https://gitlab.com/fdroid/ci-images-base.git
Cloning into 'ci-images-base'...
remote: Enumerating objects: 89, done.
remote: Counting objects: 100% (89/89), done.
remote: Compressing objects: 100% (50/50), done.
remote: Total 89 (delta 51), reused 68 (delta 39)
Unpacking objects: 100% (89/89), done.
$ rm -rf ci-images-base/
$ git clone https://gitlab.com/fdroid/ci-images-base
Cloning into 'ci-images-base'...
warning: redirecting to https://gitlab.com/fdroid/ci-images-base.git/
remote: Enumerating objects: 89, done.
remote: Counting objects: 100% (89/89), done.
remote: Compressing objects: 100% (50/50), done.
remote: Total 89 (delta 51), reused 68 (delta 39)
Unpacking objects: 100% (89/89), done.
```
2019-10-03 13:58:55 +02:00
Hans-Christoph Steiner
9ccf886978
gitlab-ci: check active git repos to ensure they're available
This then edits the metadata file for apps with failing git repos, then
includes those edited files in the gitlab job artifacts.

fdroid/fdroiddata!5262
2019-08-26 11:24:17 +02:00
Hans-Christoph Steiner
180a6c93af
gitlab-ci: check that localized metadata is properly named 2019-05-10 13:37:18 +02:00
Hans-Christoph Steiner
ebb6baa3bd
standardize whitespace on localizable changelogs
This makes things work better when syncing with Weblate
2019-03-01 14:13:47 +01:00
Hans-Christoph Steiner
fc17514346 use selected upstream summaries and related translations 2019-02-27 23:28:09 +01:00
Hans-Christoph Steiner
83231f0bf7 standardize whitespace on localizable text files
This makes things work better when syncing with Weblate
2019-02-27 23:28:09 +01:00
Hans-Christoph Steiner
4c1c4c28bf script to convert inline Summary to translatable file
https://forum.f-droid.org/t/translating-lots-of-app-summaries/
2019-02-27 23:28:08 +01:00
Hans-Christoph Steiner
19acd9e334 script to pre-compress all included graphics 2018-08-29 22:49:56 +02:00
Hans-Christoph Steiner
8dade6ece0 gitlab-ci: check if Application ID will cause keyalias collision
fdroid/fdroidserver#553
2018-08-29 22:49:51 +02:00