Commit Graph

138 Commits

Author SHA1 Message Date
0db6f20933 Move MemoryLimit to Execution Environment 2021-11-01 17:13:06 +01:00
06ef4430f5 Change exposed_ports to array 2021-11-01 17:13:02 +01:00
13c378b980 Remove concurrent ruby gem no longer needed 2021-11-01 17:12:55 +01:00
fd9e243064 Disable DCP if other strategy class is chosen 2021-11-01 17:12:54 +01:00
d7eb562389 Prevent underscores from being removed during command substitution 2021-07-07 20:42:59 +02:00
e7cf4ef5db Apply automatic rubocop fixes 2021-06-25 14:41:49 +02:00
da0a682ffb Apply manual rubocop fixes 2021-05-14 22:03:06 +02:00
6cbecb5b39 Apply automatic rubocop fixes 2021-05-14 22:03:06 +02:00
b10e23dd16 Upgrade to newest Sentry 2021-03-04 14:02:16 +01:00
f3dc15e9d4 Raise error on writes outside Docker shared folder
* Don't replace path before execute
* Use config option for LOCAL_WORKSPACE_ROOT
2020-12-04 10:39:48 +01:00
f96da0833b Set RECYCLE_CONTAINERS to false 2020-11-24 17:46:19 +01:00
5849f1c463 Add ping for Faye WebSocket to Docker 2020-10-29 00:40:36 +01:00
ca9467bf3c Merge branch 'linter_toggle'
# Conflicts:
#	config/locales/de.yml
2020-10-15 18:33:19 +02:00
be3ec82bd4 Add new file role teacher_defined_linter 2020-10-15 00:43:57 +02:00
f7c41db70c Fix invalid reference to ContainerPool
This was a copy & paste mistake
2020-10-14 14:34:26 +02:00
fae60a21e5 Sync DockerClient with DockerContainerPool
Fix failing specs after upgrade
2020-09-28 16:53:15 +02:00
2b7170b202 better error handling 2020-05-12 18:52:08 +02:00
d912062abd Copy output to file and stdout / stderr 2020-05-12 17:51:07 +02:00
daa39336fb Fix happy path for scoring 2020-05-12 17:51:07 +02:00
b6db9e186c Add information if execution timed out during scoring 2020-05-12 17:51:07 +02:00
99979eeb4f Rescue RuntimeError (FayeWebsocket) and apply style 2020-05-05 22:46:28 +02:00
0a989e31ae Apply file permissions after copying files to workspace 2020-04-17 23:51:13 +02:00
8fd81fb05e Ignore permission problems when deleting files 2020-04-16 14:52:16 +02:00
28d40605c8 Fix specs 2020-04-14 15:20:15 +02:00
48d06b6dbe Persist metrics for container usage (execution time and waiting time) to Testrun table 2020-03-26 16:28:56 +01:00
380b2ce6c7 Enhance kill for container 2020-03-25 11:47:59 +01:00
b0761dbdb5 Extract pool handling to separate service 2020-03-25 11:30:11 +01:00
de06a83f4c Add a few comments 2020-03-24 18:06:21 +01:00
d9d77fbd97 Various important bug fixes and self destroy for containers 2020-03-23 13:38:50 +01:00
ccb5998b72 Remove semaphore where no longer required and re-enable 2020-03-22 16:56:07 +01:00
1cdc1b0647 Replacing a killed container only if required 2020-03-22 15:35:27 +01:00
0338564bf2 Always close database connection when exiting thread 2020-03-22 15:18:27 +01:00
b4c0a14a35 Fix code style to reduce errors in RubyMine 2020-03-22 15:09:40 +01:00
30fab618a7 Kill container in new thread 2020-03-22 15:09:04 +01:00
ff879d85a1 Restructure kill_container method to release semaphore more quickly 2020-03-22 13:22:22 +01:00
3102d1529f Extract semaphore handling to own methods and add logging 2020-03-22 11:44:19 +01:00
d6e7c20f3f Ensure to release semaphore even if killing container 2020-03-22 10:41:19 +01:00
2b3428b963 Add semaphore to method calls in DockerClient 2020-03-22 09:54:20 +01:00
b38b7bd435 Catch two more exceptions from production 2020-03-17 13:50:33 +01:00
39a822f8bf Skip all docker images not tagged (otherwise, the method crashes) 2018-11-22 19:03:35 +01:00
15b1670511 Update Turbolinks, load additional assets only on request, fix JS
Signed-off-by: Sebastian Serth <Sebastian.Serth@student.hpi.de>
2018-11-06 16:46:01 +01:00
de52db89f0 Upgrade Rails to version 5.2.1 and adopt code & specs where necessary
Signed-off-by: Sebastian Serth <Sebastian.Serth@student.hpi.de>
2018-11-06 16:46:00 +01:00
730d5541bd allow running, testing and scoring of files in subfolders by using the full filepath 2018-10-19 15:25:05 +02:00
6b6fec025d Fix socket being nil in tests 2018-06-15 14:23:20 +02:00
90d1dcdc37 Close socket from container to server when killing the container in order to save run output 2018-06-05 17:10:22 +02:00
2806d9bf85 specify API version in url used to open the websocket. With version 1.28 and up, docker uses binary frame format for websockets which does not seem to work with FAYE websocket. For API version 1.27 and below, text frame format is used.
+ short fix improvement for empty responses
2017-09-29 16:09:42 +02:00
bdbc372c0c fixed saving run results. also fixed websocket closing. 2017-03-24 18:47:30 +01:00
4674c057a4 Fixed rejection of untagged images 2017-01-18 11:10:34 +01:00
17f0f6fa9f prevent calls on nil 2017-01-11 17:13:34 +01:00
254e8c65d1 adjusted log levels for docker exit and kill messages 2017-01-11 16:04:55 +01:00