idstack
idstack copied to clipboard
course-export Canvas push: unchecked HTTP codes, no timeout, duplicates on re-run
The publish and add-to-module curl calls in skills/course-export/SKILL.md.tmpl (around lines 673, 712, 751 and 789) do not print the HTTP code. A failed call therefore leaves an orphan page with no warning. No call sets --max-time. If you run the export again, it creates duplicate pages.
Done when every call uses -w "\n%{http_code}" and --max-time 60, a non-2xx code stops the push with a message, and a re-run finds existing items by name. Extend the fake curl in test/test-skill-shell-zsh.sh.
Found in the pre-share reliability review.