Repository navigation
Open
Labels
enhancementImprovement to existing content or functionality
Description
Per @jstac: environment data is pull (status pages/dashboard), the weekly report shows only diffs. This issue is the producer: an env record per lecture repo, fed to QuantEcon/status-lectures (JSON store + Pages dashboard).
Today
publish-gh-pages/action.yml:126-136writes{name, tag, commit, timestamp, size_mb, file_count, repository}as a release asset beside the tarball and SHA256 checksum (publish-gh-pages/action.yml:144-152); noschema_version, environment, digest or cache/runner/duration fields, and nothing hererepository_dispatches.- Opt-in and tag-only: gated on
create-release-assets == 'true'(:82, default'false'at:16);:90exits early whenGITHUB_REF_TYPE != tag. - Computed then discarded:
setup-environment/action.yml:35-41outputscontainer-modeandconda-cache-hit;:207runspip list 2>/dev/null || conda listinto a log group. - No digest source: markers
containers/quantecon-build/Dockerfile:100-103andcontainers/quantecon/Dockerfile:99-101carryimage=,build_date=,variant=(build image only), no tag/digest, andsetup-environment/action.yml:175parses onlyimage=. Resolve it in the workflow or bake it into the marker at build time;.github/workflows/test-container.yml:99alreadydocker manifest inspects:latestfrom a host runner, for image size only. The digest makes Reproducibility: what would it take to rebuild a published lecture exactly? #129's first gap measurable: both images publish and consume mutable:latest.
Tasks
- Cadence first: per-tag = release provenance; per-gh-pages-deploy (small JSON, no tarball) = what status-lectures needs for drift detection and the dashboard-as-migration-tracker. Schema follows.
- Schema: versioned per-repo env record with
schema_version(report-data.json conventions): stub fields plus container image + digest,container-mode,conda-cache-hit, runner, build duration. - Publish-push (primary):
publish-gh-pages(and/orsetup-environment) emits the effective-environment manifest and dispatches it to status-lectures. Effective = resolvedconda list/pip freeze, container digest/tag, cache hit/miss, build duration, runner. - Daily backstop (secondary): scheduled scrape of
_config.yml+environment.ymlfor unmigrated repos, plus declared-vs-effective drift detection (store/scheduling in status-lectures; collection logic shareable from here). - Coverage: reporting via publish-push == migrated to the centralized actions, so the dashboard doubles as a migration tracker.
Fields: python · anaconda/conda pin · jupyter-book · theme · sphinx extensions (+versions) · execute mode + timeout · only_build_toc_files · launch buttons · intersphinx targets · container vs conda + tag/digest · runner (ubuntu vs AWS GPU) · GPU? · cache strategy · build duration.
Part of QuantEcon/meta#321.
Metadata
Metadata
Assignees
Labels
enhancementImprovement to existing content or functionality
Activity
mmcky commentedon Nov 4, 2026
From the 2026-10-06 codebase review (finding L5; record:
.qe/dev/log/2026-10-06-codebase-review.md, #220).A requirement for the manifest rewrite. Today's generator (
publish-gh-pages/action.yml:152-163) writes the asset name and the tag into JSON strings through a heredoc, with no escaping."is legal in a git tag name, and a tag containing one produces a manifest that does not parse. This was reproduced by rendering the heredoc with such a tag and piping the result tojq ..As of 2026-10-06 no QuantEcon publish tag contains one. But eight consumers write this manifest on every tagged publish (see #27), so the fix belongs in the rewrite:
jq -n --arg … --argjson …, orjson.dump), keeping field names, order and number types.", and check that the manifest parses and round-trips the tag.