Skip to content

Environment & config reporting: publish-time manifest + central data store #30

Open

Description

@mmcky

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-136 writes {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); no schema_version, environment, digest or cache/runner/duration fields, and nothing here repository_dispatches.
  • Opt-in and tag-only: gated on create-release-assets == 'true' (:82, default 'false' at :16); :90 exits early when GITHUB_REF_TYPE != tag.
  • Computed then discarded: setup-environment/action.yml:35-41 outputs container-mode and conda-cache-hit; :207 runs pip list 2>/dev/null || conda list into a log group.
  • No digest source: markers containers/quantecon-build/Dockerfile:100-103 and containers/quantecon/Dockerfile:99-101 carry image=, build_date=, variant= (build image only), no tag/digest, and setup-environment/action.yml:175 parses only image=. Resolve it in the workflow or bake it into the marker at build time; .github/workflows/test-container.yml:99 already docker manifest inspects :latest from 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/or setup-environment) emits the effective-environment manifest and dispatches it to status-lectures. Effective = resolved conda list/pip freeze, container digest/tag, cache hit/miss, build duration, runner.
  • Daily backstop (secondary): scheduled scrape of _config.yml + environment.yml for 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.

Activity

  1. added
    infrastructure
    enhancement
    and removed
    infrastructure
    on Aug 11, 2026
  2. mmcky commented on Nov 4, 2026

    @mmcky
    ContributorAuthor

    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 to jq ..

    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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions