]> git.ipfire.org Git - pakfire.git/log
pakfire.git
9 months agocli: build: No longer use the build logger
Michael Tremer [Sat, 5 Oct 2024 14:54:25 +0000 (14:54 +0000)] 
cli: build: No longer use the build logger

We have so many loggers and we need to remove a few...

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 months agoctx: Move the magic context to here
Michael Tremer [Sat, 5 Oct 2024 14:43:24 +0000 (14:43 +0000)] 
ctx: Move the magic context to here

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 months agopython: Remove build/mkimage/shell from the Pakfire object
Michael Tremer [Sat, 5 Oct 2024 14:35:50 +0000 (14:35 +0000)] 
python: Remove build/mkimage/shell from the Pakfire object

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 months agopython: Remove the build service implementation wrapper
Michael Tremer [Sat, 5 Oct 2024 14:32:08 +0000 (14:32 +0000)] 
python: Remove the build service implementation wrapper

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 months agopython: Remove the Python daemon implementation
Michael Tremer [Sat, 5 Oct 2024 14:28:57 +0000 (14:28 +0000)] 
python: Remove the Python daemon implementation

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 months agojob: Fix typo
Michael Tremer [Sat, 5 Oct 2024 14:28:31 +0000 (14:28 +0000)] 
job: Fix typo

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 months agojob: Send log messages to the build service
Michael Tremer [Sat, 5 Oct 2024 14:18:26 +0000 (14:18 +0000)] 
job: Send log messages to the build service

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 months agoutil: Implement adding strings with length to a JSON object
Michael Tremer [Sat, 5 Oct 2024 14:16:48 +0000 (14:16 +0000)] 
util: Implement adding strings with length to a JSON object

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 months agoxfer: Make the WebSocket send callback more sensible
Michael Tremer [Sat, 5 Oct 2024 13:41:54 +0000 (13:41 +0000)] 
xfer: Make the WebSocket send callback more sensible

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 months agojob: Buffer log lines in a ring buffer
Michael Tremer [Sat, 5 Oct 2024 13:30:34 +0000 (13:30 +0000)] 
job: Buffer log lines in a ring buffer

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 months agologging: Add a simple ring buffer for buffering log lines
Michael Tremer [Sat, 5 Oct 2024 13:29:42 +0000 (13:29 +0000)] 
logging: Add a simple ring buffer for buffering log lines

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 months agojob: Pipe any log output back to the parent process
Michael Tremer [Sat, 5 Oct 2024 12:41:37 +0000 (12:41 +0000)] 
job: Pipe any log output back to the parent process

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 months agojob: Create an own independant context for the child process
Michael Tremer [Sat, 5 Oct 2024 10:55:48 +0000 (10:55 +0000)] 
job: Create an own independant context for the child process

This prevents us to inherit anything from the parent process and allows
us to run a totally different configuration in the child.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 months agojob: Create scaffolding to run a build
Michael Tremer [Sat, 5 Oct 2024 10:49:56 +0000 (10:49 +0000)] 
job: Create scaffolding to run a build

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 months agojob: Fix replace error in flags
Michael Tremer [Fri, 4 Oct 2024 18:24:11 +0000 (18:24 +0000)] 
job: Fix replace error in flags

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 months agojob: Initialize Pakfire in the child process
Michael Tremer [Fri, 4 Oct 2024 18:09:06 +0000 (18:09 +0000)] 
job: Initialize Pakfire in the child process

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 months agojobs: Have them monitor themselves and update their state
Michael Tremer [Fri, 4 Oct 2024 17:50:29 +0000 (17:50 +0000)] 
jobs: Have them monitor themselves and update their state

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 months agojobs: Automatically launch jobs once it has connected to the build service
Michael Tremer [Fri, 4 Oct 2024 17:41:24 +0000 (17:41 +0000)] 
jobs: Automatically launch jobs once it has connected to the build service

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 months agojob: Show what job we are connecting to
Michael Tremer [Fri, 4 Oct 2024 17:33:23 +0000 (17:33 +0000)] 
job: Show what job we are connecting to

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 months agoxfer: Should more detail when a transfer fails
Michael Tremer [Fri, 4 Oct 2024 17:29:56 +0000 (17:29 +0000)] 
xfer: Should more detail when a transfer fails

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 months agodaemon: Rename workers to jobs
Michael Tremer [Fri, 4 Oct 2024 17:08:47 +0000 (17:08 +0000)] 
daemon: Rename workers to jobs

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 months agodaemon: Remove the worker's own HTTP client and event loop
Michael Tremer [Fri, 4 Oct 2024 16:45:39 +0000 (16:45 +0000)] 
daemon: Remove the worker's own HTTP client and event loop

