feat: interactive autograded workspace for Module 01 (labs + capstone) - #1
Merged
Merged
Conversation
…one) Replace the doc-only module with a work-along starter workspace for the LMS code-server: bats-graded labs plus a capstone, auto-discovered by the existing scripts/grade.mjs autograder. - 16 exercises (labs 00-14 + capstone core), each README + executable solution.sh starter (# TODO only, set -euo pipefail) + tests/*.bats + fixtures. - Sandbox-safe gradable cores: parse os-release, survey a tree, recover logs, permissions, group membership, log investigation, pipeline, dotfiles symlinks, onboarding, top-CPU PID, listening ports, ssh config, missing packages, cron schedule, df threshold; capstone integrates world-writable + disk + packages. - Root README rewritten as a work-along starter guide (quick start, exercises table, grading/submission). Resources, devcontainer, and submission templates kept. Verified: stubs 9/49 (RED, exit 1); reference solutions 49/49 (GREEN, exit 0), shell-syntax clean. No answer keys shipped.
Forge SWEXP — Module 01 autogradeScore: 9/49 tests (18%) · Shell syntax: ✅ clean
Keep going — open each exercise folder, complete the |
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.
Interactive autograded workspace — Module 01 (Linux & Command Line)
Converts the doc-only module into a work-along starter workspace for the Forge LMS code-server. Students edit each
solution.sh, runnpm test, and push — the existingscripts/grade.mjsautograder (unchanged) discovers every folder with atests/dir and posts a score to CI / the PR.Structure
Each exercise =
README.md+ executablesolution.sh(starter# TODOs,set -euo pipefail, no working code) +tests/<name>.bats+fixtures/(where needed). Bats pattern matches the 3 reference labs:mktemp -dwork dir, runsbash "$SOL" …, asserts effects/output.Exercises (16 total, 49 tests)
labs/lab-00-environmentos-release, printPRETTY_NAMElabs/lab-01-filesystem-surveylabs/lab-02-file-recoveryfind*.log→ copy intorecovered/labs/lab-03-permissionslabs/lab-04-users-groups/etc/grouplabs/lab-05-log-investigationlabs/lab-06-pipelinelabs/lab-07-dotfileslabs/lab-08-onboarding-scriptlabs/lab-09-process-management%CPUPID fromps auxlabs/lab-10-networkingss -ltnlabs/lab-11-ssh~/.ssh/configHost blocklabs/lab-12-packageslabs/lab-13-schedulinglabs/lab-14-resourcesdfuse% thresholdassignments/capstoneThe full system-state work (real
useradd, setgid dirs,sshdhardening, systemd timers, idempotentprovision.sh) stays in the LMS box; each README points there.resources/,.devcontainer/, and the submission templates are kept.Verification
9/49 tests (18%)→ RED,exit 1, shell-syntax clean.49/49 tests (100%)→ GREEN,exit 0, shell-syntax clean, including the 3 pre-existing reference labs.Not fully autogradable (by design)
The labs grade a sandbox-safe core only. The real system-state outcomes — provisioning a box, creating users/setgid dirs, hardening
sshd, installing packages, systemd timers, and the full CAP-9000 deliverables (provision.sh, RUNBOOK/SECURITY,v1.0-capstonetag) — are performed and reviewed in the LMS code-server, not by these bats tests.