]>
git.ipfire.org Git - pbs.git/log
Michael Tremer [Thu, 13 Oct 2022 15:38:14 +0000 (15:38 +0000)]
jobs: Propagate to the build that a job has finished
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 15:37:44 +0000 (15:37 +0000)]
jobs: Update builds job cache after cloning
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 15:37:05 +0000 (15:37 +0000)]
jobs: Fix saying what we are cloning
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 15:36:35 +0000 (15:36 +0000)]
jobs: Use the same interface to check if failed
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 15:20:20 +0000 (15:20 +0000)]
jobs: Only send emails on fail
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 15:12:51 +0000 (15:12 +0000)]
users: Rename send_template() to send_email()
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 15:05:59 +0000 (15:05 +0000)]
tests: Pretend to run a whole build
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 15:05:23 +0000 (15:05 +0000)]
jobs: Take some packages when the job finished
... and pretend to import them...
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 15:04:50 +0000 (15:04 +0000)]
builds: Don't call send_finished_message() for now
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 15:04:17 +0000 (15:04 +0000)]
jobs: Rename start() to assign()
This is more like what this function does
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 14:24:12 +0000 (14:24 +0000)]
sources: Remove print statement for debugging
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 13:38:47 +0000 (13:38 +0000)]
log: Allow filtering by user
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 13:31:00 +0000 (13:31 +0000)]
web: Drop an unused handler
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 13:29:58 +0000 (13:29 +0000)]
web: Fix log page
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 13:25:30 +0000 (13:25 +0000)]
bugtracker: Fix rendering texts
The bug_url() function was missing.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 13:02:39 +0000 (13:02 +0000)]
tests: Test build comments
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 13:02:24 +0000 (13:02 +0000)]
builds: Stop using removed get_watchers() function
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 13:02:09 +0000 (13:02 +0000)]
builds: Fix submitting comments
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 10:48:29 +0000 (10:48 +0000)]
Update translations
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 10:46:54 +0000 (10:46 +0000)]
web: Drop more unused UI modules
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 10:42:04 +0000 (10:42 +0000)]
Drop old logging stuff
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 10:33:59 +0000 (10:33 +0000)]
events: Add build watchers
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 10:20:19 +0000 (10:20 +0000)]
events: Make using the UI module easier
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 10:18:20 +0000 (10:18 +0000)]
events: Include build comments
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 10:01:16 +0000 (10:01 +0000)]
events: Reorder the view to make it easier to extend
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 09:50:40 +0000 (09:50 +0000)]
events: Create a unified way to query for any events
This might result in a temporary monster view, but I hope that the
optimiser is smart enough to avoid running any unncessary parts.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 09:50:10 +0000 (09:50 +0000)]
builds: Fix rendering comments
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 09:31:01 +0000 (09:31 +0000)]
builds: Add dummy function to add watchers
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 09:26:30 +0000 (09:26 +0000)]
builds: Drop obsolete update state logic
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 09:04:08 +0000 (09:04 +0000)]
builds: Refactor comments
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 08:40:32 +0000 (08:40 +0000)]
builders: Drop unused password hashing functions
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 08:36:07 +0000 (08:36 +0000)]
Drop all all history stuff
This is too complicated to maintain
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 18:09:52 +0000 (18:09 +0000)]
builds: Refactor watchers
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 17:54:38 +0000 (17:54 +0000)]
tests: Check whether we can add a watcher to a build
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 17:51:00 +0000 (17:51 +0000)]
tests: Create build from source package
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 17:40:50 +0000 (17:40 +0000)]
tests: Test importing a source package
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 17:31:22 +0000 (17:31 +0000)]
tests: Add some tests for builds
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 17:30:57 +0000 (17:30 +0000)]
builds: Add check to prevent building binary packages
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 17:19:08 +0000 (17:19 +0000)]
tests: Add tests for builders
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 17:09:35 +0000 (17:09 +0000)]
backend: Stop reading the system configuration file
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 17:05:53 +0000 (17:05 +0000)]
backend: Drop reading any configuration from the environment
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 17:02:46 +0000 (17:02 +0000)]
config: Move basepath into [global] section
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 16:58:51 +0000 (16:58 +0000)]
database: Setup correct logging
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 16:57:10 +0000 (16:57 +0000)]
logging: Correctly set up loggers for all submodules
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 16:56:39 +0000 (16:56 +0000)]
hub: Use the root logger (which is set up by tornado)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 16:47:34 +0000 (16:47 +0000)]
logging: Correctly setup backend logger
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 16:37:13 +0000 (16:37 +0000)]
builds: Fix fetching builds by ID
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 16:35:48 +0000 (16:35 +0000)]
builds: Avoid extra query when fetching builds by UUID
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 16:35:35 +0000 (16:35 +0000)]
tests: Fix directory listing
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 16:25:33 +0000 (16:25 +0000)]
tests: Enable the default distro for some architectures
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 16:23:33 +0000 (16:23 +0000)]
tests: Create default objects in a single database transaction
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 16:17:57 +0000 (16:17 +0000)]
tests: Add tests for packages
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 15:57:23 +0000 (15:57 +0000)]
tests: Add an archive file
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 15:43:23 +0000 (15:43 +0000)]
repos: Fix logger
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 15:41:42 +0000 (15:41 +0000)]
uploads: Make sure the parent directory exists
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 15:41:26 +0000 (15:41 +0000)]
tests: Add tests for uploads
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 15:38:02 +0000 (15:38 +0000)]
tests: Create a default test user
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 15:19:43 +0000 (15:19 +0000)]
backend: Take a basepath
The entire filesystem structure will be based on this path, so that we
will be able to create test environments which we can easily destroy
again.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 14:53:25 +0000 (14:53 +0000)]
tests: Test writing repositories
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 14:48:58 +0000 (14:48 +0000)]
tests: Check default repository
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 14:46:14 +0000 (14:46 +0000)]
tests: Create some basic objects during setup
This is easier than the on-demand initialization for async objects
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 14:41:12 +0000 (14:41 +0000)]
tests: Add some basic repo tests
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 14:27:02 +0000 (14:27 +0000)]
tests: Add tests for distros
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 14:24:46 +0000 (14:24 +0000)]
distros: Implement creating new distros
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 14:20:48 +0000 (14:20 +0000)]
tests: Flush the test configuration to disk
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 13:56:40 +0000 (13:56 +0000)]
po: Remove location from all source files
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 13:54:45 +0000 (13:54 +0000)]
Makefile: Automatically update POTFILES.in
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 13:46:23 +0000 (13:46 +0000)]
test: Add scaffolding for a testsuite for the backend
I suppose it is very hard to test the frontend part, but that is not the
highest priority.
It would already be very helpful to test the backend parts.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 13:44:17 +0000 (13:44 +0000)]
config: Make distro optional
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 13:43:52 +0000 (13:43 +0000)]
backend: Use the general configparser
SafeConfigParser has been deprecated.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 13:36:05 +0000 (13:36 +0000)]
db: Dump schema without any owner information
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 10:48:23 +0000 (10:48 +0000)]
backend: Move composing a Pakfire configuration file into its own class
This will help us to create consistent configuration files for Pakfire
and since this is now a context manager class, we will be able to
quickly jump into a local instance to execute any tasks.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 10:47:17 +0000 (10:47 +0000)]
repos: Use configparser to create configuration
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 11 Oct 2022 11:31:56 +0000 (11:31 +0000)]
packages: Store digest in binary format
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 10 Oct 2022 13:34:22 +0000 (13:34 +0000)]
auth: Don't send server response for websocket handlers
WebSocket connections don't allow us to set any headers and we cannot
validate them on the client side either.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 10 Oct 2022 13:33:52 +0000 (13:33 +0000)]
auth: Allow to configure only authenticating builders
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 6 Oct 2022 18:47:54 +0000 (18:47 +0000)]
jobs: Export any keys to the builders
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 6 Oct 2022 18:40:38 +0000 (18:40 +0000)]
repos: Add key URL to repository configuration
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 6 Oct 2022 18:36:30 +0000 (18:36 +0000)]
keys: Create some decent repr()
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 6 Oct 2022 18:36:16 +0000 (18:36 +0000)]
repos: Automatically rotate keys
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 6 Oct 2022 17:51:07 +0000 (17:51 +0000)]
keys: Add convenience function to determine whether a key has expired
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 6 Oct 2022 17:39:16 +0000 (17:39 +0000)]
keys: Add scaffolding for revocation
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 6 Oct 2022 17:34:38 +0000 (17:34 +0000)]
repos: Make keys mandatory for all repositories
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 6 Oct 2022 17:32:13 +0000 (17:32 +0000)]
repos: Redirect to the right place after creating a repo
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 6 Oct 2022 17:31:38 +0000 (17:31 +0000)]
repositories: Generate a new own key
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 6 Oct 2022 16:11:14 +0000 (16:11 +0000)]
Revert "distros: Add a key to each distribution"
This reverts commit
ce83dae7b3208e10cc11496a816343d49ad1e377 .
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 6 Oct 2022 16:10:35 +0000 (16:10 +0000)]
Revert "users: Add a key for each user"
This reverts commit
ab655b6c25393e0e2f6e55ac9939e48fe11aaa86 .
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 6 Oct 2022 14:41:15 +0000 (14:41 +0000)]
repos: Create a key for each repository
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 6 Oct 2022 14:41:01 +0000 (14:41 +0000)]
keys: Add a dummy function to create subkeys
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 6 Oct 2022 14:40:42 +0000 (14:40 +0000)]
users: Add a key for each user
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 6 Oct 2022 14:39:56 +0000 (14:39 +0000)]
distros: Add a key to each distribution
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 6 Oct 2022 14:38:27 +0000 (14:38 +0000)]
db: Update schema for new keys
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 6 Oct 2022 14:12:51 +0000 (14:12 +0000)]
repos: Make creating a new repository an async operation
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 6 Oct 2022 14:10:26 +0000 (14:10 +0000)]
keys: Drop any frontend stuff for keys
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 6 Oct 2022 14:01:58 +0000 (14:01 +0000)]
keys: Refactor generating keys
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 6 Oct 2022 13:39:23 +0000 (13:39 +0000)]
backend: Allow creating Pakfire instances without any configuration
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 6 Oct 2022 10:18:36 +0000 (10:18 +0000)]
keys: Refactor reading them from the database
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 6 Oct 2022 10:10:57 +0000 (10:10 +0000)]
users: Move any extra permissions into the users table
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 6 Oct 2022 10:06:55 +0000 (10:06 +0000)]
users: Make the permissions model more similar to the other objects
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 6 Oct 2022 10:06:21 +0000 (10:06 +0000)]
mirrors: Introduce permissions model
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>