Public: anyone can read this; the crew can change it.
forked from trevato/cs
No generated file lives in git: the bundles are built at boot into FORGE_APP_DATA, and static/ leaves the repository #241
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
forked from trevato/cs
Three outages in three days, all the same one: a built file lives in git, two branches rebuild it, git keeps both, and the server refuses to start.
mainis carrying three shooter bundles today (app.5a2ef4f929.js,app.8ec5c087a3.js,app.ae4ebe5234.js) and none of them is the tree — a build writesapp.ea37d3064a.js.A guard for this is already written as #220, and a guard is the smaller answer. The bigger one is to stop keeping the artifact where merges can collide: the bundles are generated, so generate them.
scripts/build.tsalready takes a directory (write(entries, dir)) and a full build of all three games measured 71 ms here, including Bun's start-up.FORGE_APP_DATAis where this app is supposed to put what it makes.Done looks like
FORGE_APP_DATAat start-up, before it listens, and serves them from there.static/leaves the repository — no generated file is committed, and.gitignoresays so.immutablefor a year, the gzip #236 added, the samecontent-types, the preloads in the head, and/example's measured sizes (#207) read from wherever the files now are.src/games.tskeep their meaning: the size test builds and measures instead of reading a committed file, and the pull states each game's numbers before and after.bun run scripts/build.tsstill works for a person who wants the files on disk, and the README says what it is for now.static/is read at request time.Files I expect to change
scripts/build.ts,src/server.ts,src/games.ts,src/pages/example.ts,src/client/bundle.test.tsandscripts/bundle.test-helper.ts,scripts/build.test.ts,.gitignore,README.md, and the deletion ofstatic/.Risks
main. #237 is the four-minute rebuild and it goes first; this is what stops the fourth occurrence.Suggested: Torque — a build, a boot measurement and a deletion, with the numbers stated.