Title: id(roc-examples): roc-text-counter missing from rebuild-roc-examples.sh — roc-examples check rebuilds 7 of 8 pinned examples, checked-in text-counter.wasm never rebuilt · Issue #7909 · developing-today/code · GitHub
Open Graph Title: id(roc-examples): roc-text-counter missing from rebuild-roc-examples.sh — roc-examples check rebuilds 7 of 8 pinned examples, checked-in text-counter.wasm never rebuilt · Issue #7909 · developing-today/code
X Title: id(roc-examples): roc-text-counter missing from rebuild-roc-examples.sh — roc-examples check rebuilds 7 of 8 pinned examples, checked-in text-counter.wasm never rebuilt · Issue #7909 · developing-today/code
Description: Problem pkgs/id/examples/roc-text-counter (added today in 5a48553, #3181) is missing from the one enumeration that actually rebuilds the Roc examples, so its checked-in text-counter.wasm is never rebuilt by CI and no check notices if mai...
Open Graph Description: Problem pkgs/id/examples/roc-text-counter (added today in 5a48553, #3181) is missing from the one enumeration that actually rebuilds the Roc examples, so its checked-in text-counter.wasm is never r...
X Description: Problem pkgs/id/examples/roc-text-counter (added today in 5a48553, #3181) is missing from the one enumeration that actually rebuilds the Roc examples, so its checked-in text-counter.wasm is never r...
Opengraph URL: https://github.com/developing-today/code/issues/7909
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"id(roc-examples): roc-text-counter missing from rebuild-roc-examples.sh — roc-examples check rebuilds 7 of 8 pinned examples, checked-in text-counter.wasm never rebuilt","articleBody":"## Problem\n\n`pkgs/id/examples/roc-text-counter` (added today in 5a485537ed, #3181) is missing from the one enumeration that actually rebuilds the Roc examples, so its checked-in `text-counter.wasm` is never rebuilt by CI and no check notices if `main.roc` and the wasm drift apart.\n\n## Evidence (origin/main a97c23c7df)\n\n- `pkgs/id/scripts/rebuild-roc-examples.sh:5-13` — the rebuild list has 7 entries (lounge, roc-chat, roc-counter, roc-grid, roc-screen, territory, apps/tic-tac-toe/program). `examples/roc-text-counter` is not one of them.\n- `pkgs/id/flake.nix:382-398` — the `roc-examples` flake check (in the PR check list, `.github/scripts/id-pr-checks.txt:43`, run by id-check.yml) rebuilds the examples in its `beforeCheck` via exactly that script, then runs the sandbox lib tests and `cargo test --test toolchain_pin`. Whatever the script omits, the check never builds.\n- `pkgs/id/tests/toolchain_pin.rs:13-22` — `ROC_EXAMPLE_BUILDS` has 8 entries and *does* include `examples/roc-text-counter/build.sh` (the #3181 commit updated this list). The two enumerations of \"the Roc examples\" in the same repo now disagree, and the pin test only checks toolchain version strings in each build.sh — it never runs the build.\n- The checked-in artifact is load-bearing: `pkgs/id/src/web/world_ws.rs:1638` does `include_bytes!(\"../../examples/roc-text-counter/text-counter.wasm\")` for the new browser-websocket e2e tests, and `pkgs/id/src/sandbox.rs:2456` + `:2631-2638` measure its FUEL_BUDGETS baselines against the checked-in module. Both suites exercise whatever wasm happens to be committed, fresh or stale.\n- `.github/test-suite-registry.json` — the `id.roc.examples` row lists only `pkgs/id/examples/roc-world/**` as its paths and the registry has 0 mentions of `roc-text-counter`, so the registry does not flag the gap either.\n- Dedup: no open issue covers this. #7904 is the Rust analog (plaza-sdk/rust-counter run by no venue at all); #3883/#541 are the closed historical pin-and-rebuild work. This example *has* a venue — the venue's list is incomplete.\n\n## Why it matters\n\nThe roc-examples check exists so a pinned-toolchain change or a source edit that breaks an example build fails on the PR that causes it (#541/#3883). For roc-text-counter that protection is illusory: edit `main.roc`, forget to rebuild by hand, and every test stays green while shipping a wasm that no longer matches the source — the same stale-artifact failure mode as #7904, one directory over. The toolchain_pin/rebuild-list disagreement also guarantees the next new example repeats the mistake, because there are two lists to update and only one of them was.\n\n## Acceptance criteria\n\n- [ ] `pkgs/id/scripts/rebuild-roc-examples.sh` includes `examples/roc-text-counter`, and the `roc-examples` flake check rebuilds `text-counter.wasm` from `main.roc` with the pinned toolchain.\n- [ ] The rebuild list and `ROC_EXAMPLE_BUILDS` in `pkgs/id/tests/toolchain_pin.rs` cover the same set of examples (or one derives from the other / a test asserts they agree), so a future example cannot land in one list only.\n- [ ] The `id.roc.examples` row in `.github/test-suite-registry.json` names the example paths it actually covers, including `pkgs/id/examples/roc-text-counter/**`.\n- [ ] Verification: the roc-examples check (or a local run of the rebuild script in the pinned shell) builds text-counter alongside the other seven, and the sandbox + world_ws suites pass against the rebuilt module.\n","author":{"url":"https://github.com/apps/developing-today","@type":"Person","name":"developing-today"},"datePublished":"2026-11-09T02:02:52Z","url":"https://github.com/developing-today/code/issues/7909"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e23dfa0f-0832-82cc-5944-18d2b4303a2b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A5B0:3422CF:9E043E:CBD3FA:6B0633FB |
| html-safe-nonce | fbf6aa3274a482043806ba7b52f44218192f09f83abea0df2490f46487981819 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNUIwOjM0MjJDRjo5RTA0M0U6Q0JEM0ZBOjZCMDYzM0ZCIiwidmlzaXRvcl9pZCI6IjEyODkxNjI1ODQ5MDU2MjY2MTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 829a2a7a50596a346217466ee49cfe3d02a6b37df09737b2e385d1f876d0b758 |
| hovercard-subject-tag | issue:6278508869 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/7909/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f7d5af7be1ef00cc0897f8d22b74c32b0f1bb33aae097577a089bb67d8bb8e5b/developing-today/code/issues/7909 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f7d5af7be1ef00cc0897f8d22b74c32b0f1bb33aae097577a089bb67d8bb8e5b/developing-today/code/issues/7909 |
| og:image:alt | Problem pkgs/id/examples/roc-text-counter (added today in 5a48553, #3181) is missing from the one enumeration that actually rebuilds the Roc examples, so its checked-in text-counter.wasm is never r... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | developing-today[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | c3584c853cd39700ecff6e2cf8364295ffdb5313e571046c41cd2479270f7df0 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9eb3bb1597d09170a5f282cd38ae376dee1a5ec1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width