Skip to content

Land the unit-label removal and the Drive fallback on main - #5

Merged
stefan-jansen merged 3 commits into
mainfrom
feat/long-panel
Sep 7, 2026
Merged

Land the unit-label removal and the Drive fallback on main#5
stefan-jansen merged 3 commits into
mainfrom
feat/long-panel

Conversation

@stefan-jansen

Copy link
Copy Markdown
Contributor

PR #3 was based on feat/long-panel rather than main, so merging it landed its commits on that branch instead. This carries them the rest of the way.

  • a79a38a contracts no longer name a Foundations unit
  • 045c057 setup() falls back instead of raising when Drive cannot be mounted

A unit number belongs to one course's outline, and this package serves more than
one course. A Research to Production student is handed all twenty components,
never sat the Foundations unit that writes the baseline, and would have read
"unit 2.5" in their own submission report, in `describe()`, and in `status()`.

It also drifted, in three directions at once. Foundations' components.md had
thirteen hand-corrected rows while `Contract.units` kept the old numbers, and
eleven module docstrings here kept a third set - allocator's said 8.1 and 8.2
where the registry said 7.1 and 7.2, and nothing could have caught it, because a
docstring is not read by anything.

So `Contract.units` goes, with `Conformance.unit`, the report's per-component
`unit` key, the `status()` column, the stamp's `unit` field, and every unit
number in a docstring or a message - replaced by the thing it referred to, which
is what the reader needed anyway.

foundations-dev@c2d40ec picks the mapping up next to the units it describes,
where a renumbering that moves a folder fails its build. Its components.md
regenerates byte for byte identical, which is the evidence nothing was lost.

118 passed, 1 skipped.
google.colab being importable is not evidence a Drive can be mounted. The
published Colab runtime image ships the package with no backend behind it, so
drive.mount raises NotImplementedError and setup() dies before home() ever
consults the ML4T_FOUNDATIONS_HOME override that exists for this case. Every
Foundations notebook that calls setup() therefore fails the repo's own Colab
image check.

mount_drive now reports whether MyDrive is actually there, so a mount that
raises and a mount that returns without producing the folder both send home()
to its fallback.
Copilot AI lite review requested due to automatic review settings September 7, 2026 16:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@stefan-jansen
stefan-jansen merged commit 9a3266a into main Sep 7, 2026
17 checks passed
@stefan-jansen
stefan-jansen deleted the feat/long-panel branch September 7, 2026 17:14
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