It makes no sense to duplicate so much code, so the control connection
of the worker will have to run in the main process, too.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 months agoworker: Store a reference to the daemon's HTTP client
Michael Tremer [Fri, 4 Oct 2024 16:01:22 +0000 (16:01 +0000)] 
worker: Store a reference to the daemon's HTTP client

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 months agoworker: Fetch the daemon's event loop
Michael Tremer [Fri, 4 Oct 2024 15:53:59 +0000 (15:53 +0000)] 
worker: Fetch the daemon's event loop

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 months agodaemon: Terminate all workers when terminating
Michael Tremer [Fri, 4 Oct 2024 15:40:29 +0000 (15:40 +0000)] 
daemon: Terminate all workers when terminating

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 months agoworker: Initialize the event loop and cURL in the child process
Michael Tremer [Fri, 4 Oct 2024 14:20:37 +0000 (14:20 +0000)] 
worker: Initialize the event loop and cURL in the child process

cURL is not multi-threaded and so to avoid any problems, we will
initialize everything in the forked child process.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 months agoworker: Establish a control connection
Michael Tremer [Fri, 4 Oct 2024 13:47:40 +0000 (13:47 +0000)] 
worker: Establish a control connection

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 months agobuildservice: Use new URL formatting feature
Michael Tremer [Fri, 4 Oct 2024 13:32:29 +0000 (13:32 +0000)] 
buildservice: Use new URL formatting feature

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 months agoxfer: Make it easier to format URLs
Michael Tremer [Fri, 4 Oct 2024 13:23:01 +0000 (13:23 +0000)] 
xfer: Make it easier to format URLs

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 months agoworker: Create our own event loop and HTTP client
Michael Tremer [Fri, 4 Oct 2024 12:59:41 +0000 (12:59 +0000)] 
worker: Create our own event loop and HTTP client

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 months agodaemon: Connect the worker with the daemon
Michael Tremer [Fri, 4 Oct 2024 12:41:30 +0000 (12:41 +0000)] 
daemon: Connect the worker with the daemon

The daemon will now process when the worker exits and at least clean up.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
10 months agoutil: Move the clone3() wrapper
Michael Tremer [Sun, 15 Sep 2024 04:56:35 +0000 (04:56 +0000)] 
util: Move the clone3() wrapper

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
10 months agodaemon: Fix format of the stats message
Michael Tremer [Sun, 15 Sep 2024 04:50:29 +0000 (04:50 +0000)] 
daemon: Fix format of the stats message

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
10 months agodaemon: Enable stat submission only when we have a control connection
Michael Tremer [Sun, 15 Sep 2024 04:38:33 +0000 (04:38 +0000)] 
daemon: Enable stat submission only when we have a control connection

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
10 months agodaemon: Build out submitting stats
Michael Tremer [Sun, 15 Sep 2024 04:17:18 +0000 (04:17 +0000)] 
daemon: Build out submitting stats

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
10 months agoutil: Add JSON helper function for unsigned integers
Michael Tremer [Sun, 15 Sep 2024 04:15:53 +0000 (04:15 +0000)] 
util: Add JSON helper function for unsigned integers

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
10 months agoutil: Rename JSON function to add integers to int64
Michael Tremer [Sun, 15 Sep 2024 04:12:44 +0000 (04:12 +0000)] 
util: Rename JSON function to add integers to int64

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
10 months agoutil: Add new helper function to add double values to JSON objects
Michael Tremer [Sun, 15 Sep 2024 04:12:09 +0000 (04:12 +0000)] 
util: Add new helper function to add double values to JSON objects

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
10 months agoutil: Don't require a reference to pakfire for the JSON functions
Michael Tremer [Sun, 15 Sep 2024 04:03:50 +0000 (04:03 +0000)] 
util: Don't require a reference to pakfire for the JSON functions

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
10 months ago_pakfire: buildservice: Remove submit_stats()
Michael Tremer [Sun, 15 Sep 2024 03:40:57 +0000 (03:40 +0000)] 
_pakfire: buildservice: Remove submit_stats()

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
10 months agodaemon: Keep the stats timer running continuously
Michael Tremer [Sun, 15 Sep 2024 03:40:34 +0000 (03:40 +0000)] 
daemon: Keep the stats timer running continuously

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
10 months agodaemon: Send dummy stats using the event loop
Michael Tremer [Sun, 15 Sep 2024 03:37:33 +0000 (03:37 +0000)] 
daemon: Send dummy stats using the event loop

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
10 months agoxfer: Implement sending a WebSocket message
Michael Tremer [Sun, 15 Sep 2024 03:36:58 +0000 (03:36 +0000)] 
xfer: Implement sending a WebSocket message

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
10 months agobuildservice: Remove the event loop
Michael Tremer [Sun, 15 Sep 2024 03:20:47 +0000 (03:20 +0000)] 
buildservice: Remove the event loop

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
10 months agodaemon: Remove the buildservice
Michael Tremer [Sun, 15 Sep 2024 03:15:34 +0000 (03:15 +0000)] 
daemon: Remove the buildservice

