15 Commits

Author SHA1 Message Date
Jonathan Bernard
58fbbc048c Fixed behavior of multi-step builds.
* Output from the main strawboss executable is properly directed to stdout
  and stderr.
* Added threshold logging to strawboss core functions.
* Fixed a bug in the way dependent steps were detected and executed.
  The logic for checking if prior steps had already been executed was only
  executed once when the initial step was prepared, not for any of the
  dependent steps. This logic has been moved into the main work block for
  executing steps.
* Renamed `initiateRun` to `run` and  `runStep` to `doRun` to be more accurate.
* Dependent steps get their owng, independent copy of the workspace.
* Updated the test project to provide a test target.
2017-11-24 20:29:41 -06:00
Jonathan Bernard
82a7b301ea Finished refactor to base the build process around explicit run instances.
* Implemented periodic maintenance window.
* Moved worker creation into the core module.
* Worker processes no longer create run requests, but read queued requests from
  the file system.
* Build status and logs have been moved into the StrawBoss data directory.
* An initial build status is recorded when the job is queued.
* Build status is recorded for build references as well as actual versions.
  So there will be a build status for "master", for example, that is
  overwritten whenever "master" is built for that step.
* RunRequests now include a timestamp.
* Added a Run object to contain both a RunRequest and the corresponding
  BuildStatus for that run.
* API endpoints that talk about runs now return Run objects instead of
  RunRequests.
* Moved all data layer operations into the core module so that the
  "database API" only lives in one place.
2017-11-23 07:30:48 -06:00
Jonathan Bernard
e000b37c35 WIP Moving back towards using named runs.
* Rename artifactsRepo -> buildDataDir to be more explicit about the fact that
  it holds more than just the artifacts.
* Revert removal of run ids.
* Move Worker definition into core as part of making the core responsible for
  accepting run requests.
* Make the core module more responsible for internal details of data structure
  and storage. External callers should not need to construct paths to
  artifacts, versions, etc. but should be able to call method in the core
  module to do this work for them.
* The working directory no longer contains anything but the checked-out code.
  All StrawBoss-specific data is stored by StrawBoss elsewhere.
* Add a regular maintenance cycle to the server module.
2017-11-22 10:47:04 -06:00
Jonathan Bernard
6340b2fa49 Remove the concept of named, identifiable runs.
StarBoss is meant for building things checked into the repo It is also designed
around repeatable builds. So it makes the assumption that running a build step
for a specific version of a project will always result in the same output. So
runs are identified by the project, build step, and version.
2017-11-20 09:15:03 -06:00
e39c1186c8 Refactor utils out into cliutils package. 2017-08-15 14:30:03 -05:00
Jonathan Bernard
0a6023c656 Smalll documentation, TODOs. 2017-08-01 08:49:42 -05:00
Jonathan Bernard
3d8454d486 Reworking runs to include an id, save the run request. 2017-05-11 10:51:06 -05:00
Jonathan Bernard
a1100f17d8 Fix bug around spawning worker processes.
We were expecting to find the path to the `strawboss` binary implicitly from
the environment, which meant that configuration was also implicit, and required
more setup. Now the path to the binary is explicit in the StrawBoss runtime
configuration, and the path to the configuration file can also be explicitly given.
2017-05-11 10:43:55 -05:00
Jonathan Bernard
06b8914e7b Change CLI to allow the config file to be specified as an option. 2017-04-23 00:16:40 -05:00
Jonathan Bernard
52b7d2f48b Implemented password hashing. Added and improved tests. 2017-03-24 01:04:39 -05:00
Jonathan Bernard
b5a70f6de0 WIP: tests, REST API support (auth). 2017-03-19 06:34:42 -05:00
Jonathan Bernard
0976871563 Finished refactor towards process-based workers. 2017-03-13 07:29:37 -05:00
Jonathan Bernard
cc28e7f4bf WIP 2017-03-08 09:16:23 -06:00
Jonathan Bernard
73e502f8a9 Re-organized into multiple modules. 2017-02-20 18:02:31 -06:00
Jonathan Bernard
435613f6dc WIP: continued server work. Schema for config files. 2017-02-19 14:51:43 -06:00