Commit Graph

  • 9cc4394296 Allow editing an Execution Environment with active runner management Sebastian Serth 2021-10-19 23:20:34 +02:00
  • d87e23b9a3 Add execute_command method to runner.rb Sebastian Serth 2021-10-19 22:53:27 +02:00
  • 02a2673bf2 Add hint for CPU limit Sebastian Serth 2021-10-19 00:32:54 +02:00
  • 7e2039ebc2 Fix bug that always showed the default value for CPU limit when editing the limit Sebastian Serth 2021-10-19 00:23:58 +02:00
  • e272fcd19c Add more comments and error logging to connection.rb Sebastian Serth 2021-10-18 22:24:09 +02:00
  • e95ad5e26c Add @!attribute comments to connection.rb Sebastian Serth 2021-10-18 22:02:42 +02:00
  • 2ad4eb7625 DCP: Escape command for RegEx Sebastian Serth 2021-10-18 01:24:32 +02:00
  • 68c8f1dbdf DCP: Set sticky bit for folder and secure delete Sebastian Serth 2021-10-18 01:24:17 +02:00
  • 04c896c7de DCP: Listen for Python exit handler Sebastian Serth 2021-10-18 01:24:01 +02:00
  • c7ddbd676c Do not forward custom exit handlers to frontend Sebastian Serth 2021-10-18 01:23:31 +02:00
  • 50b62b5703 Move flush_buffers method in Runner::Connection Sebastian Serth 2021-10-18 01:22:26 +02:00
  • 696cd6a236 Poseidon: Clean workspace between executions Sebastian Serth 2021-10-18 00:06:45 +02:00
  • a6a477e361 Move error handling to else branch in execute_command Sebastian Serth 2021-10-17 23:36:50 +02:00
  • 95f97bd66e Add documentation to code_ocean.yml Sebastian Serth 2021-10-17 23:11:41 +02:00
  • a1db30c288 Clarify EnvironmentNotFound error handling Sebastian Serth 2021-10-17 22:42:17 +02:00
  • c676785d55 Fix order-dependent runner_spec.rb Sebastian Serth 2021-10-17 19:32:55 +02:00
  • 06ef4430f5 Change exposed_ports to array Sebastian Serth 2021-10-17 18:59:03 +02:00
  • 064c55b711 Add new validator for all elements of an array Sebastian Serth 2021-10-17 18:54:44 +02:00
  • 90eeb3bb9c Move CodeOcean::FileNameValidator Sebastian Serth 2021-10-17 18:54:27 +02:00
  • 352e5f4329 Clarify strategy creation in runner.rb with comment Sebastian Serth 2021-10-17 16:43:39 +02:00
  • 7285978ea3 Re-add test method for SubmissionsController Sebastian Serth 2021-10-17 16:22:10 +02:00
  • 5f98456276 Extract run_test_file from submission.rb Sebastian Serth 2021-10-17 16:21:13 +02:00
  • 56a1d78793 Use correct embed_option to disable_score Sebastian Serth 2021-10-17 16:20:15 +02:00
  • 2377f8370c Clarify set_file and set_files in SubmissionsController Sebastian Serth 2021-10-17 16:19:56 +02:00
  • 21e0571838 Remove unnecessary post parameter from sync_all view Sebastian Serth 2021-10-17 13:22:38 +02:00
  • 345860c779 Adapt output buffering to Poseidon and DCP * Refactor flushing of messages * Introduce two separate buffers for stdout and stderr Sebastian Serth 2021-10-17 13:15:52 +02:00
  • 1891cdd69c Add check whether buffer is empty Sebastian Serth 2021-10-11 23:15:36 +02:00
  • 58e923abd8 Add custom websocket header to strategy class Sebastian Serth 2021-10-11 23:11:40 +02:00
  • 08f36a0a7a Destroy runner at management in case of errors Sebastian Serth 2021-10-11 15:19:23 +02:00
  • 7e7b7ebdfa Allow flushing the WebSocket connection Sebastian Serth 2021-10-11 15:16:17 +02:00
  • 788f6dba20 Specify TLS certificate for Faye::WebSocket::Client Sebastian Serth 2021-10-11 09:56:59 +02:00
  • f4c806fe43 Forward JSON from runner to client if possible Sebastian Serth 2021-10-11 09:48:11 +02:00
  • a074a5cb0d Add buffering to output received from runner Sebastian Serth 2021-10-11 09:47:17 +02:00
  • 3240ea7076 Forward input as raw_event to runner Sebastian Serth 2021-10-11 09:44:34 +02:00
  • f896d041f8 Restructure submissions_controller and remove outdated copy_comments method Sebastian Serth 2021-10-10 15:34:47 +02:00
  • 0f92526494 Remove outdated output callback from Runner::Connection Sebastian Serth 2021-10-10 15:13:59 +02:00
  • cc98dc2229 Split WebSocket event in multiple lines before processing Sebastian Serth 2021-10-10 15:12:45 +02:00
  • 1403fc03c4 Remove outdated lines from #download method Sebastian Serth 2021-10-10 12:24:05 +02:00
  • 601e1fab5c Remove all occurrences of server-sent events Sebastian Serth 2021-10-10 12:23:24 +02:00
  • 82cab390ad Remove outdated run method from turtle.js Sebastian Serth 2021-10-10 12:11:26 +02:00
  • 3fa6ba6c72 Use instance_double for Poseidon Strategy specs Sebastian Serth 2021-10-10 11:20:08 +02:00
  • b51a45e9b1 Add token header option for requests to Poseidon Maximilian Paß 2021-09-30 13:17:50 +02:00
  • 44395b7792 Add ca file option for requests to Poseidon Maximilian Paß 2021-09-29 14:25:26 +02:00
  • 09b672eb08 DCP strategy: Use stdout for most test results Sebastian Serth 2021-09-20 11:30:14 +02:00
  • 6c5a5226b8 Preserve locale during Runner::Connections Sebastian Serth 2021-09-19 23:59:53 +02:00
  • 325720bd3b Improve documentation in Runner::Connection Sebastian Serth 2021-09-19 23:59:38 +02:00
  • cc17736bf5 Add CPU limit to Execution Environment index Sebastian Serth 2021-09-19 16:12:10 +02:00
  • ee1751debf Fix rubocop offenses Sebastian Serth 2021-09-19 15:28:04 +02:00
  • 8bd9a93944 Add NOT NULL constraint on cpu_limit Sebastian Serth 2021-09-19 15:21:41 +02:00
  • 0cc1c7a396 Combine runner waiting_time migrations Sebastian Serth 2021-09-19 15:21:08 +02:00
  • 0c22e1392a Remove outdated mnemosyne traces Sebastian Serth 2021-09-19 15:12:07 +02:00
  • 13c378b980 Remove concurrent ruby gem no longer needed Sebastian Serth 2021-09-19 14:50:34 +02:00
  • fd9e243064 Disable DCP if other strategy class is chosen Sebastian Serth 2021-09-19 12:26:29 +02:00
  • 4ad898ad8b Remove set_docker_client method from submissions_controller.rb Sebastian Serth 2021-09-19 12:04:14 +02:00
  • 5037a73f36 Mock runner management settings for spec Sebastian Serth 2021-09-19 11:47:00 +02:00
  • f77e6d9df8 Simplify code in runner model Felix Auringer 2021-09-14 18:02:22 +03:00
  • 1bf92d8c90 Fix sentry error capturing in submissions controller Felix Auringer 2021-09-14 17:01:46 +03:00
  • 30603cb7ab Generalize method and constant names for runner management Sebastian Serth 2021-09-13 12:49:56 +02:00
  • e752df1b3c Move EventMachine initialization to Runner::EventLoop Felix Auringer 2021-07-27 13:40:50 +02:00
  • 9e2cff7558 Attach connection errors to socket Felix Auringer 2021-07-22 10:09:24 +02:00
  • c8e1a0bbcb Fix tests for Runner#attach_to_execution Felix Auringer 2021-07-22 09:09:38 +02:00
  • c7369366d5 Ensure that only one EventMachine is running Felix Auringer 2021-06-29 16:53:26 +02:00
  • 5cc180d0e9 Fix rubocop, I18n, cleanup rebase Felix Auringer 2021-07-26 14:16:41 +02:00
  • 2dff81a510 Attach duration information to the exception object Felix Auringer 2021-06-28 12:03:20 +02:00
  • 36578a2817 Ensure to save Testrun even when an error occurs Felix Auringer 2021-06-25 12:10:30 +02:00
  • f98a8b9e7a Resolve error handling todos in dcp strategy Felix Auringer 2021-07-01 13:52:05 +02:00
  • 5608d61b3a Replace metaprogramming in Runner::Connection Felix Auringer 2021-06-25 09:24:13 +02:00
  • d1a5773e60 Add debug log statements to runner connection Felix Auringer 2021-06-28 10:11:15 +02:00
  • cc412b73bc Introduce more error types Felix Auringer 2021-06-24 12:42:43 +02:00
  • db2d1e3164 Add tests for DockerContainerPool strategy Felix Auringer 2021-06-23 17:01:35 +02:00
  • 704407b9fc Add strategy for DockerContainerPool Felix Auringer 2021-06-10 16:17:02 +02:00
  • 1d3f0d7ad8 Handle Faraday errors Felix Auringer 2021-06-14 10:53:46 +02:00
  • b48b45de9f Refactor error classes Felix Auringer 2021-06-14 09:56:27 +02:00
  • 413f9b2705 Improve error resilience and handling Felix Auringer 2021-06-14 09:22:29 +02:00
  • b6bc578aea Move submission scoring from controller concern to submission model Felix Auringer 2021-06-11 12:01:16 +02:00
  • b847daf823 Remove waiting_time from runner model Felix Auringer 2021-06-11 12:15:13 +02:00
  • d0d1b1bffd Introduce strategy for runner behavior Felix Auringer 2021-06-09 09:39:56 +02:00
  • cf58be97ee Fix 17 previously failing specs Felix Auringer 2021-06-08 12:36:49 +02:00
  • 0280c0282e Add tests for synchronizing all execution environments Konrad Hanff 2021-06-08 13:58:09 +02:00
  • 598de3bcff Add button to synchronize all execution environments Konrad Hanff 2021-06-07 16:31:15 +02:00
  • 0978a3be83 Add tests for the different runner errors Felix Auringer 2021-06-01 18:38:52 +02:00
  • d5b274c9f2 Introduce new error types for runners Felix Auringer 2021-05-27 10:21:25 +02:00
  • 5e913c8a1a Skip failing tests Konrad Hanff 2021-06-07 08:46:02 +02:00
  • d22d24df4d Add tests for execution environment copy to Poseidon Konrad Hanff 2021-06-01 14:39:30 +02:00
  • 90fac7b94c Copy execution environment to Poseidon on create and update Konrad Hanff 2021-06-01 14:07:35 +02:00
  • b762c73ddd Update usage of Poseidon API to newest API version (0.2.2) Felix Auringer 2021-06-02 10:39:13 +02:00
  • 8d968e01e6 Move RunnerConnection into class Runner Felix Auringer 2021-05-25 10:47:49 +02:00
  • 63d997a7e3 Fix Rubocop offenses after Rubocop was reconfigured Felix Auringer 2021-05-25 12:45:38 +02:00
  • fc6aa12b0a Remove handling of runner timeouts Felix Auringer 2021-05-19 16:02:32 +02:00
  • 7ff65135b5 Add runner management configuration to ci Felix Auringer 2021-05-25 11:55:36 +02:00
  • 286a3f394d Fix autocorrectable rubocop offences and implement suggestions Konrad Hanff 2021-04-22 08:58:50 +02:00
  • b29bc5e70f Apply 3 suggestion(s) to 3 file(s) Konrad Hanff 2021-04-21 06:01:55 +00:00
  • c14cf99a96 Don't cleanup runners during precompile Konrad Hanff 2021-04-19 10:05:14 +02:00
  • 17bd2d8726 Reuse runners per user and execution environment Konrad Hanff 2021-04-19 08:54:05 +02:00
  • 3017e46006 Add newline to end of json schema Konrad Hanff 2021-04-08 08:32:48 +00:00
  • 2404c1c36c Rename variables from container to runner Konrad Hanff 2021-04-07 17:12:26 +02:00
  • 3e6534567d Move copy_submission_files from runner to submission Konrad Hanff 2021-04-07 17:07:29 +02:00
  • 575057acd3 Fix some non-autocorrectable linting issues Konrad Hanff 2021-04-07 14:43:34 +02:00
  • 80932c0c40 Auto-correct linting issues Konrad Hanff 2021-04-06 13:51:11 +02:00
  • 6e9562c9e1 Validate json Konrad Hanff 2021-04-06 09:43:33 +02:00