Testing and scoring
The CLI smoke suite proves only the initial executable lifecycle and framing. Each feature needs focused checks and its linked public cases before the team claims implementation or points.
Levels of evidence
| Level | Purpose | Evidence |
|---|---|---|
| Module checks | Page/row encoding, buffer eviction, B+ tree invariants, parser AST | Focused test results for changed interfaces |
| SQL fixtures | Exact command behavior, diagnostics and unchanged state | Input plus batch output in an isolated data directory |
| Restart checks | Durable metadata, records and indexes | Separate processes before and after clean exit/EOF |
| Public grader | Dependency-aware required/optional behavior | Exact test revision, flags, log and score |
| Course CI | Official course environment and recorded grade | Pipeline link and tested commit |
| Performance | Correctness under realistic data and memory | Same-result comparison, elapsed time, page reads and process memory |
Required suite
The public tests define 62 required raw points across database/table commands, data operations, queries, two-table joins, keys, ALTER and indexes. Data loading is a prerequisite even when its own case has zero points. Do not skip a required case merely because its score is zero.
# Inside a prepared Linux environment, with CSVs mounted at /mnt/data:
make BUILD_DIR=build/course CMAKE_BUILD_TYPE=Release check
cd /path/to/dbs-testcase
python3 runner.py -f data query join pk fk comb index -- /absolute/path/to/build/course/dbs
Install the public grader's own pinned dependencies separately. Its runner appends -b, initializes the engine, follows case dependencies, and may restart the process. Use -c only for focused debugging with known prepared prerequisites, not as proof of the complete suite.
The course repository's testcase.yml starts with no_use while functionality is absent. Enable flags only as the matching local cases pass. Keep the TA .gitlab-ci.yml byte-for-byte intact; its wrapper validates a hash. Ordinary branches expose manual grading; ci snapshots trigger it automatically.
Batch fixture discipline
Store a complete setup and one command under test. Capture output for the command alone, or explicitly include setup output. SELECT row order is unrestricted unless ORDER BY applies. FLOAT prints exactly two decimal places. Check empty results, no-op UPDATE, duplicate nonunique index keys, rejected constraints, and restart after mutations.
Resource measurements
Use the supplied eight CSV files rather than committing them. Large-data cases refer to /mnt/data/*.csv, so mount the local test-data/tpch directory there in Linux. Monitor total virtual memory under the course limit, not only the buffer-pool allocation. Report warm/cold cache behavior and build flags for performance comparisons.
Current grading sheet
The supplied 2026 scoring sheet supersedes the early-semester slide weights.
| Component | Raw acceptance points | Contribution to course |
|---|---|---|
| Required automated tests | 62 | 46.5 |
| Required live acceptance | 25 | 18.75 |
| Optional work | 13 | Up to 9.75 |
| Project report | Separate | 5 |
| Individual product survey | Separate | 20 |
Acceptance raw points are multiplied by 0.75. Optional CI displays up to 18 raw in the test UI, scaled to 9 in the scoring sheet, with up to 4 additional live optional points. All required automated cases must pass before optional points count. Live acceptance includes code-understanding questions; both teammates must understand the implementation.
Verify final submission details against current announcements. This site is an implementation manual, not a substitute for the final report or the individual survey.
Primary references
- Official runtime and persistence rules
- Frontend output contract
- Public grader revision
- Supplied scoring-sheet image: tracked in the private course repository at
docs/course/scoring-sheet.png.