It is becoming too complicated to make the buildservice event-driven
when it does not need to be. It can live as a single request abstraction
model.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
10 months agobuildservice: Remove holding the base URL
Michael Tremer [Sun, 15 Sep 2024 02:54:01 +0000 (02:54 +0000)] 
buildservice: Remove holding the base URL

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
10 months agohttpclient: Set the base URL for new xfers
Michael Tremer [Sun, 15 Sep 2024 02:53:19 +0000 (02:53 +0000)] 
httpclient: Set the base URL for new xfers

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
10 months agohttpclient: Add option to set a base URL
Michael Tremer [Sun, 15 Sep 2024 02:52:53 +0000 (02:52 +0000)] 
httpclient: Add option to set a base URL

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
10 months agodaemon: Submit stats regularly
Michael Tremer [Sun, 15 Sep 2024 02:37:17 +0000 (02:37 +0000)] 
daemon: Submit stats regularly

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
10 months agobuildservice: Tidy up creating the daemon control connection
Michael Tremer [Sun, 15 Sep 2024 02:36:36 +0000 (02:36 +0000)] 
buildservice: Tidy up creating the daemon control connection

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
10 months agobuildservice: Enable authentication when uploading the payload
Michael Tremer [Sun, 15 Sep 2024 02:16:01 +0000 (02:16 +0000)] 
buildservice: Enable authentication when uploading the payload

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agodaemon: Register any workers
Michael Tremer [Tue, 13 Aug 2024 19:36:31 +0000 (19:36 +0000)] 
daemon: Register any workers

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agodaemon: Split stuff into a new worker thing
Michael Tremer [Tue, 13 Aug 2024 19:29:55 +0000 (19:29 +0000)] 
daemon: Split stuff into a new worker thing

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agoxfer: Ignore CURLE_AGAIN
Michael Tremer [Tue, 13 Aug 2024 19:11:03 +0000 (19:11 +0000)] 
xfer: Ignore CURLE_AGAIN

This is happening when the server is sending a ping over WebSocket which
triggers the socket, but there is no data for us to deal with as it has
already been handled by cURL.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agoxfer: Fail if the connection was unexpectedly closed
Michael Tremer [Tue, 13 Aug 2024 18:54:15 +0000 (18:54 +0000)] 
xfer: Fail if the connection was unexpectedly closed

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agoxfer: Free the allocated buffer
Michael Tremer [Tue, 13 Aug 2024 18:53:56 +0000 (18:53 +0000)] 
xfer: Free the allocated buffer

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agodaemon: Parse the received job
Michael Tremer [Tue, 13 Aug 2024 18:47:55 +0000 (18:47 +0000)] 
daemon: Parse the received job

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agodaemon: Automatically try to reconnect when the connection gets lost
Michael Tremer [Tue, 13 Aug 2024 18:04:29 +0000 (18:04 +0000)] 
daemon: Automatically try to reconnect when the connection gets lost

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agoxfer: Refactor handling any transfer problems and call the close callback
Michael Tremer [Tue, 13 Aug 2024 17:32:26 +0000 (17:32 +0000)] 
xfer: Refactor handling any transfer problems and call the close callback

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agobuildservice: Move daemon stuff to the daemon
Michael Tremer [Tue, 13 Aug 2024 17:18:05 +0000 (17:18 +0000)] 
buildservice: Move daemon stuff to the daemon

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agohttpclient: Implement basic WebSocket communication
Michael Tremer [Tue, 13 Aug 2024 16:54:58 +0000 (16:54 +0000)] 
httpclient: Implement basic WebSocket communication

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agoxfer: Send authentication headers straight away when asked to
Michael Tremer [Mon, 12 Aug 2024 17:23:14 +0000 (17:23 +0000)] 
xfer: Send authentication headers straight away when asked to

