feat: Add C++ sandboxed execution endpoint (auto-committed) - #3
Open
sumansahoo1 wants to merge 1 commit into
Open
feat: Add C++ sandboxed execution endpoint (auto-committed)#3sumansahoo1 wants to merge 1 commit into
sumansahoo1 wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Built the C++ sandboxed execution endpoint —
runCppController(writesSolution.cpp/input.txt, runsg++ -o solution Solution.cpp 2>&1 && timeout --signal=KILL 10s ./solutionvia the shared runner, surfaces compile stderr, saveslanguage:'cpp'), a gcc-based non-root-runnerDockerfile,POST /run-cppwithauthenticate+runCppLimiter, CI cpp-image build +server-testjob, and red-firstnode:testtests — and recreated the missingserver/src/services/sandboxRunner.js(singleKnown issues
The broken PreToolUse hook (
EACCESopening/app/scripts/lib/doom_loop_hook.py) blocks ALL Bash, so I could NOT commit or run the red-first tests — changes sit uncommitted in the working tree for the wrapper; AC4's real-Docker e2e and AC1's image-build are the documented Docker-required manual QA steps (Docker unavailable in-sandbox), with the route→controller→sandbox→DB seam (incl.submission.language==='cpp') covered by the unit test mocking the runner boundary.