Skip to content

lecture-dp: save-cache one-liner, cache-on-merge job, shallow checkout #149

Open

Description

@mmcky

The lecture-dp consumer items from #92 Phase 1. Work lands in QuantEcon/lecture-dp.

Activity

  1. added
    enhancement
    on Aug 13, 2026
  2. mmcky commented on Nov 4, 2026

    @mmcky
    ContributorAuthor

    From the 2026-10-06 codebase review (finding M3; record: .qe/dev/log/2026-10-06-codebase-review.md, #220).

    Before save-cache is turned on here, it is worth bounding the cache storage it adds:

    • With save-cache: 'true', restore-jupyter-cache keys on the run ID (restore-jupyter-cache/action.yml:101-121) and registers a job-end save (:173-180). Every successful pull-request run therefore adds a full _build entry, and a save on every push to main adds another. GitHub evicts the least recently accessed caches when a repository passes its budget (10 GB by default), and an eviction reads as an ordinary miss in the status report.
    • build-jupyter-cache already stores the execution cache twice: inside _build, and again as its own jupyter-cache-… entry (build-jupyter-cache/action.yml:385-397). No template restores the second copy.

    Suggested to ship with the rollout:

    • A pull_request: closed workflow that deletes the caches scoped to that pull request, which is GitHub's documented cleanup pattern. Deleting from inside the pull-request run does not work: a fork's token is read-only.
    • The storage arithmetic (size of _build × open pull requests × pushes, against the budget) in the save-cache description.
    • A decision, made with Stale-asset republication: default templates to cache-type execution, or prune html inside restore-jupyter-cache #160, on making the separate execution-cache save opt-in through a new input. Keep the default unchanged for one release, since @v0 callers float, and add a CHANGELOG note.
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