Skip to content

Delete the two migrated copies, now that every site is republished - #836

Merged
mmcky merged 1 commit into
mainfrom
datasets/track-a-orphan-delete
Aug 12, 2026
Merged

Delete the two migrated copies, now that every site is republished#836
mmcky merged 1 commit into
mainfrom
datasets/track-a-orphan-delete

Conversation

@mmcky

@mmcky mmcky commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Phase 2 of wave A4. #834 repointed the reads and kept the files; this removes them, now that nothing anywhere reads them.

File Size
lectures/_static/lecture_specific/simple_linear_regression/life-expectancy-vs-gdp-per-capita.csv 2,059,709 B
lectures/_static/lecture_specific/inequality/usa-gini-nwealth-tincome-lincome.csv 1,268 B

Both now live at raw.githubusercontent.com/QuantEcon/data-lectures/main/lectures/, byte-identical (ec5d3235… / bed9074a…) and hash-checked by CI there on every PR. The bytes are not lost.

data.ipynb is kept. It is a notebook, not a dataset; inequality.md:618 links to it as a reader-facing artifact and that link is untouched. A frozen copy also landed in data-lectures as the dataset's provenance record, but this is the copy readers actually open. (It does not run under the pinned pandas 3 — that is #835, deliberately not fixed here.)

The gate is four publishes, not one

Merging a repoint changes main, not a published site — intro, lecture-intro.zh-cn and the canary all publish on a publish* tag. Skipping that is exactly what QuantEcon/workspace-lectures#28 recorded, and this time there is real deletion behind it. All four are now republished, and every published artifact was re-fetched and grepped:

