Commit Graph

105 Commits

Author SHA1 Message Date
Martchus 901092ba09 Fix condition for check whether reloading build action details is required 2021-04-05 20:29:03 +02:00
Martchus 7ab50a121f Split routes.cpp 2021-04-05 20:02:00 +02:00
Martchus b73bee87b5 Add test for posting build actions from pre-defined build task 2021-04-05 19:49:04 +02:00
Martchus ff1e955bde Consider concurrent flag when starting build actions from task
This allows concurrent build actions within the same task.
2021-04-05 12:10:42 +02:00
Martchus 7f0ec081c6 Allow specifying build tasks with more complicated build actions
The new data structures (e.g. concurrent flag) aren't actually used yet.
2021-04-02 00:14:00 +02:00
Martchus fdf40aa917 Apply clang-format 2021-04-01 21:08:17 +02:00
Martchus 484b3c8015 Improve command-line client 2021-03-30 20:49:08 +02:00
Martchus 6f2c6cabc2 cli: Add more build action operations 2021-03-27 21:37:28 +01:00
Martchus 6565ff54f6 cli: Restructure to use sub-operations 2021-03-27 20:09:51 +01:00
Martchus bfbde3f957 Refactor client code 2021-03-27 19:55:24 +01:00
Martchus 163ff91bff cli: Add basic listing of build actions 2021-03-25 23:44:29 +01:00
Martchus 14d82a0a8d Fix URL encoding in search params within hash 2021-03-25 22:49:44 +01:00
Martchus caa235b412 Fix typo 2021-03-25 22:46:10 +01:00
Martchus 740b4635a6 Reflect state of package search in URL 2021-03-22 16:51:57 +01:00
Martchus fa969270c1 Fix warnings 2021-03-22 15:08:41 +01:00
Martchus 3d508f7c81 Update README.md 2021-03-22 15:07:56 +01:00
Martchus ac7f38e8fa Do not access moved-from object in CleanRepository::run() 2021-03-16 15:36:57 +01:00
Martchus 9581716d8b Delete signature in the src repo when moving package 2021-03-16 15:16:03 +01:00
Martchus 307322ab11 Handle signatures when cleaning up repository 2021-03-15 19:22:28 +01:00
Martchus 1c75e8f957 Allow signing packages manually after the build
Simply adding `--sign` to the `makepkg` flags doesn't work because it would
require setting up GPG within the chroot environment (of `makechrootpkg`).

When debugging it is anyways annoying that `makepkg` sends the `gpg` output
to `/dev/null`. This way the logs are preserved.
2021-03-14 21:53:51 +01:00
Martchus 45bf4fa234 Handle signature file when adding/removing/moving/checking/cleaning packages 2021-03-14 01:53:40 +01:00
Martchus 94b39f55dc Lock working copy directory as well (as root directory) 2021-03-06 17:08:04 +01:00
Martchus 29c0741984 Allow registration of multiple data handlers 2021-03-06 16:44:42 +01:00
Martchus cbfa8d8298 Use locks when checking/cleaning repository 2021-03-05 23:11:48 +01:00
Martchus 556a749362 Improve lock-related code in conductbuild.cpp 2021-03-02 18:30:40 +01:00
Martchus 4416922397 Fix clearing locks 2021-03-02 18:30:15 +01:00
Martchus f147dc3179 Fix locks for global resources by implementing a mutex not tied to a thread
* Can not use a normal mutex because we don't want to tie the resources to
  a specific thread (and instead e.g. to a build action which might not be
  executed by a single thread)
* A semaphore would do that but libstdc++ only supports it as of GCC 11 and
  besides it wouldn't distinguish between shared and exclusive locking
2021-02-26 01:39:21 +01:00
Martchus 930d449333 Fix handling locks in ConductBuild 2021-02-25 23:20:07 +01:00
Martchus 0760860c6d Log lock acquisitions/releases 2021-02-25 22:12:56 +01:00
Martchus aae5bf81f3 Allow specifying locks when executing custom command 2021-02-23 20:57:07 +01:00
Martchus b7f27cb0a0 Use locks to prevent multiple actions accessing the same db files and chroot dirs 2021-02-22 23:44:06 +01:00
Martchus bc993f1d78 Add locking system so build actions can acquire named locks 2021-02-20 23:25:31 +01:00
Martchus 120fbf993b Fix param for ignoring dependencies 2021-02-20 12:25:08 +01:00
Martchus 046f963f4b Improve error handling when parsing config, fix specifying IP address 2021-02-18 15:21:05 +01:00
Martchus eb2b55c834 Disable sticky pagination on Firefox mobile as it does not work well 2021-02-18 15:19:59 +01:00
Martchus 4efbbde335 Improve some JavaScript issues reported by eslint 2021-02-13 17:14:49 +01:00
Martchus f040418bdd Avoid checking for failed dependencies when processing the last package of batch 2021-02-13 12:54:01 +01:00
Martchus 97001740e2 Do enable staging in the current batch when processing the very first package
Likely not really relevant because the function should only be called when
processing the 2nd or further packages. However, this way it seems a little
bit less error prone.
2021-02-13 12:52:54 +01:00
Martchus b556c39cd7 Skip the current package when checking for failed dependencies
We usually wouldn't expect a package to depend on itself but the different
packages build as part of one split-package might do.
2021-02-13 12:30:13 +01:00
Martchus 3fe15fb081 Add missing newline when logging failed makechrootpkg invocation 2021-02-13 12:28:42 +01:00
Martchus 40d99e3bf0 Improve displaying results from update check with multiple source repos 2021-02-09 17:49:31 +01:00
Martchus ab6b940d8e Acknowledge restoring config from cache file correctly 2021-02-09 14:59:40 +01:00
Martchus 4ac9e729d0 Exclude current db from order computation when detecting unresolved packages 2021-02-09 11:59:23 +01:00
Martchus 7a8601010e Fix dependency lookup in Database::replacePackages() 2021-02-08 23:54:03 +01:00
Martchus 5127ca351f Allow ignoring certain dependencies/libraries when checking for problems 2021-02-08 23:54:03 +01:00
Martchus 6a9589b4a1 Fix dependency matching if pkgrel contains a dot 2021-02-08 23:54:03 +01:00
Martchus b06a1dfcd2 Allow considering the regular package when checking for updates 2021-02-08 23:54:03 +01:00
Martchus 3894d911d7 Fix posting build action to start it later; add basic test for the route 2021-02-08 23:54:03 +01:00
Martchus 0c8f0b04c2 Experiment with Boost.Beast to use version of async_accept accepting IO ctx
This would make more sense instead of using the (copy of the) same socket
object all the time.
2021-02-08 23:54:03 +01:00
Martchus 6b274ccc88 Improve log messages 2021-02-08 23:54:03 +01:00