Skip to content

fix: unbreak the Week 9 assignment template (CI startup + grader false-negatives)#4

Open
lassebenni wants to merge 2 commits into
mainfrom
fix/autograder-and-ci-permissions
Open

fix: unbreak the Week 9 assignment template (CI startup + grader false-negatives)#4
lassebenni wants to merge 2 commits into
mainfrom
fix/autograder-and-ci-permissions

Conversation

@lassebenni

Copy link
Copy Markdown
Collaborator

Fixes two bugs in the Week 9 assignment template so cohort forks don't inherit them. Both were found and fixed in the live cohort fork c55-data-week-9 (grader fix merged there as PR #8); this brings the template into line.

1. CI never runs (grade-assignment.yml)

The grade job granted only issues: write + pull-requests: write, which forces contents: none. The reusable auto-grade.yml@main needs contents: read (checkout), so GitHub rejects it at load time → startup_failure, 0 jobs. Fix: add contents: read (matches the working c55-data-week-6).

2. Grader fails correct submissions (.hyf/test.sh)

  • file_is_filled() failed any file containing the word "TODO", so students who left the scaffold's -- TODO: guide comments above finished, correct queries scored as empty stubs. Now it strips SQL comments and only flags a line whose content begins with TODO.
  • vw_dim_zones / vw_fact_trips detection missed schema-qualified names (dev_x.vw_dim_zones) — the own-schema pattern the assignment requires. The regex now allows a <schema>. prefix.

Verified in the cohort fork against 7 real student PRs: scores went 15/30/15/15/85/30/95100/100/95/95/100/100/95, with genuine gaps still caught. bash -n passes.

Note: grade-assignment.yml runs on pull_request_target, so this PR's own check still uses the base (broken) workflow and will startup_failure until merged.

🤖 Generated with Claude Code

Lasse Benninga and others added 2 commits July 6, 2026 17:32
…tartup

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…alified views

Same fix merged into the c55-data-week-9 cohort fork (PR #8): file_is_filled no
longer fails on any TODO (strips SQL comments, only flags start-of-line
placeholders), and vw_dim_zones/vw_fact_trips detection allows a schema prefix.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant