Hans-Christoph Steiner
b1b30d13a4
set up config['ndk_paths'] on demand by reading source.properties
...
ndk_paths is set up right after installing the NDK and right before
ndk_paths is used in Build.ndk_path().
A proper NDK install always has a _source.properties_ which declares
the revision and release strings. That is used as the source of
revision and release. This only reads from the local filesystem, and
reads the official source of version info (_source.properties_),
thereby avoiding any potential network calls that sdkmanager might
do. This implementation was inspired by @uniqx's:
ed931d47d7 (27b997d583cd1c0a05b2213437e0d9fe6536bfe3)
2025-11-11 15:56:01 +01:00
Hans-Christoph Steiner
40f411d417
Merge branch 'buildbot-subcommands-fetch_repo-fetch_srclibs' into 'master'
...
subcommands: fetch_repo and fetch_srclibs
See merge request fdroid/fdroidserver!1716
2025-11-10 18:26:53 +00:00
Michael Pöhn
5e87f85cf7
🥍 add fetch_srclibs subcommand
2025-11-05 11:20:44 +01:00
Michael Pöhn
0075f044f7
🌅 add fetch_repo subcommand (based on fetchsrclibs plugin)
...
We've been using fetchsrclibs plugin for downloading source-code for
apps and srclibs. This change copies to plugin script into fdroidserver
as a subcommand. It also renames it from fetchsrclibs to fetch_repo
because it's fetching the git repo in Repo:
2025-11-05 11:20:44 +01:00
Michael Pöhn
9de92dc215
💂 push: owner fix
2025-11-05 11:20:41 +01:00
Michael Pöhn
e4f9c8c58c
Merge branch 'buildbot-subcommands-pull_verify' into 'master'
...
new subcommand: _pull_verify_ to only pull the binary package
See merge request fdroid/fdroidserver!1715
2025-11-04 11:48:03 +00:00
Hans-Christoph Steiner
0c50caee7f
new subcommand pull_verify to only pull the binary package
2025-11-04 11:47:02 +00:00
Michael Pöhn
43c23c84eb
Merge branch 'buildbot-subcommands-execute_sudo' into 'master'
...
🦹 add execute_sudo subcommand
See merge request fdroid/fdroidserver!1714
2025-11-04 11:31:08 +00:00
Michael Pöhn
1c4fe22c5b
🦹 add execute_sudo subcommand
...
This subcommand takes following actions:
* executes sudo commands from metadata
* removes sudo from your system
* locks root account
Only run in a vm/container!!!
2025-10-31 14:45:30 +01:00
Hans-Christoph Steiner
f79801d65e
Merge branch 'up-cpu-memory-cli-args' into 'master'
...
`fdroid up --cpus --memory` CLI args
See merge request fdroid/fdroidserver!1713
2025-10-29 20:38:47 +00:00
Hans-Christoph Steiner
950efbbb45
safety catch for --cpus so it isn't higher than actual CPUs
2025-10-29 21:22:35 +01:00
Hans-Christoph Steiner
8421d61369
get_virt_memory_opt: support str values like "16GB"
2025-10-29 21:22:35 +01:00
Michael Pöhn
2386bcc64f
🖼 set cpus and memory from CLI options
2025-10-29 21:22:35 +01:00
Hans-Christoph Steiner
a9f4467661
Merge branch 'buildbot-subcommands-prepare_source-build_local_run-make_src_tar_gz' into 'master'
...
more subcommands: prepare_source, build_local_run, install_ndk, make_source_tarball
See merge request fdroid/fdroidserver!1712
2025-10-29 20:19:02 +00:00
Hans-Christoph Steiner
f64386406c
new subcommand: make_source_tarball
2025-10-29 21:06:43 +01:00
Michael Pöhn
cd3ca7dc57
🪗 get auto NDK installs working in vm builds
2025-10-29 21:06:43 +01:00
Michael Pöhn
751df0275e
🧭 started splitting out build_local from build.py
...
This copies build_local() from build.py into newly created (hidden)
subcommands: `prepare_source` and `build_local_run`. It also
breaks up the long body of the build_local function into smaller
functions.
2025-10-29 21:06:42 +01:00
Michael Pöhn
89dcb1aa1f
Merge branch 'buildbot-subcommands-schedule-verify' into 'master'
...
new subcommand "schedule_verify" to generate events for apps to verify
See merge request fdroid/fdroidserver!1710
2025-10-23 15:26:41 +00:00
Hans-Christoph Steiner
4f1b50f7a6
switch test_signatures.py to mkdtemp to fix mystery
...
I have no idea what is causing this to fail, but the mkdtemp pattern used
in other test files seems to fix it.
https://gitlab.com/fdroid/fdroidserver/-/jobs/11776468083
======================================================================
ERROR: test_main (tests.test_signatures.SignaturesTest.test_main)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/builds/fdroid/fdroidserver/tests/test_signatures.py", line 28, in test_main
with TemporaryDirectory() as tmpdir, TmpCwd(tmpdir):
^^^^^^^^^^^^^^
File "/builds/fdroid/fdroidserver/tests/shared_test_code.py", line 44, in __enter__
self.orig_cwd = os.getcwd()
^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory
----------------------------------------------------------------------
2025-10-23 12:03:52 +02:00
Hans-Christoph Steiner
2fbd6f1a19
new subcommand "schedule_verify" to generate events for apps to verify
2025-10-23 12:03:52 +02:00
Hans-Christoph Steiner
80dfbad85b
Merge branch 'fix-dont-fetch-source-on-push.py' into 'master'
...
🪳 prevent push.py from fetching source code
See merge request fdroid/fdroidserver!1711
2025-10-23 09:49:43 +00:00
Michael Pöhn
14e7cc007d
🪳 prevent push.py from fetching source code
2025-10-23 10:54:47 +02:00
Hans-Christoph Steiner
8667ebc56a
Merge branch 'buildbot-subcommands-up-destroy-exec-push-pull' into 'master'
...
set up new mechanism for unlisted subcommands; implement up/destroy/exec/push/pull
See merge request fdroid/fdroidserver!1709
2025-10-23 08:32:13 +00:00
Michael Pöhn
42189c8abc
🐴 implement pull for vagrant
2025-10-22 19:45:27 +02:00
Hans-Christoph Steiner
da032d517a
new subcommand "pull": podman/vagrant implementation
2025-10-22 19:45:25 +02:00
Michael Pöhn
e6e788e533
💂 implement vagrant push
2025-10-22 19:42:54 +02:00
Hans-Christoph Steiner
9fa7193620
new subcommand "push": podman/vagrant implementation
2025-10-22 19:42:50 +02:00
Michael Pöhn
69c67badfb
🪆 --as-root to run command inside of container/VM as root
2025-10-20 15:38:03 +02:00
Michael Pöhn
60f5f8fa1c
🥊 add vagrant support to exec subcommand
2025-10-20 15:38:03 +02:00
Hans-Christoph Steiner
63660e1aed
new subcommand "exec": podman implementation
2025-10-20 15:38:03 +02:00
Hans-Christoph Steiner
fd60436aa3
new subcommand "destroy": podman implementation
2025-10-20 15:38:03 +02:00
Hans-Christoph Steiner
76673627fc
new subcommand "up" for vagrant up and `podman run
2025-10-20 15:38:00 +02:00
Hans-Christoph Steiner
87d0e5a10b
specify virt_container_type via config and CLI options
2025-10-16 14:14:03 +02:00
Michael Pöhn
6cbef943ac
set up new mechanism for unlisted subcommands
...
For the build automation, there will be lots of subcommands that are meant
to run in scripted environments. They are not intended for interactive use.
Although they sometimes might be useful interactively, they might also
sometimes be dangerous to run interactively because they rely on the
presense of a VM/container, modify the local environment, or even run
things as root.
2025-10-10 10:27:49 +02:00
Michael Pöhn
3e5a8e625d
Merge branch 'get_single_build' into 'master'
...
metadata: get_single_build() for new subcommands
See merge request fdroid/fdroidserver!1708
2025-10-09 21:37:10 +00:00
Hans-Christoph Steiner
b00b9c9390
metadata: get_single_build() for new subcommands
...
The new subcommands operate on a single APPID:VERSIONCODE pair, so this new
function fetches the metadata needed for that operation, and includes any
required checks.
The algorithm came from:
uniqx/fdroidserver@2b779e6599
This reworking of it includes:
* removed `check_disabled`, seems like the scheduler should handle that? If
it is required, it can be added later.
* standard variable names
* fixed spelling errors and hopefully improved docstrings
* black format
* added tests
* standardized the strings, made them localizable
2025-10-09 17:00:58 +02:00
Hans-Christoph Steiner
e6df386b13
Merge branch 'build-method-docstrings' into 'master'
...
🖋️ more docs for build
See merge request fdroid/fdroidserver!1707
2025-10-08 13:08:48 +00:00
Michael Pöhn
b09dc85253
🖋️ more docs for build
...
improve setup_vcs and getsrclib docstrings
2025-10-08 14:56:20 +02:00
Hans-Christoph Steiner
2000aab68b
Merge branch 'weblate' into 'master'
...
weblate
See merge request fdroid/fdroidserver!1706
2025-09-29 12:39:39 +00:00
Hans-Christoph Steiner
c8a017f413
make -C locale update
2025-09-29 14:29:21 +02:00
Telaneo
93cdae43ff
Translated using Weblate: Norwegian Bokmål (nb_NO) by Telaneo <post@telaneo.net>
...
Currently translated at 48.1% (280 of 582 strings)
Co-authored-by: Telaneo <post@telaneo.net>
Translate-URL: https://hosted.weblate.org/projects/f-droid/fdroidserver/nb_NO/
Translation: F-Droid/F-Droid Server
2025-09-29 14:25:19 +02:00
Jacob Guzmán Calderón
08623f04a6
Translated using Weblate: Spanish (Mexico) (es_MX) by Jacob Guzmán Calderón <jacobguzman1207@gmail.com>
...
Currently translated at 9.1% (53 of 582 strings)
Co-authored-by: Jacob Guzmán Calderón <jacobguzman1207@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/f-droid/fdroidserver/es_MX/
Translation: F-Droid/F-Droid Server
2025-09-29 14:25:19 +02:00
Artyom Rybakov
e3b029847b
Translated using Weblate: Russian (ru) by Artyom Rybakov <rib.artem@gmail.com>
...
Currently translated at 100.0% (582 of 582 strings)
Co-authored-by: Artyom Rybakov <rib.artem@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/f-droid/fdroidserver/ru/
Translation: F-Droid/F-Droid Server
2025-09-29 14:25:19 +02:00
BIENESTAR NARANJOS
1d14ee0f66
Translated using Weblate: Spanish (Mexico) (es_MX) by BIENESTAR NARANJOS <bienestarnaranjos@gmail.com>
...
Currently translated at 8.4% (49 of 582 strings)
Translated using Weblate: Spanish (es) by BIENESTAR NARANJOS <bienestarnaranjos@gmail.com>
Currently translated at 100.0% (582 of 582 strings)
Co-authored-by: BIENESTAR NARANJOS <bienestarnaranjos@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/f-droid/fdroidserver/es/
Translate-URL: https://hosted.weblate.org/projects/f-droid/fdroidserver/es_MX/
Translation: F-Droid/F-Droid Server
2025-09-29 14:25:19 +02:00
Swyter
c2fcbffebc
Translated using Weblate: Spanish (es) by Swyter <swyterzone@gmail.com>
...
Currently translated at 100.0% (582 of 582 strings)
Co-authored-by: Swyter <swyterzone@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/f-droid/fdroidserver/es/
Translation: F-Droid/F-Droid Server
2025-09-29 14:25:19 +02:00
Ldm Public
b1a542bf57
Translated using Weblate: French (fr) by Ldm Public <ldmpub@gmail.com>
...
Currently translated at 100.0% (582 of 582 strings)
Co-authored-by: Ldm Public <ldmpub@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/f-droid/fdroidserver/fr/
Translation: F-Droid/F-Droid Server
2025-09-29 14:25:19 +02:00
emma peel
5a802fdc47
Translated using Weblate: Spanish (es) by emma peel <emma.peel@riseup.net>
...
Currently translated at 99.4% (579 of 582 strings)
Co-authored-by: emma peel <emma.peel@riseup.net>
Translate-URL: https://hosted.weblate.org/projects/f-droid/fdroidserver/es/
Translation: F-Droid/F-Droid Server
2025-09-29 14:25:19 +02:00
mestari
158b1a4249
Translated using Weblate: Finnish (fi) by mestari <mestari037@protonmail.com>
...
Currently translated at 8.2% (48 of 582 strings)
Co-authored-by: mestari <mestari037@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/f-droid/fdroidserver/fi/
Translation: F-Droid/F-Droid Server
2025-09-29 14:25:19 +02:00
DB L
2cabe3f7e0
Translated using Weblate: English (United Kingdom) (en_GB) by "DB L." <deblm@tutamail.com>
...
Currently translated at 5.3% (31 of 582 strings)
Co-authored-by: DB L <deblm@tutamail.com>
Translate-URL: https://hosted.weblate.org/projects/f-droid/fdroidserver/en_GB/
Translation: F-Droid/F-Droid Server
2025-09-29 14:25:19 +02:00
Danial Behzadi
7308b056f0
Translated using Weblate: Persian (fa) by Danial Behzadi <dani.behzi@ubuntu.com>
...
Currently translated at 16.3% (95 of 582 strings)
Co-authored-by: Danial Behzadi <dani.behzi@ubuntu.com>
Translate-URL: https://hosted.weblate.org/projects/f-droid/fdroidserver/fa/
Translation: F-Droid/F-Droid Server
2025-09-29 14:22:23 +02:00