Artifact refs to these paths
intro.quantecon.org — slr + inequality, .html and _notebooks/*.ipynb 0
lecture-intro.zh-cn — the same four 0
test-actions-lecture-intro — both pages 404 (trimmed toc)
lecture-wasm/simple-linear-regression 0
lecture-python-intro.notebooks 0

Two things that would have produced a false pass. The canary's pages 404 rather than updateonly_build_toc_files: true plus a trimmed _toc.yml, and deploy-pages replaces the whole artifact, so verify by 404 and not by content. And lecture-wasm serves hyphenated slugs (/simple-linear-regression); checking /simple_linear_regression.html returns a 404 body that greps clean and looks like a pass.

Org sweep, re-run at deletion time

Not carried from an earlier snapshot — this is the rule that binds here.

  • 277 repos via the Trees API, including all 25 archived ones. gh search code does not index archived repos, which is how two .rst ancestors of a different file were missed in an earlier sweep.
  • One error: QuantEcon/quantecon-book-dp, which is empty. No truncated trees.
  • Path hits are only data-lectures' migrated copies plus the three remaining mirror-orphans.
  • An authenticated tarball content grep over the eight plausible consumers returns zero references to these paths. Authentication matters: 68 org repos are private and an anonymous fetch 404s on all of them silently.
  • Positive control: the same grep against the pre-repoint tree (77e553a) returns 3, so the clean result is a real zero.

Left deliberately

lecture-intro.zh-cn and test-actions-lecture-intro still hold their own byte-identical copies. Nothing reads those either, but they sit outside the audit's SCAN_REPOS, so deleting them moves no dashboard number while adding blast radius to two repos with no CI coverage of these files. They are Track X. lecture-wasm's two were deleted in its own repoint PR, where the audit does see the change.

The _static/lecture_specific/simple_linear_regression/ directory becomes empty and disappears; nothing references it, and neither _config.yml nor _toc.yml ever named either file.

Tracking: QuantEcon/workspace-lectures#23

Phase 2 of wave A4. #834 repointed the reads and
kept the files; this removes them, now that nothing anywhere reads them.

  lectures/_static/lecture_specific/simple_linear_regression/
      life-expectancy-vs-gdp-per-capita.csv      (2,059,709 B)
  lectures/_static/lecture_specific/inequality/
      usa-gini-nwealth-tincome-lincome.csv       (1,268 B)

Both now live at raw.githubusercontent.com/QuantEcon/data-lectures/main/lectures/,
byte-identical (sha256 ec5d3235… / bed9074a…) and CI-hash-checked there on every
PR. The bytes are not lost.

data.ipynb is KEPT. It is a notebook, not a dataset; inequality.md:618 links to
it as a reader-facing artifact, and that link is untouched. A frozen copy also
landed in data-lectures as the dataset's provenance record, but this is the copy
readers open. (It does not run under the pinned pandas 3 — that is #835, and
deliberately not fixed here.)

THE GATE, which is four publishes and not one. Merging a repoint changes `main`,
not a published site: intro, lecture-intro.zh-cn and the canary all publish on a
`publish*` tag. Skipping this is what QuantEcon/workspace-lectures#28 recorded,
and this time there is real deletion behind it. All four are now republished, and
every published artifact was re-fetched and grepped:

  intro.quantecon.org        slr + inequality, .html and _notebooks/*.ipynb   0
  lecture-intro.zh-cn        same four artifacts                              0
  test-actions-lecture-intro both pages -> 404 (trimmed toc; verify by 404,
                             not by content, since deploy-pages replaces the
                             whole artifact)                                  0
  lecture-wasm               /simple-linear-regression (hyphenated slug; its
                             inequality is commented out of myst.yml)         0
  lecture-python-intro.notebooks  refreshed 4s inside intro's publish run     0

ORG SWEEP, re-run at deletion time rather than carried from an earlier snapshot.
277 repos via the Trees API including all 25 archived ones — `gh search code`
does not index archived repos, which is how two `.rst` ancestors were missed in
an earlier sweep of a different file. One error, QuantEcon/quantecon-book-dp,
which is empty. No truncated trees. Path hits are only data-lectures' migrated
copies and the three remaining mirror-orphans; an authenticated tarball content
grep over the eight plausible consumers returns ZERO references to these paths,
with a positive control against the pre-repoint tree returning 3.

Left deliberately: lecture-intro.zh-cn and test-actions-lecture-intro still hold
their own byte-identical copies. Nothing reads them either, but they are outside
the audit's SCAN_REPOS so deleting them moves no dashboard number, and each adds
blast radius to a repo with no CI coverage of these files. They are Track X.
lecture-wasm's two were deleted in its own repoint PR, where the audit does see
the change.

The `_static/lecture_specific/simple_linear_regression/` directory becomes empty
and disappears; nothing references it. `_config.yml` and `_toc.yml` never named
either file.
Copilot AI lite review requested due to automatic review settings August 12, 2026 01:11
@netlify

netlify Bot commented Aug 12, 2026

Copy link
Copy Markdown

Deploy Preview for taupe-gaufre-c4e660 ready!

Name Link
🔨 Latest commit 8e60346
🔍 Latest deploy log https://app.netlify.com/projects/taupe-gaufre-c4e660/deploys/6a7bc851907fa70008a6b25a
😎 Deploy Preview https://deploy-preview-836--taupe-gaufre-c4e660.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes two previously migrated CSV assets from lecture-python-intro now that all published sites have been repointed and republished to read the byte-identical copies from QuantEcon/data-lectures.

Changes:

  • Delete the local copy of life-expectancy-vs-gdp-per-capita.csv from the simple_linear_regression lecture static assets.
  • Delete the local copy of usa-gini-nwealth-tincome-lincome.csv from the inequality lecture static assets.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
lectures/_static/lecture_specific/simple_linear_regression/life-expectancy-vs-gdp-per-capita.csv Removes the now-unused local CSV after repointing reads/downloads to data-lectures.
lectures/_static/lecture_specific/inequality/usa-gini-nwealth-tincome-lincome.csv Removes the now-unused local CSV after repointing reads to data-lectures.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

github-actions Bot commented Aug 12, 2026

Copy link
Copy Markdown

@github-actions
github-actions Bot temporarily deployed to pull request August 12, 2026 01:20 Inactive
@github-actions
github-actions Bot temporarily deployed to pull request August 12, 2026 01:21 Inactive
@mmcky
mmcky merged commit 191885f into main Aug 12, 2026
9 checks passed
@mmcky
mmcky deleted the datasets/track-a-orphan-delete branch August 12, 2026 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants