You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Publish Exercise 00 and 11 student kits as a supplement - #69
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.
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.
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.
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
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: 4
Check name
Status
Explanation
Title check
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
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
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
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):
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.
SHA-256 checksums in a supplemental release: the packager writes SHA256SUMS.txt, and the kits test covers it.
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.
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.
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.
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.
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.
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
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.
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
Summary by CodeRabbit
New Features
Documentation