Commit Graph

89 Commits

Author SHA1 Message Date
8344cbe2bc [Web] Recreate repos for specific teams and during contest 2024-03-14 11:24:50 -04:00
1e849c8686 [Web] Add vscode launch json to cpp template 2024-03-13 20:44:47 -04:00
1a50a42355 [Web] Add newline to cmake template 2024-03-13 19:51:55 -04:00
126fa4ed44 [Web] Add link to public scoreboard on dashboard 2024-03-13 18:40:24 -04:00
aa1be3acb7 Merge feature/scoreboard-freeze 2024-03-13 18:35:30 -04:00
247bd010b8 [Shared][Web] Refactor shared components 2024-03-12 11:49:15 -04:00
0d0d22b730 [Web] Fix shared project importing 2024-03-11 20:29:02 -04:00
59ff0b4560 Merge security/web-sandbox-secret 2024-03-11 17:39:43 -04:00
David Poeschl
22bc7460df
Merge shared code for submission running (extension/sandbox) and team submission info (extension/web) (#16)
* Unify submission execution implementations into submissionRunner

* Unify contestMonitorTypes definitions between extension & web

* Make line separator in entry use LF

* Add entry.sh for sandbox

* Fix web imports

* Sandbox read from .env

---------

Co-authored-by: orosmatthew <orosmatthew@pm.me>
2024-03-11 13:32:23 -04:00
David Poeschl
4a3ff56e7a
VSCode Extension: Sidebar UI showing team's submissions, automatically updating and showing alerts as submissions are judged (#14)
* Add an Output Panel channel named "BWContest Log"

* Allow client logout when no contest

And make login/logout error messages clearer

* Show contest name & team name in Code extension side panel

* submission icons for sidebar panel

* Start VSCode extension "onStartupFinished"

instead of waiting for Sidebar to be opened

* VSCode: Sidebar UI for up-to-date problem/submissions status

- VSCode: poll API every 30 seconds to get contest metadata and all submission metadata for the logged in team
- The Sidebar now shows all problems in the contest, along with their submissions and overall status, which automatically updates as submissions are submitted & judged
- Web: "contestState" API to get all info for an activeTeam via their token
- Update submit API to return the submission id, allowing the VSCode UI to immediately render it as Pending without waiting for a polling cycle
-

* Add "Compilation Failed" message to submissions that fail to build

* Contest Import - Option to create repos & immediately activate the imported contest

Useful for testing with old contests (including the submissions)

* Test/Submit panel, use fixed-width font in input/output areas

* Fix build error for 'pluralize'

* Clear all state & halt polling loops on logout, restart them on login

* Improve the debug fastPolling option

- Toggleable via package.json config
- Setting the option changes the initial state as well as ability to toggle states

* Web project 'npm run format'
2024-03-05 17:50:16 -05:00
1c78b90643 [web] Implement public scoreboard with updating 2024-02-26 19:52:47 -05:00
a4efcdd6e9 [web] Update deps 2024-02-26 14:35:18 -05:00
366fe93405 Initial public scoreboard 2024-02-26 13:52:55 -05:00
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