Skip to content

Publish Exercise 00 and 11 student kits as a supplement - #69

Merged
sonukapoor merged 7 commits into
mainfrom
release/student-kit-supplement
Nov 30, 2026
Merged

sonukapoor merged 7 commits into
mainfrom
release/student-kit-supplement

Conversation

@sonukapoor

@sonukapoor sonukapoor commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

Closes #67

Exercise 00 now exports an offline browser worksheet with six locally linked activities and JSON submission. The kit release command can select just the requested exercises. Downloads and the version footer can display a supplemental release, preserving the pinned links to the existing 22 archives from Exercises 01–10.

The supplemental edition contains two student ZIPs, one for Exercise 00 and one for Exercise 11, and SHA256SUMS.txt. No existing release assets change. The supplement will be published and anonymously verified before this PR merges.

Verification

  • Scanned both ZIP inventories for answer materials, unsafe links and missing relative Markdown targets. Extracted both files and checked SHA-256.
  • Followed all six section links in Chrome from the extracted Exercise 00 ZIP; downloaded and graded its independent JSON form at 7/7.
  • Exercise 11 starter printed 13 passed / 9 failed as documented. After applying the teaching repair to a disposable extraction, all 22 checks passed.
  • Checked the production build, download mappings, SEO, and the 320px and 1440px Downloads views. The 01–10 ZIP URLs still use the original release.
  • Narrow-screen Downloads

Summary by CodeRabbit

  • New Features

    • Added a downloadable student kit for the CVE lookup exercise, with a worksheet, submission template, and instructions.
    • Downloads now show the release and ZIP file for each available exercise kit, including kits published in supplemental releases.
    • Added links to supplemental releases and a student-kit resource in the CVE lookup lesson.
    • Release packaging can now create archives for selected exercises.
  • Documentation

    • Updated instructor guidance for identifying and distributing exercise kits from different releases.
    • Expanded student-kit and release download instructions.

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The change adds Exercise 00 to the student-kit inventory, supports building and publishing supplemental student-kit archives, and updates the website to display release tags and download links for each exercise.

Changes: Supplemental student-kit releases

Layer / File(s) Summary
Add Exercise 00 to the student-kit inventory
website/scripts/content.mjs, tooling/package-student-kit.mjs, exercises/00-cve-lookup/student-kit-readme.md, website/scripts/guided-content.mjs, website/tests/content.test.mjs, website/tests/guided-content.test.mjs, website/tests/kits.test.mjs
The inventory and packaging support the Exercise 00 browser kit. The lesson includes its student-kit resource and instructions. Tests check the kit inventory, archive contents, and assessment link.
Build selected archives and define supplements
website/scripts/package-releases.mjs, website/releases.json, website/README.md
The release packager accepts selected exercise names and rejects unknown names. Release metadata lists the supplemental edition for Exercises 00 and 11. The README describes archive creation and release verification.
Resolve and display exercise release editions
website/scripts/release-availability.mjs, website/src/pages/downloads.js, website/src/theme/Footer/Copyright/index.js, website/scripts/browser-smoke.mjs, website/scripts/check-download-build.mjs, website/tests/release-availability.test.mjs, docs/instructor-quickstart.md
kitReleaseTag checks supplements before the base release. The Downloads page links each exercise to its assigned release, and the footer displays supplemental release links. Download checks and instructor guidance use exercise-specific release information.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant Downloads
  participant kitReleaseTag
  participant releases.json
  Downloads->>kitReleaseTag: Resolve tag for exercise
  kitReleaseTag->>releases.json: Check supplements, then base release
  releases.json-->>kitReleaseTag: Return edition metadata
  kitReleaseTag-->>Downloads: Return tag or null
  Downloads->>Downloads: Render release and ZIP links or pending status
Loading

Possibly related issues

Possibly related PRs

  • sonukapoor/cve-lite-classroom#56 — It sets release URLs for the existing Exercise 01–10 archives; this PR extends the release-link mapping to the supplemental kits.

Suggested reviewers: nachiket-roy

Merge Risk: Minimal · up to e39e6 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: publishing the Exercise 00 and Exercise 11 student kits as a supplemental release. The raw summary and objectives confirm that the supplement, its two ZIPs, and the do…
Description check Passed The description follows the template's main sections. It has a linked issue (Closes #67) and a Summary that covers the Exercise 00 worksheet, the selective kit release command, and the supplemental Do…
Linked Issues check Passed Issue #67 coding requirements, judged from the whole-PR summary (mergeBase 45316f6 to head e39e698):

