Commit Graph

1834 Commits

Author SHA1 Message Date
Sebastian Serth
18f05db138 Always show CSRF error message for Ajax 2021-11-23 01:37:50 +01:00
Sebastian Serth
5aee2aaba8 Add more logging for execution requests 2021-11-18 14:18:41 +01:00
Sebastian Serth
21185ea4b3 Make empty submissions not clickable 2021-11-16 13:32:51 +01:00
Sebastian Serth
571be87879 Fix range slider for external user statistics 2021-11-16 12:02:52 +01:00
Sebastian Serth
f15bbe2c29 Fix links for external user statistics 2021-11-16 11:57:43 +01:00
Sebastian Serth
aa49731e49 Remove submissions without visible files from statistic view 2021-11-16 11:43:23 +01:00
Sebastian Serth
a576d76fda Serialize trestrun for Sentry logging 2021-11-15 00:30:50 +01:00
Sebastian Serth
695c3de40e Ensure users are signed in before creating a submission 2021-11-14 23:07:44 +01:00
Sebastian Serth
c2ea27b3ee Add annotation about exceptions to submission.rb 2021-11-14 22:45:37 +01:00
Sebastian Serth
991fdef8bc Handle depleted containers for submit 2021-11-14 22:45:12 +01:00
Sebastian Serth
f577fed03c Fix nil for @execution_environments 2021-11-09 19:25:00 +01:00
Sebastian Serth
3608856397 Merge pull request #1079 from openHPI/sync_execution_environments
Sync execution environments
2021-11-09 18:44:35 +01:00
Sebastian Serth
fb92d382ac Skip verification of Docker image if pool size is empty 2021-11-09 17:49:51 +01:00
Sebastian Serth
e224e41564 Exercise view: Re-use @execution_environments 2021-11-08 22:39:10 +01:00
Sebastian Serth
d26947f724 Update jQuery plugins 2021-11-06 02:00:16 +01:00
Sebastian Serth
75d0d28e8b Shell: Refactor usage of methods and const 2021-11-06 01:05:45 +01:00
Sebastian Serth
79e8caea45 Remove outdated execution environments after syncing all 2021-11-04 20:09:20 +01:00
Sebastian Serth
79da2781e3 Restructure methods in execution_environment.rb 2021-11-04 20:09:19 +01:00
Sebastian Serth
c1ac401a49 Add retries to working_docker_image?
* Also synchronize images during save
2021-11-04 20:09:19 +01:00
Sebastian Serth
ecf470bddd Refactor sync_environment methods
* Add delete_environment method
* Change return value to allow raising an exception
2021-11-04 20:06:40 +01:00
Sebastian Serth
38e1f5b486 Show error details of available_images 2021-11-04 20:06:40 +01:00
Sebastian Serth
d033f71ae3 Catch Runner::Error in RemoteEvaluationController 2021-11-04 18:43:16 +01:00
Sebastian Serth
4cd70f2bad Add comment for retries to Runner#execute_command 2021-11-04 18:43:16 +01:00
Sebastian Serth
92eafa145c Swap runner during score if timeout occurred 2021-11-04 18:43:16 +01:00
Sebastian Serth
eb69697b9a Fix missing routes incompatible with a subpath 2021-11-03 16:02:21 +01:00
Sebastian Serth
91af20b5ce Disallow assessment files during run 2021-11-02 16:19:24 +01:00
Sebastian Serth
0b4217b12d Memoize collect_files 2021-11-02 16:19:01 +01:00
Sebastian Serth
d7e515f1c6 Fix rubocop offense 2021-11-02 10:46:48 +01:00
Sebastian Serth
620dac935a Fix bug that prevented binary file uploads 2021-11-02 10:31:50 +01:00
Sebastian Serth
c3642b5d0c Add an empty line before printing exit message
* The empty line is only added if the output is not empty
2021-11-01 17:52:44 +01:00
Sebastian Serth
2c10b48b70 Execute Command: Guard requesting new runner
* If any exception is thrown, these will be caught now and handled appropriately
2021-11-01 17:13:15 +01:00
Sebastian Serth
bdfcb0da19 Reset previous exception if retrying command execution 2021-11-01 17:13:14 +01:00
Sebastian Serth
6ff14d6fc7 Connection Buffer: Replace \r in run and score output with \n 2021-11-01 17:13:14 +01:00
Sebastian Serth
1e7cf1c622 Prevent parallel execution of run and test during RfC creation
* Otherwise, the output of both might be mixed and saved incorrectly for the RfC
2021-11-01 17:13:14 +01:00
Sebastian Serth
475aa8c512 DCP: Allow increasing the pool size when previously empty 2021-11-01 17:13:13 +01:00
Sebastian Serth
447860892a Always remove exposed_ports_list if present 2021-11-01 17:13:13 +01:00
Sebastian Serth
de83843496 Combine no_output and exit_status messages 2021-11-01 17:13:13 +01:00
Sebastian Serth
b62a7ad129 Prevent non-existing runner_management config to be read 2021-11-01 17:13:11 +01:00
Sebastian Serth
3c8017f23e JS: Ensure to print status messages for score
* If only one response is available, no array will be passed (but rather an Object). The impact of this has been tackled with the changes included
2021-11-01 17:13:11 +01:00
Sebastian Serth
1609bd2e0e Change default of raise_exception for execute_command 2021-11-01 17:13:11 +01:00
Sebastian Serth
4f1a7cde27 Add null strategy for runners
* This is the default strategy used when the runner management is disabled. It might be replaced with a generic Docker strategy in the future (without pooling). For now, it allows normal "operation" of CodeOcean without any runner management. However, as no runner system is configured, no command can be executed.
2021-11-01 17:13:10 +01:00
Sebastian Serth
28c74bc9a5 Improve memoization of @strategy_class 2021-11-01 17:13:08 +01:00
Sebastian Serth
288c7693f7 Remove dump_docker method for admins 2021-11-01 17:13:08 +01:00
Sebastian Serth
af93603ba3 Use strategy release in admin dashboard 2021-11-01 17:13:08 +01:00
Sebastian Serth
ada438b230 Add release and pool_size methods to DCP 2021-11-01 17:13:07 +01:00
Sebastian Serth
2b98905acb Remove usage of DockerClient from execution_environments_controller.rb 2021-11-01 17:13:07 +01:00
Sebastian Serth
541afa92f3 Remove ws_client_protocol option
* The correct setting will be determined automatically
2021-11-01 17:13:06 +01:00
Sebastian Serth
0db6f20933 Move MemoryLimit to Execution Environment 2021-11-01 17:13:06 +01:00
Sebastian Serth
9cc4394296 Allow editing an Execution Environment with active runner management 2021-11-01 17:13:05 +01:00
Sebastian Serth
d87e23b9a3 Add execute_command method to runner.rb
* This is now used by the score and test runs
* This also re-enables the interactive shell for execution environments
2021-11-01 17:13:05 +01:00