Commit Graph

211 Commits

Author SHA1 Message Date
Ralf Teusner
da4d54859c save run outputs with cause requestComments with more content (5000 chars instead of 500). Always save full JSON content. 2017-09-21 17:21:13 +02:00
Ralf Teusner
194984a620 add cause to testruns
trigger run and assess on request_for_comment
2017-09-21 17:21:10 +02:00
Maximilian Grundke
280b4dbe0c Fix question mark bug 2017-08-23 15:37:48 +02:00
Maximilian Grundke
4d684a7a05 Extract structured errors on run and submit 2017-07-12 09:52:33 +02:00
Niklas Kiefer
8f81bb728c change tmp-filename of .co-file 2017-04-25 14:16:29 +02:00
Niklas Kiefer
5949d1208e Merge branch 'master' into client-routesv2 2017-04-25 13:50:08 +02:00
Niklas Kiefer
4fab791e7f Update submissions_controller.rb 2017-03-27 15:52:06 +02:00
Ralf Teusner
bdbc372c0c fixed saving run results. also fixed websocket closing. 2017-03-24 18:47:30 +01:00
Ralf Teusner
0930cba095 changed position of saving the run output, so it catches timeouts as well 2017-03-23 14:12:26 +01:00
Thomas Hille
a142e1c73f save messages returned from runs 2017-03-22 17:30:20 +01:00
Ralf Teusner
9b8027e4c0 replaced exit-command for containers from 'exit' to '#exit', otherwise it will always really exit the container (which is then in state: exited) if we execute it in bash. 2017-02-14 13:35:21 +01:00
Niklas Kiefer
4d314317ae parse target url to .co file, update remote scripts 2017-02-03 09:13:59 +01:00
Niklas Kiefer
3562aa9103 create remote evaluation 2017-02-02 18:14:33 +01:00
Ralf Teusner
f2db88f952 Merge branch 'master' into travis-green-docker
took all the newer versions. Only thing I deleted is the part #to pass the test "it executes the run command" ...
We need to shortly discuss this yqbk.

Conflicts:
	lib/docker_client.rb
2016-11-09 18:25:02 +01:00
Ralf Teusner
ac88956d27 Put blocking score submission call into a thread to keep the puma server responsive 2016-10-12 18:15:16 +02:00
yqbk
1945a47109 apply changes after review 2016-10-11 12:44:16 +02:00
Alexander Kastius
6ff3d36809 Fixed container-ending on exit. 2016-09-09 17:06:30 +02:00
Alexander Kastius
3fd43fdee2 Sending command 'client_kill' on stop button click now.
Killing a container only if command client_kill was send.
Moved propmpt to prompt.js
2016-09-09 16:41:20 +02:00
Ralf Teusner
0d550a44af send exit commands from rails server when score or test have finished - this is needed to reset the buttons in the frontend correctly. 2016-09-01 17:15:44 +02:00
yqbk
4183a16178 merge with master 2016-08-03 12:09:58 +02:00
Ralf Teusner
87901bd89b Merge branch 'master' into score-websocket
Conflicts:
	app/assets/javascripts/editor.js.erb
2016-07-28 15:32:22 +02:00
Ralf Teusner
09533a5556 download complete submission as one zip file 2016-07-15 18:25:58 +02:00
Ralf Teusner
7c1be5594a also handle testcommand via websocket 2016-06-17 17:23:47 +02:00
Ralf Teusner
96de763b83 Handle scoring presentation to client via websockets 2016-06-17 16:42:07 +02:00
yqbk
d921f90a65 solved logger error 2016-06-15 15:13:31 +02:00
yqbk
195fd9c3f9 submission controller spec - problem with Rails.logger.error 2016-06-14 16:07:44 +02:00
Ralf Teusner
8158d60d30 also write "parsable json" to the frontend console if it does not have a valid command set (solves the issue when just printing an array in java, it is not shown anywhere). 2016-06-01 11:30:42 +02:00
Maximilian Grundke
d97d92347c Fix typo 2016-05-07 15:06:47 +02:00
Ralf Teusner
b31a5b37f4 renamed execute_websocket_command to open_websocket_connection, because we now run the command after all listeners in the submissions controller were attached 2016-03-01 11:34:07 +01:00
Ralf Teusner
de84638979 Try to re-combine websocket message chunks containing an image tag. 2016-01-27 16:42:25 +01:00
Ralf Teusner
95c461a055 Hide parametrized run and test commands. Some logging changes, comment on possible thread code to release database connections, not sure whether necessary. 2015-11-08 12:37:11 +01:00
Ralf Teusner
b29a41e693 some more logging 2015-11-03 17:34:34 +01:00
Ralf Teusner
ef60494911 some more logging (and cleanup) 2015-10-29 16:27:12 +01:00
Ralf Teusner
30d0270744 Show correct timeout message on timeout. Do not show a message on valid exit. 2015-10-21 17:18:28 +02:00
Ralf Teusner
e88520f43b corrected log message. 2015-10-19 15:50:58 +02:00
Janusch Jacoby
0b9cda4f84 Fix container pooling #2 2015-10-19 15:13:42 +02:00
Ralf Teusner
56f2cc221a filter and hide run_command and test_command in websocket message 2015-09-25 12:53:45 +02:00
Janusch Jacoby
13be0f65dd Improve error and output handling
Display websocket and container status messages as well as line feeds
to the user.
2015-09-16 19:14:36 +02:00
Alexander Kastius
81aa5d5d8f Fixed submission-scoring.
Added parsing of exit cmd.
2015-09-16 18:34:04 +02:00
Janusch Jacoby
e6eeebfd4b Filter and colour output, handle exit properly 2015-09-15 19:34:22 +02:00
Janusch Jacoby
c8253a6ba0 Manually merge changes from webpython branch. 2015-09-15 16:55:16 +02:00
Ralf Teusner
e14ee6def3 Merge branch 'master' into rt/comments
Conflicts:
	app/assets/javascripts/editor.js
2015-08-31 19:23:53 +02:00
Ralf Teusner
44cb0150cc removed the last(100) filter on the index method of submission, since it did not work this way. ToDo: check whether this breaks anything, discuss with JanR. 2015-08-26 11:52:52 +02:00
Ralf Teusner
6229b5de8d re-activate copying of comments, and also show comments of original file author in show method 2015-06-24 20:21:02 +02:00
Ralf Teusner
69f7a93609 added submission id to error entries 2015-06-08 14:50:13 +02:00
Jan Renz
13f13f5ecb Only show max the last 100 in UI cause fetching all breaks the app. 2015-04-28 18:44:00 +02:00
Jan Renz
c1fdc30c7e Disable copy comments for now 2015-04-28 17:05:04 +02:00
Ralf Teusner
0447b076c6 set user_type correct for comments 2015-04-27 17:59:28 +02:00
Ralf Teusner
90051fff1c minor bugfix 2015-04-23 14:56:55 +02:00
Franz Liedke
9063b18012 Fix hints to work again. 2015-04-23 13:15:31 +02:00