mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-18 14:08:21 +00:00
2 commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
d32403f851
|
🍃 ci: Provision the mongod Binary Before Any Test Starts (#18053)
Some checks failed
Codegraph E2E Vote Gate / Gate (push) Waiting to run
Codegraph E2E Votes / vote (shard 1/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 10/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 2/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 3/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 4/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 5/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 6/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 7/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 8/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 9/10) (push) Waiting to run
Docker Dev Branch Images Build / publish (push) Waiting to run
Frontend Unit Tests / Client build recovery regression (push) Waiting to run
Frontend Unit Tests / Codegraph select (push) Waiting to run
Frontend Unit Tests / Build packages (push) Waiting to run
Frontend Unit Tests / TypeScript type checks (client) (push) Blocked by required conditions
Frontend Unit Tests / Tests: @librechat/chat (push) Blocked by required conditions
Frontend Unit Tests / Tests: @librechat/client (push) Blocked by required conditions
Frontend Unit Tests / Tests: Ubuntu (shard 1/2) (push) Blocked by required conditions
Frontend Unit Tests / Tests: Ubuntu (shard 2/2) (push) Blocked by required conditions
Frontend Unit Tests / Vite build verification (push) Blocked by required conditions
Playwright E2E Tests / Codegraph select (push) Waiting to run
Playwright E2E Tests / e2e () (push) Blocked by required conditions
Playwright E2E Tests / MCP list_changed (replica count 1) (push) Blocked by required conditions
Playwright E2E Tests / MCP list_changed (replica count 2) (push) Blocked by required conditions
Playwright E2E Tests / MCP Apps (browser and server) (push) Waiting to run
Playwright E2E Tests / e2e (push) Blocked by required conditions
Main Promotion Policy Tests / Main promotion denial and fast-forward tests (push) Waiting to run
Sync Locize Translations & Create Translation PR / Sync Translation Keys with Locize (push) Has been cancelled
Sync Locize Translations & Create Translation PR / Create Translation PR on Version Published (push) Has been cancelled
* 🍃 ci: Provision the mongod Binary Before Tests Start mongodb-memory-server downloads its ~122 MB mongod the first time a test starts a server, inside a 15 s beforeAll. Only backend-review.yml cached ~/.cache/mongodb-binaries (the same step pasted four times), and a cache alone still leaves the download inside the first hook on a miss. Integration Tests downloaded on every run: 6 failures in 274 runs with "Exceeded timeout of 15000 ms for a hook" in secrets.integration.spec.ts, followed by "spawn ETXTBSY" in the suites that started mongod while the timed-out download was still writing it. Add .github/actions/mongodb-binary: restore the cache with the existing key scheme, ask the installed mongodb-memory-server for the binary it wants (MongoBinary.getPath), make sure that binary sits in the home cache every working directory resolves, run it once, and save the cache right away. The step fails the job when no runnable binary can be put in place. Use it in every job that starts mongodb-memory-server, after dependencies are installed and before tests, and add the action to the path filters of the workflows that list their own file. * 🧪 test: Cover the mongod Provisioning Script Without the Network Run the real script against a stand-in resolver that keeps the properties it relies on: home cache first, download when missing, and a memoised path until the cache is cleared. Integration Tests runs the suite before it uses the action. * 🧪 test: Run mongod Provisioning Against the Real Resolver The suite replaced mongodb-memory-server with a hand-written stand-in, so it checked the script against a description of the resolver rather than the installed one. It now runs the script against the real library and replaces only the network: MONGOMS_DOWNLOAD_MIRROR points at a local server that serves an archive whose bin/mongod is a shell script, with the .md5 the library verifies it against. Recovery also no longer charges a broken copy that was already on disk to the download: with a broken binary in both the home cache and the root node_modules/.cache, the first attempt removed one, the retry met the other, and the step failed without ever downloading. Existing copies are now discarded one at a time and the download keeps its own two attempts. * 🧪 test: Reach the Exit-Status Check Behind the Library's System Binary Probe A system binary that prints nothing is rejected by the library's own version probe, so the case never reached this script's check or the rule that a file the job named is not deleted. Add one that answers the probe and exits non-zero. |
||
|
|
bb3cac9d95
|
🧰 ci: Provision Pinned Redis Binaries Without a Distro Mirror (#18055)
* 🧰 ci: Provision Pinned Redis Binaries Without a Distro Mirror The MCP list_changed jobs and Cache Integration Tests installed redis-server and redis-tools with apt-get at test time. When the runners could not resolve the Ubuntu mirrors, apt-get update spent 3m20s giving up, the install stalled into the step timeout, and the next step found no redis-cli. The version was whatever the mirror served that day. A composite action now restores redis-server and redis-cli 8.0.5 from the Actions cache and, on a miss, builds them once from the pinned upstream commit with bounded retries. The step fails with one clear error when Redis cannot be provisioned. * 🔦 ci: Keep Lighthouse Running When the Ubuntu Mirror Is Unreachable The Lighthouse job installed its pinned Chromium with `playwright install --with-deps`, which runs apt-get first. With the Ubuntu mirrors unresolvable, apt exited 100 and the job failed before any audit ran. On the runner every library Chromium links is already present with the preinstalled Chrome; the only packages apt added were nine optional fonts. The browser download stays fatal and keeps the lockfile-pinned build, while the system packages go through the bounded best-effort script the Playwright jobs already use. * ⏱️ ci: Give the Cold Redis Build Room on a Slow Runner The first hosted runs built Redis in 49, 58 and 103 seconds. A 180 second cap left the slowest of those less than twice its own time, so a slower runner would have failed a job for being slow. The build may now take 300 seconds and the calling steps eight minutes; an unreachable host still fails within 98 seconds. The ready line reports the fetch and the build separately. |