Skip to content

chore(examples): remove rotted legacy example/MnistExperiment (#235)#249

Merged
LeoBuron merged 1 commit into
developfrom
235-remove-legacy-example
Jun 25, 2026
Merged

chore(examples): remove rotted legacy example/MnistExperiment (#235)#249
LeoBuron merged 1 commit into
developfrom
235-remove-legacy-example

Conversation

@LeoBuron

Copy link
Copy Markdown
Member

What

Deletes the legacy example/ (singular) directory — the standalone MnistExperiment.c trainer — and points the clang-format CI gate at examples/ (plural).

Why

example/ was added to the build unconditionally (add_subdirectory(example)), but no CI job ever compiled it:

  • unit_test* build presets target all_unit_tests, never the default all.
  • The bit-parity job builds only --target train_c_*_v2.

So it rotted invisibly against the factory layer-init refactor and no longer compiles — linearLayerInit / reluLayerInit now take linearInit_t / layerQuant_t, with the old forms renamed *Legacy. cmake --build --preset examples on the default all target fails; that is #235.

MNIST coverage is unaffected: examples/ (plural) is the canonical example location, and UnitTestMnistSmoke keeps MNIST end-to-end coverage in CI.

Also

The clang-format gate globbed find src test example in both ci.yml and its devenv.nix mirror. With example/ gone that path would dangle, so it is switched to examples — which also closes a pre-existing blind spot: the plural examples' C files were never format-checked. Verified all currently clean.

Verification (local, macOS)

ASan / UBSan / pytest left to CI — unaffected by this change (macOS ASan init hangs locally).

Closes #235

Note: Closes auto-fires only on merge to the default branch (main); this targets develop, so #235 needs a manual close after merge.

🤖 Generated with Claude Code

example/ (singular) was added to the build unconditionally but no CI job ever compiled it, so it drifted against the current factory layer-init API and no longer builds (cmake --build --preset examples on the default 'all' target fails). Delete it: examples/ (plural) is the canonical example location, and UnitTestMnistSmoke keeps MNIST end-to-end coverage in CI.

Also switch the clang-format gate (ci.yml + its devenv.nix mirror) from the now-deleted 'example' to 'examples'. This removes the dangling find path and closes the pre-existing blind spot where the plural examples' C files were never format-checked (verified all currently clean).

Closes #235

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant