Commit Graph

76 Commits

Author SHA1 Message Date
df916b2622 [web] Add CPP templates 2024-01-31 21:09:32 -05:00
face74b314 [web] Ability to add team with CPP 2024-01-22 21:49:34 -05:00
f393636629 [web] Fix color for CPP badge 2024-01-22 21:46:54 -05:00
9bcfec40c9 [web] Fix deleting contests with submissions 2024-01-22 21:43:37 -05:00
9ee581c4e3 [web] Improve confirm modals 2024-01-22 21:38:58 -05:00
d2d686133c [web] Format and add CPP to db 2024-01-16 17:20:21 -05:00
6b955857bf Merge branch 'ImportContest' 2024-01-16 17:08:21 -05:00
dpoeschl
1fc04f7617 Contest Import feature
Useful for testing web UI with real data from historical contests
2024-01-16 12:55:48 -08:00
f5e8990c0a [sandbox] Add C# for sandbox 2024-01-15 18:39:47 -05:00
3d15ebd80c [web] Fix broken team link 2024-01-15 15:32:44 -05:00
a19950a094 [web] Upgrade major deps (Sveltekit 2) 2023-12-19 16:58:34 -05:00
David Poeschl
17515af25c
Include detailed run result info in DB & show in admin site (#10)
* Send detailed submission run result info to site/database

* Show SubmissionStateReason on site

* Mark Build/TLE errors as graded immediately

* Remove superfluous log
2023-12-19 16:40:31 -05:00
David Poeschl
79fd96e1d3
Sandbox: Ensure runs are serialized, add detailed logging (#9)
Specific fixes to ensure runs are serialized:

- Added missing await when starting clone/run
- The runJava method now has a single exit path that can only execute when the process has guaranteed been 'close'd. The timeout detection previously sent SIGKILL and assumed it worked, but it was not working on my machine and the student code would continue to run indefinitely after returning.
- To get the SIGKILL to kill the submitted app's process, I added end/destroy calls to the process stdin/stdout/stderr streams.

Added lots of logging while diagnosing these issues, and it seems useful to keep. As part of this, the contest/team names are now included in the 'submissions' web api.

Also, I've structured the result data in more detail within the Sandbox, tracking whether a run succeeded or the way in which it failed. I'm collapsing these back down to just a string "output" with the preexisting failure markers (e.g. "[Timeout after 30 seconds]"), but would like to pass this over to the site/DB in a structured form eventually.
2023-12-17 11:30:16 -05:00
467e4a02f0 [web] Replace localhost with 127.0.0.1 2023-11-19 21:00:30 -05:00
8b4309e52b [web] Using strings instead of template dir 2023-11-19 20:58:57 -05:00
d709109170 [web] Move repo management 2023-11-19 20:47:51 -05:00
63fa791d4a [web] Fix template path, return team lang in API 2023-11-15 21:01:47 -05:00
9482a1f46b [web] Abstract options type 2023-11-12 18:16:04 -05:00
7f2e4c815c [web] Create CSharp repos 2023-11-12 18:14:13 -05:00
509c9bcdda [web] Use isomorphic git and template 2023-11-12 17:40:36 -05:00
80804734a5 [web] Refactor team page and add lang choice 2023-11-12 15:52:12 -05:00
384bf03688 [web] Disable secure cookies 2023-10-15 15:00:32 -04:00
bb7168f522 [web] Update docker stuff 2023-10-15 14:17:45 -04:00
6298b15ba6 [web] Remove old info 2023-09-08 13:09:58 -04:00
7f1c1c2dfb [web] Cleanup UI 2023-09-08 12:28:51 -04:00
4b3e40decd Add dark diff theme 2023-08-26 14:19:03 -04:00
8e4564fe48 [web] Fix titles 2023-08-26 12:32:39 -04:00
bb722b437e [web] Improve modals 2023-08-26 12:30:22 -04:00
863254f846 Add icons 2023-08-26 11:52:57 -04:00
c1d86146af Improve navbar and add dark theme 2023-08-26 11:41:37 -04:00
fcc23d5da9 [web] Improve login page 2023-08-26 11:22:43 -04:00
efeb27516b [web] Improve admin auth 2023-08-26 11:07:09 -04:00
c10eb8cc87 Update web deps 2023-08-23 22:06:53 -04:00
efb47d25d1 [web] Show output in submissions 2023-05-09 19:44:25 -04:00
83b5d75ed1 [web] Sort scoreboard 2023-05-09 16:59:43 -04:00
2f06247f6d [web] Add output to review page 2023-05-09 16:51:19 -04:00
bd91cb7044 [web] Auto refresh submisisons 2023-05-09 16:20:23 -04:00
544f5390cd [web] Working scoreboard 2023-05-08 21:21:53 -04:00
1582e7a480 [web] Generate team passwords 2023-05-08 15:11:06 -04:00
4971fb4851 [web] Contest team logins 2023-05-08 14:54:00 -04:00
19f49089e8 [web] Restrict submission from sandbox 2023-05-08 14:37:34 -04:00
51ff743d98 [web] Handle auto grading submissions 2023-05-08 13:58:47 -04:00
85b1a48dd8 [web] Recreate repos and start contest 2023-05-07 17:32:57 -04:00
1e84b54176 [web] Run java files 2023-05-07 16:30:56 -04:00
Admin
c901e3ac42 [web] GET for team data 2023-05-06 12:36:52 -04:00
Admin
d43ffb680a Login with extension 2023-05-06 00:01:27 -04:00
Admin
e41b19f660 Fix git username 2023-05-01 20:00:04 -04:00
a60e7b3559 Add git config options 2023-05-01 19:47:34 -04:00
29eaecc764 Make repos work 2023-05-01 19:21:56 -04:00
d37b94c465 create git repos 2023-05-01 14:16:31 -04:00