Commit Graph

332 Commits

Author SHA1 Message Date
Martchus 874152a2cb Update xtermjs to 5.1.0 2022-12-20 22:09:26 +01:00
Martchus c404a092cc Add async locks
This might be useful to avoid blocking threads in the thread pool just for
waiting on a global lock. It might also be useful to allow stopping build
actions while they're waiting for a lock.
2022-12-04 00:28:47 +01:00
Martchus b1acbee127 Add very basic test for build service cleanup 2022-11-24 23:12:01 +01:00
Martchus 218e1f6b17 Add simple cleanup of old build actions 2022-11-24 21:33:42 +01:00
Martchus 9cf0fed450 Avoid duplicating "Clone of" in task name 2022-11-13 22:44:41 +01:00
Martchus 9c219288c9 Render name and version of packages in build preparation correctly 2022-11-13 22:37:32 +01:00
Martchus aff7853f94 Set task name of clones 2022-11-13 22:14:29 +01:00
Martchus 962dd0088e Fix computing source package name
The `packageName` (key in build preparation) might not actually be
`pkgbase` when rebuilding a binary package and `pkgbase` changes compared
to what it was in the before. Then `packageName` is still set to the old
`pkgbase` and we need to use the name from the actual source info (which is
the name `pkgbase` value).
2022-11-13 22:09:44 +01:00
Martchus 6e7e0c01e3 Avoid using deprecated OpenSSL functions 2022-11-03 22:34:31 +01:00
Martchus 407e3159e0 Update/remove packages from database in a whole transaction 2022-11-01 15:46:10 +01:00
Martchus 84ef92aaa2 Use one transaction when updating packages via `PackageUpdater`
This should likely be done in the other updating functions of the
`Database` class as well to avoid indexes and actual data appearing
inconsistent during the write operations.
2022-11-01 15:11:49 +01:00
Martchus c6a8c81784 Update lmdb-safe 2022-11-01 15:08:34 +01:00
Martchus 809bafa6ee Log "Loading …" message when reloading DBs also without force-flag 2022-11-01 14:35:00 +01:00
Martchus a205ffae38 Fix adding last package of current batch already to staging repository 2022-09-20 23:00:36 +02:00
Martchus 833550197f Remove unused `@mdi/font` NPM package 2022-09-15 23:16:11 +02:00
Martchus aa6e78f838 Update xterm.js to 5.0.0 2022-09-15 23:13:32 +02:00
Martchus c7d8e71978 Add staging test with multiple batches 2022-09-15 22:59:18 +02:00
Martchus 598b931e9f Move staging tests into their own block 2022-09-15 22:24:12 +02:00
Martchus 69ee493b8f Fix out-commented check in tests 2022-09-15 22:06:48 +02:00
Martchus 5feb95039e Parse conflicts and replaces of AUR packages retrieved via AUR RPC 2022-09-01 21:45:31 +02:00
Martchus ccf232a7a7 Parse provides of AUR packages retrieved via AUR RPC 2022-08-29 20:55:28 +02:00
Martchus bde385ba6b Allow auth without access to secrets (and then just don't access secrets) 2022-07-29 22:07:24 +02:00
Martchus 662c924321 Use `flagenumclass.h` for auth flags 2022-07-29 22:06:40 +02:00
Martchus aece080986 Pass sudo password and GPG passphrase from encrypted file
Not tested yet; so far just an idea to make everything at least a little
more secure
2022-07-25 21:48:24 +02:00
Martchus 255da5b091 Allow passing secrets to build action 2022-07-11 23:33:28 +02:00
Martchus df2b5ba9f6 Allow secrets stored in encrypted files to be loaded from route handlers 2022-07-10 19:47:41 +02:00
Martchus 05176d70ef Increment patch version 2022-07-06 22:49:36 +02:00
Martchus 9c83ba8ea7 Extend tests for conducting build
* Test further error cases
* Improve checks for error messages
* Use better scoping
2022-07-01 19:28:49 +02:00
Martchus 1e7e604917 Fix skipping package build due to failed dependency
Skip package as expected when a dependency failed that was attempted to be
built as last package of the previous batch (and building as far as
possible is enabled).
2022-07-01 19:27:39 +02:00
Martchus 3b94ba4479 Update xterm.js 2022-06-30 18:59:50 +02:00
Martchus 6c1782ba42 Apply clang-format 2022-06-28 16:08:53 +02:00
Martchus 4ae2232f8e Add architecture filter in the web UI's repo selections 2022-06-28 16:07:36 +02:00
Martchus 0e3be7ce69 Fix conduct build action from getting stuck when configuring chroot fails
by moving the creation of the process session below configuring the chroot
2022-06-27 12:49:47 +02:00
Martchus 9f5474e128 Fix passing architecture when creating database
When adding a new database when reloading the config at runtime the
architecture must be passed when creating the database. Otherwise we end up
with the new database sharing the internal storage with the x86_64 database
which leads to very confusing behavior.
2022-06-19 23:06:25 +02:00
Martchus 0a536a992a Fix missing include for std::ifstream 2022-06-15 23:31:14 +02:00
Martchus 1ae8604701 Improve spacing of back button 2022-06-12 21:36:04 +02:00
Martchus 67a25d726e Use user `buildservice-git` in README
The setup instructions also use the `buildservice-git` package so it makes
sense to use `buildservice-git` as user as well.
2022-06-12 20:47:23 +02:00
Martchus 3b150428ae Allow building with `makecontainerpkg` 2022-06-12 20:42:14 +02:00
Martchus 294dba0e2a Fix URL and show it in the about dialog 2022-06-09 19:50:43 +02:00
Martchus d26c911fd6 Add button to go back to the root 2022-06-09 19:41:10 +02:00
Martchus 4868a80573 Fix encoding issues of dependency links 2022-06-09 19:24:17 +02:00
Martchus e1b7aa3470 Fix rendering tooltip of dependency links 2022-06-09 19:23:43 +02:00
Martchus 6a633252a8 Fix search by libraries broken by recent optimizations 2022-06-09 18:51:03 +02:00
Martchus c155176098 Fix missing build date in package search
* Avoid using buildDate of PackageInfo in favor of the same field in
  PackageBase
    * PackageInfo::buildDate should be removed on the next breaking change
* Do not really use the deprecated attribute because it is still used by
  (de)serialization code until it is removed for good
2022-06-08 22:44:58 +02:00
Martchus 94c4b8addc Improve misleading test name 2022-05-31 21:34:20 +02:00
Martchus 1815b50be7 Avoid deserializing build actions for deletion 2022-05-31 21:18:54 +02:00
Martchus 55c7c62c7c Speed up returning build actions table by avoiding deserializing whole obj 2022-05-31 20:54:02 +02:00
Martchus 645bb0fe54 Use arch-specific sub-directory within cache dir when conducting build 2022-05-31 20:27:42 +02:00
Martchus 0095424696 Support static-compat variant when computing regular package name 2022-05-31 20:13:21 +02:00
Martchus f2902f1d08 Apply clang-format 2022-05-31 20:13:21 +02:00