chore: re-enable [10/10] no-internet models.dev sanity test once soaked

Open
#1,145 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
shell, typescript

Research direction

After v0.9.7 has been live for a cycle, read the D14 fix in 205a953d62 and inspect ModelsDev.Data() and fetchApi() to confirm the no-internet path is safe. Run test/sanity/phases/resilience.sh and re-enable the [10/10] no-internet graceful handling test if the soak is clean; done means the test passes without an internet connection.

Written by the indexing model from the issue text.

Description

Follow-up from the D14 fix in 205a953d62 (#1085), noted again during v0.9.7 release review (CTO persona).

The eager import-time ModelsDev.refresh() fetch was removed to fix a CI hang (unshare --net blocked DNS resolution past process exit). However, ModelsDev.Data() still falls through to the same unbounded fetchApi() whenever both the disk cache and the bundled snapshot are absent — true in dev-mode builds without the embedded snapshot. The reduction is real but not a full close.

test/sanity/phases/resilience.sh's [10/10] no-internet graceful handling test remains SKIPPED pending 'soak through one release' per the original commit message. Re-evaluate re-enabling it after v0.9.7 has been live for a cycle.

Dominant language
TypeScript
Stars
813
Forks
134
Avg merge
2d 5h
Merged PRs (30d)
62

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AltimateAI/altimate-code

All issues in AltimateAI/altimate-code

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.