Kodie Goodwin
Kodie Goodwin
CDCloudflare Developers
Created by Sébastien Morel on 12/15/2023 in #wrangler
hello, kind of new in the game but it
happening to me too
8 replies
CDCloudflare Developers
Created by Sébastien Morel on 12/15/2023 in #wrangler
hello, kind of new in the game but it
Cool, keeping an eye on this issue
8 replies
CDCloudflare Developers
Created by stibbs on 11/29/2023 in #miniflare
Applying D1 migrations in tests
ls -latrh api/.wrangler/test_state/v3/d1/miniflare-D1DatabaseObject
total 312
96B Dec 8 09:25 ..
4.0K Dec 8 09:25 6c069595cae5563f7138a4d757a20efb3e391b66e0907d4b22b3622628057dc1.sqlite
32K Dec 8 09:25 6c069595cae5563f7138a4d757a20efb3e391b66e0907d4b22b3622628057dc1.sqlite-shm
109K Dec 8 09:25 6c069595cae5563f7138a4d757a20efb3e391b66e0907d4b22b3622628057dc1.sqlite-wal
8.0K Dec 8 09:25 3c187a1e00838763923cf333b7f868310f03ba9f3ccc521d9e909e957823b7f7.sqlite
192B Dec 8 09:25 .
ls -latrh api/.wrangler/test_state/v3/d1/miniflare-D1DatabaseObject
total 312
96B Dec 8 09:25 ..
4.0K Dec 8 09:25 6c069595cae5563f7138a4d757a20efb3e391b66e0907d4b22b3622628057dc1.sqlite
32K Dec 8 09:25 6c069595cae5563f7138a4d757a20efb3e391b66e0907d4b22b3622628057dc1.sqlite-shm
109K Dec 8 09:25 6c069595cae5563f7138a4d757a20efb3e391b66e0907d4b22b3622628057dc1.sqlite-wal
8.0K Dec 8 09:25 3c187a1e00838763923cf333b7f868310f03ba9f3ccc521d9e909e957823b7f7.sqlite
192B Dec 8 09:25 .
29 replies
CDCloudflare Developers
Created by stibbs on 11/29/2023 in #miniflare
Applying D1 migrations in tests
Damn. Even ensuring the --persist-to configs are set to the same dir, still creating a new sqlite db
export async function initMf() {
_mf = new Miniflare({
d1Databases: { TEST_DB: "d2bde183-2d69-4ef5-af6f-8a80d52820a8" },
d1Persist: ".wrangler/test_state/v3/d1",
script: "",
modules: true,
modulesRules: [{ type: "ESModule", include: ["**/*.js"] }],
});

const migrationProcess = spawn(
"pnpm",
[
"--filter",
"api",
"exec",
"wrangler",
"d1",
"migrations",
"apply",
"--persist-to",
".wrangler/test_state",
"test",
"--local",
],
{
shell: true,
stdio: "inherit",
},
);
....
export async function initMf() {
_mf = new Miniflare({
d1Databases: { TEST_DB: "d2bde183-2d69-4ef5-af6f-8a80d52820a8" },
d1Persist: ".wrangler/test_state/v3/d1",
script: "",
modules: true,
modulesRules: [{ type: "ESModule", include: ["**/*.js"] }],
});

const migrationProcess = spawn(
"pnpm",
[
"--filter",
"api",
"exec",
"wrangler",
"d1",
"migrations",
"apply",
"--persist-to",
".wrangler/test_state",
"test",
"--local",
],
{
shell: true,
stdio: "inherit",
},
);
....
29 replies
CDCloudflare Developers
Created by stibbs on 11/29/2023 in #miniflare
Applying D1 migrations in tests
If you use wrangler d1 migrations apply
29 replies
CDCloudflare Developers
Created by stibbs on 11/29/2023 in #miniflare
Applying D1 migrations in tests
Can also confirm that it looks like miniflare is not using the DB created when migrations are applied. It's creating a new sqlite db.
29 replies
CDCloudflare Developers
Created by Kodie Goodwin on 10/23/2023 in #workers-help
Queues CPU Limits
Hrm ok thanks, I'll try to debug why I was seeing CPU limits then
3 replies