Commit Graph

172 Commits

Author SHA1 Message Date
baf2ad8b21 [web] Update Dockerfile 2024-01-16 20:19:18 -05:00
17cacf0f9e [web] Update docker compose example 2024-01-16 19:54:32 -05:00
128f0f2f33 [web] Increase body size limit 2024-01-16 19:43:14 -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
a0c72f83d4 Merge branch 'main' of https://github.com/orosmatthew/bw-hspc-contest-env 2024-01-15 18:39:47 -05:00
f5e8990c0a [sandbox] Add C# for sandbox 2024-01-15 18:39:47 -05:00
85d3b66b40 [extension] Fix tree kill import 2024-01-15 15:42:30 -05:00
213f3381d2 [extension] Update deps 2024-01-15 15:39:36 -05:00
2060d079c8 [sandbox] Update deps 2024-01-15 15:35:13 -05:00
23ca322e41 [web] Upgrade breaking dep svelte node adapter 2024-01-15 15:33:51 -05:00
3d15ebd80c [web] Fix broken team link 2024-01-15 15:32:44 -05:00
23ed2cda74 [web] Update deps 2024-01-15 15:31:18 -05:00
dependabot[bot]
f16613abf9
Bump follow-redirects from 1.15.2 to 1.15.4 in /extension/bwcontest (#11)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.2 to 1.15.4.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.2...v1.15.4)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-10 13:57:11 -05:00
27d2132bfa [sandbox] Update deps 2023-12-19 16:59:34 -05:00
a19950a094 [web] Upgrade major deps (Sveltekit 2) 2023-12-19 16:58:34 -05:00
48f97a8ffb [web] Update non-major deps 2023-12-19 16:49:17 -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
dependabot[bot]
9175386c87
Bump vite from 4.5.0 to 4.5.1 in /web (#8)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v4.5.1/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v4.5.1/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-17 11:31:05 -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
6ee97baa2f [sandbox] Update deps 2023-11-19 21:06:40 -05:00
d3090103bc [web] README 2023-11-19 21:05:29 -05:00
331d18ed3c [web] Update deps 2023-11-19 21:04:01 -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
2e11b32903 [web] Update README 2023-11-19 20:50:39 -05:00
d709109170 [web] Move repo management 2023-11-19 20:47:51 -05:00
1204525e17 [web] Add info about changing port in dev 2023-11-19 20:42:07 -05:00
609172aa68 [web] Typos 2023-11-19 20:37:06 -05:00
96b923be31 [web] Fix typo in README 2023-11-19 20:34:14 -05:00
024815795a Add better development instructions 2023-11-19 20:33:30 -05:00
c2f2131c17 Merge branch 'main' of https://github.com/orosmatthew/bw-hspc-contest-env 2023-11-15 21:01:49 -05:00
63fa791d4a [web] Fix template path, return team lang in API 2023-11-15 21:01:47 -05:00
93b18d6caa [extension] Add CSharp runner 2023-11-15 21:01:12 -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
9317974df7 [extension] Update engine version 2023-11-06 20:51:24 -05:00
dependabot[bot]
2dbf08afef
Bump postcss from 8.4.28 to 8.4.31 in /web (#5)
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.28 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.28...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-05 21:13:06 -05:00
7ca8a6aadc [sandbox] Update deps 2023-11-05 21:11:12 -05:00
52343e792f [extension] Update deps 2023-11-05 21:09:47 -05:00
68d0f35952 [web] Update deps 2023-11-05 21:05:35 -05:00
David Poeschl
f81f4124b4
Bugfix: Run the selected problem's code when teams Test in VSCode (#6)
It was previously always picking the first problem from the list (with a non-zero id).
2023-11-05 20:57:18 -05:00
David Poeschl
1583452a8a
gitignore entry for ".idea" (#7) 2023-11-05 11:06:45 -05:00
Matthew Oros
10257d8203
Update README.md 2023-11-02 18:09:11 -04:00
eb0a277982 [sandbox] Update deps 2023-10-18 14:32:48 -04:00
6f4ff540b6 [sandbox] Use node lts 2023-10-18 14:32:18 -04:00
42250f39e1 [web] Use lts node 2023-10-18 14:21:09 -04:00