Commit Graph

  • 6929169cb5 Add test for nullio.ReadWriter Konrad Hanff 2021-07-26 16:26:30 +02:00
  • 8d24bda61a Send SIGQUIT when cancelling an execution Konrad Hanff 2021-07-21 09:12:44 +02:00
  • 91537a7364 Use test docker image in e2e tests sirkrypt0 2021-07-27 17:04:10 +02:00
  • fe240c82b4 Remove demo job HCL file sirkrypt0 2021-07-27 15:45:56 +02:00
  • f323bdf169 Add documentation on authenticating against Nomad Jan-Eric Hellenberg 2021-07-26 15:00:43 +02:00
  • 3aa1227db6 Use authentication token from config for communication with Nomad Jan-Eric Hellenberg 2021-07-26 11:41:30 +02:00
  • 23b726cef9 Correct behavior when WebSocket closes. Konrad Hanff 2021-07-06 11:43:50 +02:00
  • 909f347d2f Remove tests dependency from nullreader test sirkrypt0 2021-07-20 22:43:31 +02:00
  • 8b26ecbe5f Restructure project sirkrypt0 2021-07-16 09:19:42 +02:00
  • 2f1383b743 Add tests for returning mapped ports of runners sirkrypt0 2021-07-07 15:35:30 +02:00
  • 64764a9809 Return mapped ports when requesting runners sirkrypt0 2021-07-07 12:44:30 +02:00
  • d7c1787b57 Disable allow-failure for linting pipeline sirkrypt0 2021-07-09 09:33:49 +02:00
  • c7606f3d5f Fix a lot of linting issues sirkrypt0 2021-07-08 22:41:21 +02:00
  • bd7fb53385 Fix bug that the count of the default task group is set to the prewarming pool size Maximilian Paß 2021-07-07 09:10:46 +02:00
  • 68eacae7fe Fix bug that config task group is not added to the template job (and the faulty tests) Maximilian Paß 2021-07-06 10:09:36 +02:00
  • bbc1ce12ca Delete idle runners when the environment is scaled down Maximilian Paß 2021-06-30 11:54:14 +02:00
  • 66d04fde2a Remove unused function ScaleAllEnvironments Maximilian Paß 2021-06-30 09:54:45 +02:00
  • 50a2a22b74 Only create exactly one new runner when one runner is claimed sirkrypt0 2021-06-29 09:11:21 +02:00
  • e0e254a6af Persist runner timeout in metadata Konrad Hanff 2021-06-22 11:11:33 +02:00
  • ae08e37106 Add end to end test for inactivity timeout Konrad Hanff 2021-06-21 11:51:33 +02:00
  • 6c887de6f1 Move NullReader from nomad to util package. Konrad Hanff 2021-06-18 16:10:45 +02:00
  • 14f8a096eb Add unit and integration tests for runner inactivity timeout. Konrad Hanff 2021-06-17 12:55:12 +02:00
  • 4b2cae0bd1 Add inactivity timeout for runners. Konrad Hanff 2021-06-17 10:16:50 +02:00
  • c7ed54942d Move ChannelReceivesSomething to tests package. Konrad Hanff 2021-06-21 08:32:44 +02:00
  • 92f1af83ae Add tests for codeOceanToRaw and null readers Konrad Hanff 2021-06-18 09:14:07 +02:00
  • 17c1e379c2 Fix busy waiting on stdin Konrad Hanff 2021-06-17 16:41:24 +02:00
  • 0b9e5a5ba5 Update README Tobias Kantusch 2021-06-18 07:31:24 +00:00
  • f5f7521a18 Fix environment recovery sirkrypt0 2021-06-17 16:34:04 +02:00
  • 2e4a975588 Implement even more merge request comments Maximilian Paß 2021-06-14 15:11:10 +02:00
  • ff582805b4 Move Nomad job creation to Nomad package sirkrypt0 2021-06-11 11:53:41 +02:00
  • 87f823756b Implement merge request comments Maximilian Paß 2021-06-10 19:08:14 +02:00
  • 25d78df557 Restore existing jobs and fix rebase (7c99eff3) issues Maximilian Paß 2021-06-10 09:26:17 +02:00
  • 0020590c96 Update all runners when updating environment sirkrypt0 2021-06-08 16:48:38 +02:00
  • c7d59810e5 Use Nomad jobs as runners instead of allocations sirkrypt0 2021-06-08 14:42:35 +02:00
  • 8de489929e Remove stderr fifo after interactive execution with stderr finished sirkrypt0 2021-06-11 16:29:14 +02:00
  • d3300e839e Add unit tests for separate stdout and stderr on execution sirkrypt0 2021-06-10 18:16:32 +02:00
  • f122dd9376 Split stdout and stderr on interactive execution sirkrypt0 2021-06-10 11:29:16 +02:00
  • 19cd4b840e Update Nomad to 1.1.1 and other project dependencies sirkrypt0 2021-06-10 18:53:48 +02:00
  • 61bc7d0143 Add unit tests for provide runner route Jan-Eric Hellenberg 2021-06-08 15:50:48 +02:00
  • 7bbd7b7bae Fix task group name sirkrypt0 2021-06-09 18:12:31 +02:00
  • 32fe47d669 Implement linting issues and merge request comments Maximilian Paß 2021-06-07 16:53:10 +02:00
  • 4b5f0a3eb6 Add tests for runner manager updating runners Maximilian Paß 2021-06-02 11:34:37 +02:00
  • d0a2a1d96c Add tests for receiving allocation updates from Nomad Maximilian Paß 2021-06-01 19:48:21 +02:00
  • 3f572261c2 Add updating cached allocations sirkrypt0 2021-05-31 16:34:28 +02:00
  • 66821dbfc8 Add query options to Nomad API queries to make sure we query the correct namespace sirkrypt0 2021-05-31 16:07:18 +02:00
  • ce2b82d43d Copy files with relative path to active workspace directory of container Jan-Eric Hellenberg 2021-06-08 11:52:11 +02:00
  • b32e9c2a67 Remove off by one with needed runners sirkrypt0 2021-06-02 12:13:31 +02:00
  • 3d7b7e1761 Set default minimum count in scaling policy to 0 sirkrypt0 2021-06-01 14:47:56 +02:00
  • 630a006258 Use more uints sirkrypt0 2021-06-01 09:49:45 +02:00
  • 1c4daa99a9 Add e2e tests for exec env createOrUpdate sirkrypt0 2021-05-27 10:11:43 +02:00
  • 1be744f2d4 Explicitly set task groups network when networkAccess is false sirkrypt0 2021-05-27 10:08:27 +02:00
  • b990df7b9d Add route to create or update execution environments sirkrypt0 2021-05-25 12:43:12 +02:00
  • 3d395f0a38 Set network_mode to bridge to overwrite old setting sirkrypt0 2021-05-25 12:38:12 +02:00
  • 5f35ba30a2 Remove data race in the runner length function Maximilian Paß 2021-06-03 11:38:40 +02:00
  • 02b3f52a11 Add ability to copy files to and delete files from runner Jan-Eric Hellenberg 2021-05-31 16:31:15 +02:00
  • 242d0175a2 Add tests and end-to-end tests for websocket execution Konrad Hanff 2021-05-20 08:51:25 +02:00
  • 3afcdeaba8 Execute commands in runner via WebSocket Konrad Hanff 2021-05-20 08:47:51 +02:00
  • 892f902377 Add deps dependency to e2e-test make target sirkrypt0 2021-05-28 09:13:59 +02:00
  • 6084b00e23 Exit MonitorEvaluation once stream is closed sirkrypt0 2021-05-27 11:35:37 +02:00
  • a891d72c4f Update go.sum sirkrypt0 2021-05-26 14:00:41 +02:00
  • f228a3e599 Add Nomad job registration with monitoring afterwards sirkrypt0 2021-05-26 12:46:54 +02:00
  • 4c3cc0cc4c Move Nomad job creation logic to environment manager sirkrypt0 2021-05-25 16:18:10 +02:00
  • 619cd40fb6 Refactor EntityStore interface to multiple interfaces of specific type Jan-Eric Hellenberg 2021-05-20 09:26:17 +02:00
  • 52636b04cf Allow lint step to fail sirkrypt0 2021-05-25 09:35:01 +02:00
  • ea7eff0062 Remove deprecated golint sirkrypt0 2021-05-18 14:13:39 +02:00
  • bb1f5edea8 Add golangci-lint configuration sirkrypt0 2021-05-18 10:41:17 +02:00
  • e9906107c5 Do not use cached test results Konrad Hanff 2021-05-27 08:22:41 +02:00
  • ca2c989778 Make git directory static in Makefile sirkrypt0 2021-05-26 14:05:21 +02:00
  • fb1c117a2e Update dependencies to avoid vulns sirkrypt0 2021-05-20 12:53:07 +02:00
  • 1b49d396f3 Separatly test dependencies and Docker image. sirkrypt0 2021-05-19 17:05:36 +02:00
  • 8d7aa2ea3c Add trivy vulnerability scanner and custom docker-make image sirkrypt0 2021-05-18 15:33:09 +02:00
  • a48804bd19 Add websocket schema for tunneling connections to the runner Jan-Eric Hellenberg 2021-05-20 16:29:07 +02:00
  • fd89139a33 Specify missing response codes in API definition Jan-Eric Hellenberg 2021-05-18 12:10:56 +02:00
  • 5bb3c6745e Add tests for job store, Len and Sample method of pool Jan-Eric Hellenberg 2021-05-19 12:30:43 +02:00
  • 17c9839fac Refactor runners and websocket tests Jan-Eric Hellenberg 2021-05-19 09:30:22 +02:00
  • fe2ec4df35 Incorporate review comments Jan-Eric Hellenberg 2021-05-18 15:03:52 +02:00
  • 0590f31200 Refactor setup of runner manager test suite Jan-Eric Hellenberg 2021-05-18 12:36:46 +02:00
  • 5d5f175f52 Implement http.Hijack interface in HTTPLoggingMiddleware Jan-Eric Hellenberg 2021-05-17 15:38:34 +02:00
  • 83ea552cf7 Refactor interfaces to use a runner manager and an environment manager. See https://gitlab.hpi.de/codeocean/codemoon/poseidon/-/issues/44. Jan-Eric Hellenberg 2021-05-12 15:00:48 +02:00
  • 0d697bfd67 Merge e2e and deploy-review Nomad job for CI sirkrypt0 2021-05-17 13:18:10 +02:00
  • 24b7f1a2fa Create demo job when deploying for review sirkrypto 2021-05-11 15:21:50 +00:00
  • b141a6870e Use Nomad namespace in CI sirkrypt0 2021-05-11 16:38:24 +02:00
  • 6da9080bce Add option to configure Nomad namespace sirkrypt0 2021-05-11 16:04:58 +02:00
  • d83e0e4548 Adjust README to use make targets sirkrypt0 2021-05-12 19:26:09 +02:00
  • 3b8e757ba8 Use make in CI sirkrypt0 2021-05-12 16:27:17 +02:00
  • 676d5f1e8d Add Makefile sirkrypt0 2021-05-12 15:46:11 +02:00
  • 1f921b2ce2 Resolve merge conflicts Konrad Hanff 2021-05-12 11:06:28 +02:00
  • cee5eee622 Rename job scale functions to be consistent in naming sirkrypt0 2021-05-11 08:45:59 +02:00
  • a2a9ed367a Add tests for api client creation sirkrypt0 2021-05-10 11:58:28 +02:00
  • 9879b152e5 Add tests for Nomad job registration sirkrypt0 2021-05-10 10:36:04 +02:00
  • dfd34144f8 Store default Nomad job in apiClient to cache it sirkrypt0 2021-05-07 10:50:09 +02:00
  • 9a5d982dfc Parse default job on client side sirkrypt0 2021-05-07 10:35:07 +02:00
  • 1aaad5c5fe Add default Nomad job and job creation sirkrypt0 2021-05-06 11:43:37 +02:00
  • 5a5ab8f02b Implement merge request review comments Maximilian Paß 2021-05-10 11:58:57 +02:00
  • ed735f284f Add tests for websocket connection Maximilian Paß 2021-05-10 11:31:05 +02:00
  • 465577fea6 Add basic websocket structure and request upgrader Maximilian Paß 2021-05-07 14:10:12 +02:00
  • e07e8216f2 Deploy review only manually sirkrypt0 2021-05-11 11:20:51 +02:00
  • deb4a8b116 Build Docker image and deploy API only if tests succeed sirkrypt0 2021-05-10 16:27:40 +02:00
  • c455353925 Increase timeout for golang ci lint Jan-Eric Hellenberg 2021-05-11 14:29:26 +02:00
  • fde334a610 Perform a few renamings Jan-Eric Hellenberg 2021-05-11 10:38:01 +02:00