Repository navigation
Student artifacts: populate the home_tar manifest; do not archive the primary user's tree twice - #110
Merged
mfthomps merged 1 commit intoSep 26, 2026
Conversation
… primary user twice - CheckTars.py wrote the per-image home_tar manifest from `tar czf` stdout, which is empty, so the manifest never listed anything and home_tar seed files (documents, bookmarks, notes) were collected into the student .lab archive whenever the image was built the same day the lab was started. `tar czvf` produces the list the designer guide describes. - Student.py otherUsers() skipped only the primary user's top directory and then walked into its subdirectories, so every deliverable appeared a second time under other_users/<primary user>/. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MQfHVX14NCvhJwMM4BqDpL
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.
Two small fixes in the student-artifact path (stoplab -> .lab archive), found while auditing what our students' archives contain.
CheckTars.py: the per-image
home_tarmanifest (config/<image>-home_tar.list) is written from the stdout oftar czf ..., which prints nothing, so the manifest is always empty andStudent.pynever skips thehome_tarseed files the lab designer guide ("Large or numerous files in the home directory") says are excluded.tar czvfproduces the list. This matters whenever the image is built the same day the lab is started (designer/instructor test runs); for older images the modify-time rule already hides them.Student.py
otherUsers(): it skips only the exact primary-user home directory and thenos.walkdescends into its subdirectories, so every file under the primary user's home is archived a second time underother_users/<primary user>/. Skip the whole subtree.Both verified on Ubuntu 24.04 (noble) containers: the archive now holds the student's edited deliverables once, plus
.local/resultand bash histories, and no seed files.🤖 Generated with Claude Code
https://claude.ai/code/session_01MQfHVX14NCvhJwMM4BqDpL