Commit Graph

16 Commits

Author SHA1 Message Date
f87dcc344b Added support for long-lived API keys. 2017-11-25 19:38:18 -06:00
4edae250ba Added more functional tests, fix bugs discovered.
* Fixed the formatting of command line logging of strawboss workers.
* Fixed a bug in the (de)serialization of log levels in the strawboss service
  config file.
* Pulled `parseBuildStatus` logic out of `loadBuildStatus` so that we could
  parse a JSON that didn't come from a file.
* Added `parseRun` for Run objects.
* Moved `/ping` to `/service/debug/ping` for symmetry with
  `/service/debug/stop`
* Added functional tests of full builds.
2017-11-25 18:49:43 -06:00
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
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
e39c1186c8 Refactor utils out into cliutils package. 2017-08-15 14:30:03 -05:00
3d8454d486 Reworking runs to include an id, save the run request. 2017-05-11 10:51:06 -05:00
37682441ea Split testing into unit and functional tests.
* Split the `test` nimble task into `unittest` and `functest`, with
  corresponding test directories and test runners.
* Added documentation in README regarding building and testing StrawBoss.
* Created a small, simple test project for use in the functional tests.
* Added a `keepEnv` template in the server unit test code to make it easy to
  preserve the working environment for a single unit test to invistigate
  failures manually.
2017-05-10 11:44:46 -05:00
13165879c5 Pulled sameContents function out into nim-langutils library. 2017-05-08 12:32:55 -05:00
52b7d2f48b Implemented password hashing. Added and improved tests. 2017-03-24 01:04:39 -05:00
b5a70f6de0 WIP: tests, REST API support (auth). 2017-03-19 06:34:42 -05:00
2cfb91aaeb WIP Adding session auth and routes. 2017-03-17 23:34:33 -05:00
0976871563 Finished refactor towards process-based workers. 2017-03-13 07:29:37 -05:00
73e502f8a9 Re-organized into multiple modules. 2017-02-20 18:02:31 -06:00
9f68963f18 WIP: Working on server. 2017-02-18 23:09:09 -06:00
a2350ef7fd Initial version. 2017-02-17 17:54:30 -06:00
eca33739b2 Initial commit with basic architecural thoughts. 2017-02-15 23:27:47 -06:00