1. Student-only ZIPs for Exercises 00 and 11: tooling/package-student-kit.mjs adds a `00-cve-loo…
Out of Scope Changes check Passed Each changed area supports the issue scope:
- Packaging and release selection (package-student-kit.mjs, package-releases.mjs): required to build and select the supplemental ZIPs.
- Release tag res…
Full details: Title check

Explanation

The title names the main change: publishing the Exercise 00 and Exercise 11 student kits as a supplemental release. The raw summary and objectives confirm that the supplement, its two ZIPs, and the download and release-script changes match this title.

Full details: Description check

Explanation

The description follows the template's main sections. It has a linked issue (Closes #67) and a Summary that covers the Exercise 00 worksheet, the selective kit release command, and the supplemental Downloads and footer display. It also has a Verification section with the checks run and their results. The Checklist is missing. The Verification section does not explain checks not run, such as the anonymous verification of the published supplement, which the author says will happen before merge. The description also does not state whether the Exercise 00 worksheet and Exercise 11 kit were reviewed for lesson-workflow and instructor-material changes. The Downloads view screenshot is linked to a branch URL, not embedded, and the ignored PNG file is not available for review.

Resolution

Consider adding the template Checklist, stating which checks were not run (such as the post-publish anonymous verification), and confirming the instructor and student workflow review for the lesson change.

Full details: Linked Issues check

Explanation

Issue #67 coding requirements, judged from the whole-PR summary (mergeBase 45316f6 to head e39e698):

  1. Student-only ZIPs for Exercises 00 and 11: tooling/package-student-kit.mjs adds a 00-cve-lookup browser-kit path that copies the README, license, student app, worksheet, submission template and Markdown parts. website/scripts/package-releases.mjs accepts exercise names and packages only the requested kits. website/tests/kits.test.mjs checks that ZIP output includes the CVE lookup kit and that a two-exercise request yields only those ZIPs plus SHA256SUMS.txt.
  2. SHA-256 checksums in a supplemental release: the packager writes SHA256SUMS.txt, and the kits test covers it.
  3. Edition identification in Downloads and footer: website/src/pages/downloads.js resolves each kit's tag through kitReleaseTag and lists release.supplements. website/src/theme/Footer/Copyright/index.js renders a link per supplement.
  4. Preserve Exercises 01–10 links: kitReleaseTag in website/scripts/release-availability.mjs checks supplements first and falls back to the base release. release-availability.test.mjs covers base-assigned, supplement-assigned and unassigned exercises. check-download-build.mjs and browser-smoke.mjs now expect per-kit tags.
  5. Container images on an independent schedule: no changed file in the summary touches container image release logic. Requirement met by absence of change.

Non-coding items: publishing the supplemental release and its anonymous verification are operational steps. They are not assessed here. The PR description states they occur before merge.

Uncertainty: the summary does not list changes to the worksheet source files. The packager copies them. Whether they changed in this PR is not established, but the issue does not require worksheet edits.

Full details: Out of Scope Changes check

Explanation

Each changed area supports the issue scope:

  • Packaging and release selection (package-student-kit.mjs, package-releases.mjs): required to build and select the supplemental ZIPs.
  • Release tag resolution and download/footer display (release-availability.mjs, downloads.js, footer, releases.json supplement entry): required for edition display and preserved 01–10 links.
  • Tests (kits, release-availability, content, guided-content, browser-smoke, check-download-build): verify the above.
  • content.mjs track assignment: needed so exercise 00 uses the browser track and exercise 04 remains a browser kit, as the packager requires.
  • guided-content.mjs resource entry: links the lookup kit README from its lesson. This supports the downloadable kit.
  • website/README.md and docs/instructor-quickstart.md: document the supplemental release and the per-exercise release citation.
  • student-kit-readme.md: student instructions for the Exercise 00 kit.

No changed area in the summary is unrelated to #67. The PNG screenshot is excluded from review and is not evaluated.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 45316f6 and e39e698.

Files ignored due to path filters: 1

  • assets/kit-downloads/supplement-downloads-320.png is excluded by !**/*.png
Files selected for processing: 17

  • docs/instructor-quickstart.md
  • exercises/00-cve-lookup/student-kit-readme.md
  • tooling/package-student-kit.mjs
  • website/README.md
  • website/releases.json
  • website/scripts/browser-smoke.mjs
  • website/scripts/check-download-build.mjs
  • website/scripts/content.mjs
  • website/scripts/guided-content.mjs
  • website/scripts/package-releases.mjs
  • website/scripts/release-availability.mjs
  • website/src/pages/downloads.js
  • website/src/theme/Footer/Copyright/index.js
  • website/tests/content.test.mjs
  • website/tests/guided-content.test.mjs
  • website/tests/kits.test.mjs
  • website/tests/release-availability.test.mjs

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@sonukapoor

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@sonukapoor
sonukapoor merged commit 13f93bc into main Nov 30, 2026
7 checks passed
@sonukapoor
sonukapoor deleted the release/student-kit-supplement branch November 30, 2026 15:57
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.

Publish student kits for Exercises 00 and 11

1 participant