We don't need to check whether the server does not require
authentication first.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agobuildservice: Allow passing the event loop to the HTTP client
Michael Tremer [Mon, 12 Aug 2024 15:02:01 +0000 (15:02 +0000)] 
buildservice: Allow passing the event loop to the HTTP client

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agohttpclient: Remove queueing our own transfers
Michael Tremer [Mon, 12 Aug 2024 14:23:31 +0000 (14:23 +0000)] 
httpclient: Remove queueing our own transfers

We now throw everything into cURL and let it handle all of that...

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agohttpclient: Tell cURL how many transfers we want to run in parallel
Michael Tremer [Mon, 12 Aug 2024 14:10:40 +0000 (14:10 +0000)] 
httpclient: Tell cURL how many transfers we want to run in parallel

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agohttpclient: Register the progress with the client
Michael Tremer [Mon, 12 Aug 2024 10:48:44 +0000 (10:48 +0000)] 
httpclient: Register the progress with the client

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agohttpclient: Implement parallel transfers with sd-events
Michael Tremer [Sat, 10 Aug 2024 17:33:41 +0000 (17:33 +0000)] 
httpclient: Implement parallel transfers with sd-events

This patch will create a new event loop for each HTTP client which will
be used to connect to cURL.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agodaemon: Use the systemd event loop instead of epoll
Michael Tremer [Sat, 10 Aug 2024 12:28:39 +0000 (12:28 +0000)] 
daemon: Use the systemd event loop instead of epoll

This will allow us more flexiblity and already implements a lot of
features.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agoMakefile: Build the C daemon again
Michael Tremer [Sat, 10 Aug 2024 12:27:25 +0000 (12:27 +0000)] 
Makefile: Build the C daemon again

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agodaemon: Fix typo
Michael Tremer [Sat, 10 Aug 2024 12:27:01 +0000 (12:27 +0000)] 
daemon: Fix typo

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomount: Remove the excessive parameter passing
Michael Tremer [Sat, 10 Aug 2024 12:12:20 +0000 (12:12 +0000)] 
mount: Remove the excessive parameter passing

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agodeps: Revert all the braindead logging changes
Michael Tremer [Sat, 10 Aug 2024 12:00:41 +0000 (12:00 +0000)] 
deps: Revert all the braindead logging changes

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agologging: Add convenience functions to call the logger without having a context
Michael Tremer [Sat, 10 Aug 2024 11:40:22 +0000 (11:40 +0000)] 
logging: Add convenience functions to call the logger without having a context

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomount: Loop devices are actually block devices
Michael Tremer [Sat, 10 Aug 2024 11:30:53 +0000 (11:30 +0000)] 
mount: Loop devices are actually block devices

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
18 months agologging: Remove *_ERRNO logging
Michael Tremer [Tue, 30 Jan 2024 19:02:37 +0000 (19:02 +0000)] 
logging: Remove *_ERRNO logging

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
18 months agopwd: Remove legacy logger
Michael Tremer [Tue, 30 Jan 2024 18:45:16 +0000 (18:45 +0000)] 
pwd: Remove legacy logger

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
18 months agocompress: Remove legacy logger
Michael Tremer [Mon, 29 Jan 2024 18:12:14 +0000 (18:12 +0000)] 
compress: Remove legacy logger

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
18 months agomount: Remove the legacy logger
Michael Tremer [Mon, 29 Jan 2024 18:02:54 +0000 (18:02 +0000)] 
mount: Remove the legacy logger

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
18 months agofile: Remove the legacy logger
Michael Tremer [Mon, 29 Jan 2024 17:50:22 +0000 (17:50 +0000)] 
file: Remove the legacy logger

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
18 months agodependencies: Drop the legacy logger
Michael Tremer [Mon, 29 Jan 2024 17:46:09 +0000 (17:46 +0000)] 
dependencies: Drop the legacy logger

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
18 months agoproblem: Store a reference to the context
Michael Tremer [Mon, 29 Jan 2024 17:45:13 +0000 (17:45 +0000)] 
problem: Store a reference to the context

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
18 months agoparser: Store a reference to the context
Michael Tremer [Mon, 29 Jan 2024 17:42:33 +0000 (17:42 +0000)] 
parser: Store a reference to the context

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
18 months agolibpakfire: db: Replace legacy logger
Michael Tremer [Mon, 29 Jan 2024 17:15:31 +0000 (17:15 +0000)] 
libpakfire: db: Replace legacy logger

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
18 months agobuild: Replace (most of) the legacy logger
Michael Tremer [Mon, 29 Jan 2024 17:05:11 +0000 (17:05 +0000)] 
build: Replace (most of) the legacy logger

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
18 months agologging: Make the legacy logger configurable
Michael Tremer [Mon, 29 Jan 2024 16:56:47 +0000 (16:56 +0000)] 
logging: Make the legacy logger configurable

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
18 months agolibpakfire: Move to new logging in pakfire.c
Michael Tremer [Mon, 29 Jan 2024 16:49:22 +0000 (16:49 +0000)] 
libpakfire: Move to new logging in pakfire.c

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
18 months agopython: Make sure we hold the GIL when jumping into the logging callback
Michael Tremer [Mon, 29 Jan 2024 10:54:19 +0000 (10:54 +0000)] 
python: Make sure we hold the GIL when jumping into the logging callback

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
18 months agotests: Re-enable jail tests that pass
Michael Tremer [Fri, 26 Jan 2024 18:59:18 +0000 (18:59 +0000)] 
tests: Re-enable jail tests that pass

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
18 months agopython: Pakfire.execute(): Fix parsing some arguments
Michael Tremer [Fri, 26 Jan 2024 18:55:14 +0000 (18:55 +0000)] 
python: Pakfire.execute(): Fix parsing some arguments

There have been a couple of problems here when no or invalid values have
been passed.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
18 months agotests: Fix path to test configuration file
Michael Tremer [Fri, 26 Jan 2024 18:44:22 +0000 (18:44 +0000)] 
tests: Fix path to test configuration file

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
18 months agotests: Test the locally built binaries
Michael Tremer [Fri, 26 Jan 2024 18:38:55 +0000 (18:38 +0000)] 
tests: Test the locally built binaries

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
18 months agotests: Dump log onto the console for Python tests
Michael Tremer [Fri, 26 Jan 2024 18:27:42 +0000 (18:27 +0000)] 
tests: Dump log onto the console for Python tests

This is not very elegant, but I don't have a better way to do this now.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
18 months agopython: Add tests for the Archive class
Michael Tremer [Fri, 26 Jan 2024 18:11:40 +0000 (18:11 +0000)] 
python: Add tests for the Archive class

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
18 months agotests: Add functions to make opening files in the test env easier
Michael Tremer [Thu, 25 Jan 2024 18:20:22 +0000 (18:20 +0000)] 
tests: Add functions to make opening files in the test env easier

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
18 months agotests: Add Python tests for context
Michael Tremer [Thu, 25 Jan 2024 16:44:56 +0000 (16:44 +0000)] 
tests: Add Python tests for context

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
18 months agopython: ctx: Cleanup code that dereferences the logging function
Michael Tremer [Thu, 25 Jan 2024 16:43:47 +0000 (16:43 +0000)] 
python: ctx: Cleanup code that dereferences the logging function

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
18 months agopython: ctx: Setup the default logger
Michael Tremer [Thu, 25 Jan 2024 16:41:11 +0000 (16:41 +0000)] 
python: ctx: Setup the default logger

There was some code that started implementing this, but weirdly it was
never called...

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
18 months agotests: Disable all jail tests
Michael Tremer [Thu, 25 Jan 2024 16:08:05 +0000 (16:08 +0000)] 
tests: Disable all jail tests

Those mess up the console.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
18 months agotests: Migrate other Python tests to the new framework
Michael Tremer [Thu, 25 Jan 2024 16:04:44 +0000 (16:04 +0000)] 
tests: Migrate other Python tests to the new framework

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
18 months agotests: Build a common basis for Python tests
Michael Tremer [Thu, 25 Jan 2024 16:01:09 +0000 (16:01 +0000)] 
tests: Build a common basis for Python tests

This new class has some methods that make it easy for us to set up some
simple Pakfire environments.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>