Commit graph

9233 commits

Author SHA1 Message Date
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
Akif
27daf159de
Translated using Weblate: Turkish (tr) by Akif <akifvar5067@gmail.com>
Currently translated at 99.6% (580 of 582 strings)

Co-authored-by: Akif <akifvar5067@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/f-droid/fdroidserver/tr/
Translation: F-Droid/F-Droid Server
2025-09-29 14:22:23 +02:00
Midrielen
f03dbcf144
Translated using Weblate: Finnish (fi) by Midrielen <jimitoivo.jaakkola@outlook.com>
Currently translated at 7.9% (46 of 582 strings)

Co-authored-by: Midrielen <jimitoivo.jaakkola@outlook.com>
Translate-URL: https://hosted.weblate.org/projects/f-droid/fdroidserver/fi/
Translation: F-Droid/F-Droid Server
2025-09-29 14:22:22 +02:00
Yaron Shahrabani
d2ac770ea2
Translated using Weblate: Hebrew (he) by Yaron Shahrabani <sh.yaron@gmail.com>
Currently translated at 13.7% (80 of 582 strings)

Translated using Weblate: Hebrew (he) by Yaron Shahrabani <sh.yaron@gmail.com>

Currently translated at 13.7% (80 of 582 strings)

Translated using Weblate: Hebrew (he) by Yaron Shahrabani <sh.yaron@gmail.com>

Currently translated at 13.7% (80 of 582 strings)

Translated using Weblate: Hebrew (he) by Yaron Shahrabani <sh.yaron@gmail.com>

Currently translated at 12.0% (70 of 582 strings)

Translated using Weblate: Hebrew (he) by Yaron Shahrabani <sh.yaron@gmail.com>

Currently translated at 12.0% (70 of 582 strings)

Translated using Weblate: Hebrew (he) by Yaron Shahrabani <sh.yaron@gmail.com>

Currently translated at 10.6% (62 of 582 strings)

Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/f-droid/fdroidserver/he/
Translation: F-Droid/F-Droid Server
2025-09-29 14:22:21 +02:00
ginger-co
3d39717d51
Translated using Weblate: Hebrew (he) by ginger-co <ginger_co@outlook.com>
Currently translated at 10.6% (62 of 582 strings)

Co-authored-by: ginger-co <ginger_co@outlook.com>
Translate-URL: https://hosted.weblate.org/projects/f-droid/fdroidserver/he/
Translation: F-Droid/F-Droid Server
2025-09-29 14:22:21 +02:00
Саша Петровић
234ce28cb5
Translated using Weblate: Serbian (sr) by Саша Петровић <salepetronije@gmail.com>
Currently translated at 99.8% (581 of 582 strings)

Translated using Weblate: Serbian (sr) by Саша Петровић <salepetronije@gmail.com>

Currently translated at 99.8% (581 of 582 strings)

Translated using Weblate: Serbian (sr) by Саша Петровић <salepetronije@gmail.com>

Currently translated at 99.8% (581 of 582 strings)

Translated using Weblate: Serbian (sr) by Саша Петровић <salepetronije@gmail.com>

Currently translated at 99.8% (581 of 582 strings)

Translated using Weblate: Serbian (sr) by Саша Петровић <salepetronije@gmail.com>

Currently translated at 99.8% (581 of 582 strings)

Translated using Weblate: Serbian (sr) by Саша Петровић <salepetronije@gmail.com>

Currently translated at 99.8% (581 of 582 strings)

Translated using Weblate: Serbian (sr) by Саша Петровић <salepetronije@gmail.com>

Currently translated at 99.8% (581 of 582 strings)

Co-authored-by: Саша Петровић <salepetronije@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/f-droid/fdroidserver/sr/
Translation: F-Droid/F-Droid Server
2025-09-29 14:22:20 +02:00
Mücteba
9d237d65a7
Translated using Weblate: Azerbaijani (az) by Mücteba <muctebanesiri@gmail.com>
Currently translated at 0.3% (2 of 582 strings)

Co-authored-by: Mücteba <muctebanesiri@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/f-droid/fdroidserver/az/
Translation: F-Droid/F-Droid Server
2025-09-29 14:22:20 +02:00
ssantos
6b290d5294
Translated using Weblate: Portuguese (pt) by ssantos <ssantos@web.de>
Currently translated at 100.0% (582 of 582 strings)

Translated using Weblate: Portuguese (Portugal) (pt_PT) by ssantos <ssantos@web.de>

Currently translated at 100.0% (582 of 582 strings)

Translated using Weblate: Portuguese (pt) by ssantos <ssantos@web.de>

Currently translated at 99.8% (581 of 582 strings)

Translated using Weblate: Portuguese (Portugal) (pt_PT) by ssantos <ssantos@web.de>

Currently translated at 99.8% (581 of 582 strings)

Co-authored-by: ssantos <ssantos@web.de>
Translate-URL: https://hosted.weblate.org/projects/f-droid/fdroidserver/pt/
Translate-URL: https://hosted.weblate.org/projects/f-droid/fdroidserver/pt_PT/
Translation: F-Droid/F-Droid Server
2025-09-29 14:22:19 +02:00
தமிழ்நேரம்
f96ba197e9
Translated using Weblate: Tamil (ta) by தமிழ்நேரம் <anishprabu.t@gmail.com>
Currently translated at 100.0% (582 of 582 strings)

Translated using Weblate: Tamil (ta) by தமிழ்நேரம் <anishprabu.t@gmail.com>

Currently translated at 100.0% (582 of 582 strings)

Translated using Weblate: Tamil (ta) by தமிழ்நேரம் <anishprabu.t@gmail.com>

Currently translated at 98.1% (571 of 582 strings)

Translated using Weblate: Tamil (ta) by தமிழ்நேரம் <anishprabu.t@gmail.com>

Currently translated at 98.1% (571 of 582 strings)

Translated using Weblate: Tamil (ta) by தமிழ்நேரம் <anishprabu.t@gmail.com>

Currently translated at 98.1% (571 of 582 strings)

Co-authored-by: தமிழ்நேரம் <anishprabu.t@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/f-droid/fdroidserver/ta/
Translation: F-Droid/F-Droid Server
2025-09-29 14:22:19 +02:00
Liner Seven
a5c0d9fb96
Translated using Weblate: Japanese (ja) by Liner Seven <linour7gmekiblo@gmail.com>
Currently translated at 100.0% (582 of 582 strings)

Translated using Weblate: Japanese (ja) by Liner Seven <linour7gmekiblo@gmail.com>

Currently translated at 100.0% (582 of 582 strings)

Translated using Weblate: Japanese (ja) by Liner Seven <linour7gmekiblo@gmail.com>

Currently translated at 100.0% (582 of 582 strings)

Translated using Weblate: Japanese (ja) by Liner Seven <linour7gmekiblo@gmail.com>

Currently translated at 100.0% (582 of 582 strings)

Co-authored-by: Liner Seven <linour7gmekiblo@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/f-droid/fdroidserver/ja/
Translation: F-Droid/F-Droid Server
2025-09-29 14:22:18 +02:00