feat: Week 10 assignment template (support files + stubs, no answers)#2
Merged
Merged
Conversation
Template repo for the Week 10 dbt assignment (Daily Borough Stats Mart). Contains everything around the dbt project the student builds: - README: task-oriented setup guide (dbt init flow, connection, local grading, submission) - TODO stubs for every file the assignment chapter's project-structure block names, except dbt_project.yml (creating it is Task 1) and with Task 5's tests deliberately NOT pre-filled (packages.yml empty, YAML test blocks replaced by TODO comments) so the grader's points are earned, not shipped - .hyf/test.sh static autograder (verified ladder: bare stubs score 20/100 fail, a filled reference solution scores 100/100 pass) - .github/workflows/dbt-parse.yml: CI validates project structure and Jinja via dbt parse with dummy credentials once dbt_project.yml exists (no database connection needed) - .devcontainer with python 3.11 + dbt-postgres preinstalled - Removes the org-template task-1/ task-2/ placeholder dirs Replaces PR #1, which pre-filled dbt_project.yml, packages.yml, and the YAML test blocks (answer leakage for Tasks 1 and 5). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01C7Kww7NRmLURcEhXb1VS69
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.
What
Template repo for the Week 10 dbt assignment (Daily Borough Stats Mart). Students generate their submission repo from this template, then build the dbt project themselves per the assignment chapter.
Design principle
The repo contains the support files around the dbt project, not the project itself:
dbt_project.yml: creating it viadbt initis Task 1. The README documents thedbt init+ move flow.packages.ymlis an empty stub and the YAML schema files carry TODO comments where Task 5's tests go, so the autograder's points are earned, not shipped in the template.safe_dividemacro, singular test,reports/answers.md,AI_ASSIST.md.profiles.yml.examplewithenv_var()references;profiles.ymlis git-ignored and the grader flags it as a blocker if committed.Autograder
.hyf/test.sh: static checks (file presence, secrets hygiene, SQL patterns, docs artefacts), 100 points, passing 60..github/workflows/dbt-parse.yml: on PRs, runsdbt deps+dbt parsewith dummy credentials (no DB connection) oncedbt_project.ymlexists; warns-and-skips before Task 1 is done. Verified locally: parse exits 0 on the reference solution with dummy env vars..devcontainer/: python 3.11 + dbt-postgres preinstalled.Replaces #1
#1 pre-filled
dbt_project.yml,packages.yml, and the YAML test blocks, which leaks the answers to Tasks 1 and 5. The stub SQL/template files from #1 were solid and are reused here.🤖 Generated with Claude Code
https://claude.ai/code/session_01C7Kww7NRmLURcEhXb1VS69