]>
git.ipfire.org Git - pbs.git/log
Michael Tremer [Wed, 19 Oct 2022 00:11:17 +0000 (00:11 +0000)]
CSS: Add Bulma
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 18:55:31 +0000 (18:55 +0000)]
builds: Use correct variable for the distribution
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 18:55:14 +0000 (18:55 +0000)]
packages: Add forgotten decorator to distro property
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 18:23:01 +0000 (18:23 +0000)]
errors: Forgot to commit this file
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 18:22:30 +0000 (18:22 +0000)]
hub: Require a repository when a new build is created
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 18:15:33 +0000 (18:15 +0000)]
repos: Use the correct URL in configuration files
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 18:14:00 +0000 (18:14 +0000)]
repos: Drop summary
This was badly auto-generated.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 18:13:40 +0000 (18:13 +0000)]
repos: Use the name in the configuration file
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 18:10:33 +0000 (18:10 +0000)]
repos: Fix rendering configuration file
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 18:09:47 +0000 (18:09 +0000)]
repos: Fix determining the repository size
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 18:01:50 +0000 (18:01 +0000)]
hub: Extract the distribution from package
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 18:01:31 +0000 (18:01 +0000)]
packages: Fetch distribution from package
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 18:00:35 +0000 (18:00 +0000)]
constants: Remove unused import of os.path
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 17:12:57 +0000 (17:12 +0000)]
jobs: Import packages when the job finishes
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 17:06:30 +0000 (17:06 +0000)]
packages: Create packages from uploads only
This avoids a lot of code duplication
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 17:06:13 +0000 (17:06 +0000)]
tests: Fix creating uploads
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 16:56:05 +0000 (16:56 +0000)]
hub: Associate uploads builds with their owner
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 16:55:45 +0000 (16:55 +0000)]
hub: Check permissions for uploads before using them
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 16:41:37 +0000 (16:41 +0000)]
uploads: Improve buffering for smaller chunk sizes
Apache uses a chunk size of 8 KiB which I cannot change.
This results in us creating a lof of overhead when receiving large
uploads because opening and closing the temporary file that often is not
feasible.
Blocking is not feasible either.
Therefore, the Upload class is now implemening another buffer mechanism
so that we will only have to flush the data to disk once we reached a
megabyte.
This patch will increase memory consumption of the hub (especially with
many simultaneous uploads), but it is truly non-blocking.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 14:39:46 +0000 (14:39 +0000)]
tests: uploads: Add a test for quotas
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 14:35:14 +0000 (14:35 +0000)]
tests: uploads: Add some more tests
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 14:34:54 +0000 (14:34 +0000)]
uploads: Refactor so that we won't duplicate any data
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 13:39:44 +0000 (13:39 +0000)]
tests: Test the unlink function
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 13:39:26 +0000 (13:39 +0000)]
backend: Make unlink() safer and tidier
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 13:21:49 +0000 (13:21 +0000)]
tests: package: Activate part that checks if a package has been removed
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 13:10:34 +0000 (13:10 +0000)]
tests: packages: Test accessing filelists
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 12:24:59 +0000 (12:24 +0000)]
web: packages: Update files listing
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 12:24:50 +0000 (12:24 +0000)]
packages: Fix creating File objects
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 12:21:15 +0000 (12:21 +0000)]
packages: Remove friendly_name which is no longer being used
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 12:19:02 +0000 (12:19 +0000)]
packages: Actually unlink the package and clear the path
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 12:16:28 +0000 (12:16 +0000)]
builds/jobs/packages: Pass on the deleting user
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 12:15:29 +0000 (12:15 +0000)]
packages: Make deleting them similar to deleting builds/jobs
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 17 Oct 2022 18:02:53 +0000 (18:02 +0000)]
packages: Drop properties
We probably need something very similar, but we won't need it right now.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 17 Oct 2022 17:53:20 +0000 (17:53 +0000)]
packages: Rename filelists table
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 17 Oct 2022 17:39:16 +0000 (17:39 +0000)]
jobs: Avoid double-calling Pakfire
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 17 Oct 2022 17:35:21 +0000 (17:35 +0000)]
uploads: Don't fail if the upload directory already existed
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 17 Oct 2022 17:35:10 +0000 (17:35 +0000)]
jobs: Call the correct function to delete any logs
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 17 Oct 2022 17:27:37 +0000 (17:27 +0000)]
backend: Fix opening package files
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 17 Oct 2022 17:23:47 +0000 (17:23 +0000)]
packages: Fix fetching all related builds
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 17 Oct 2022 17:22:15 +0000 (17:22 +0000)]
search: Make search for filenames more sane
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 17 Oct 2022 17:12:32 +0000 (17:12 +0000)]
builds: Drop old state/manage handlers
I have no idea what these are doing now and how to implement them
again...
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 17 Oct 2022 17:08:46 +0000 (17:08 +0000)]
web: Drop unused schedule test build template
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 17 Oct 2022 17:05:17 +0000 (17:05 +0000)]
jobs: Delete the log file on delete
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 17 Oct 2022 16:59:49 +0000 (16:59 +0000)]
builds: Delete all jobs concurrently
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 17 Oct 2022 16:58:02 +0000 (16:58 +0000)]
builds/jobs: Make the delete function asynchronous
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 17 Oct 2022 16:54:51 +0000 (16:54 +0000)]
jobs: Implement deleting a job
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 17 Oct 2022 16:44:50 +0000 (16:44 +0000)]
events: Show build information (if available)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 17 Oct 2022 16:33:35 +0000 (16:33 +0000)]
events: Create an event for deleted builds
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 17 Oct 2022 16:24:02 +0000 (16:24 +0000)]
tests: Test deleting builds
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 17 Oct 2022 16:23:48 +0000 (16:23 +0000)]
builds: Implement len() to count how many builds there are
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 17 Oct 2022 16:14:33 +0000 (16:14 +0000)]
builds: Don't show any deleted builds
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 17 Oct 2022 16:12:39 +0000 (16:12 +0000)]
builds: Store timestamp when a build is being deleted
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 17 Oct 2022 16:03:38 +0000 (16:03 +0000)]
builds: Add UI to delete builds
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 17 Oct 2022 15:38:18 +0000 (15:38 +0000)]
builds: Use correct base class for ShowHandler
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 17 Oct 2022 15:37:57 +0000 (15:37 +0000)]
builds: Fix exception when trying to remove a user which is not a watcher
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 17 Oct 2022 15:37:39 +0000 (15:37 +0000)]
builds: Add new watcher handlers
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 17 Oct 2022 15:37:09 +0000 (15:37 +0000)]
CSS: Enable regular icons
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 17 Oct 2022 15:36:51 +0000 (15:36 +0000)]
builds: Drop old watcher handlers
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 17:52:39 +0000 (17:52 +0000)]
web: Drop loading unused math module
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 17:50:04 +0000 (17:50 +0000)]
web: Drop build headline module
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 17:47:45 +0000 (17:47 +0000)]
web: Drop more unused variables from template namespace
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 17:46:17 +0000 (17:46 +0000)]
web: Drop unused friendly_time function
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 17:44:38 +0000 (17:44 +0000)]
web: Drop locale selection module
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 17:43:04 +0000 (17:43 +0000)]
users: Drop any timezone stuff
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 17:36:09 +0000 (17:36 +0000)]
jobs: Remove old failed marker
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 17:33:32 +0000 (17:33 +0000)]
tests: Mark that we are in test mode and disable LDAP stuff
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 17:27:47 +0000 (17:27 +0000)]
packages: Use get_by_email to find maintainers
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 17:27:21 +0000 (17:27 +0000)]
users: Make get_by_email tolerate any stuff around email addresses
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 17:22:37 +0000 (17:22 +0000)]
tests: Add some dummy data for test user
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 17:05:52 +0000 (17:05 +0000)]
users: Refactor fetching any user data from LDAP
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 14:25:38 +0000 (14:25 +0000)]
users: Require email address when the user is created
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 14:23:58 +0000 (14:23 +0000)]
tests: Only print the actual message
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 14:23:46 +0000 (14:23 +0000)]
tests: Add test that tries to send an email
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 14:23:22 +0000 (14:23 +0000)]
users: Send a welcome email on registration
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 14:22:01 +0000 (14:22 +0000)]
tests: Assign an email address to the test user
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 14:21:24 +0000 (14:21 +0000)]
users: Correct use the email class
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 14:19:52 +0000 (14:19 +0000)]
messages: Add __len__ to Queue class
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 14:06:55 +0000 (14:06 +0000)]
mesages: Add To: header to all emails
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 14:03:13 +0000 (14:03 +0000)]
messages: Refactor rendering messages
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 13:53:44 +0000 (13:53 +0000)]
messages: Iterating over the queue will return all unsent messages
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 13:23:28 +0000 (13:23 +0000)]
messages: Use a client certificate to send any emails
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 13:23:11 +0000 (13:23 +0000)]
settings: Fix syntax error in SQL statement
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 13:11:59 +0000 (13:11 +0000)]
message: Move queuing logic out of the base class
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 12:50:37 +0000 (12:50 +0000)]
messages: Add logger
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 12:49:39 +0000 (12:49 +0000)]
messages: Format emails in UTF-8
And don't encode the body as base64.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 12:46:41 +0000 (12:46 +0000)]
static: Drop dead symlink
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 12:45:20 +0000 (12:45 +0000)]
tests: Dump any messages in the queue
This is mainly useful for manual debugging
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 12:44:57 +0000 (12:44 +0000)]
builds: Unify failure/finished methods
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 15:53:52 +0000 (15:53 +0000)]
builds: Don't notify the poster
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 15:46:50 +0000 (15:46 +0000)]
builds: Refactor sending emails when someone comments
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 15:42:06 +0000 (15:42 +0000)]
jobs: Drop message recipients property
Jobs don't really send any emails any more
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 15:41:18 +0000 (15:41 +0000)]
jobs: Drop unused add_file() function
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
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>