#!/bin/bash #SBATCH --job-name=rank #SBATCH --time=5:00 # Judge the rank certificate a route pushed, in exact arithmetic. # # This script and the checker it runs come from the approved version of the project (the checkout the runner laid down # at the job's working directory); only the route's files come from the pushed commit ($SS_INPUT). A route that edits # checks/ therefore changes nothing about its own verdict. The score file goes to the job's working directory, where # the runner looks for the file named by "metrics" in scienceslack.json. set -euo pipefail REPO="$(cd "$(dirname "$0")" && pwd)" # the runner writes this script to the checkout's root and runs it there ROUTE="$SS_INPUT/${SS_ROUTE_DIR:-.}" python3 "$REPO/checks/verify.py" "$ROUTE" --metrics rank-metrics.json