Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions 2.0/problems/lsm_compaction_policy/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
tag: systems
runtime:
language: python
timeout_seconds: 900
environment: "Python 3.11+; submitted policy imports are restricted"
docker:
image: python:3.12-slim
environment:
cpus: 2
memory_mb: 4096
storage_mb: 4096
build_timeout_seconds: 1200
submission:
kind: file
path: /app/solution.py
19 changes: 19 additions & 0 deletions 2.0/problems/lsm_compaction_policy/evaluate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -euo pipefail

SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)

if [[ $# -gt 0 ]]; then
exec python3 "$SCRIPT_DIR/evaluator.py" "$@"
fi

for SOLUTION in "${FRONTIER_LSM_SOLUTION_PATH:-}" \
"/app/solution.py" \
"/work/execution_env/solution_env/solution.py"; do
if [[ -n "$SOLUTION" && -f "$SOLUTION" ]]; then
exec python3 "$SCRIPT_DIR/evaluator.py" "$SOLUTION"
fi
done

echo "Error: missing solution.py; tried FRONTIER_LSM_SOLUTION_PATH, /app/solution.py, and /work/execution_env/solution_env/solution.py" >&2
exit 1
Loading