OSS Radar #17: What Still Works After an Upgrade?

On this page 5 sections

Bun's November 20 canary took nine bytes out of each Zstandard stream we tested. Stable Bun and Node decoded every one. The same canary's compiled program still read an old config file after we pointed a symlink at its replacement.

That difference is worth looking for during any rollout. What still reaches the right reader, user, connection, or installed app once the implementation changes?

Sources and selection

Bun returns from Radar #5 and the AOT tests in #8. The new work came from Bun's public stable and canary builds and the implementation changes behind them. Hot Updater returns from the first Radar after a React Native developer reported that changing a store build number also changed which updates their app could receive. flagd and pgroll came from public release and maintainer work. The research record covers the working selection and the fixtures run with AI assistance.

The projects

Bun — check what changes on the wire and in the executable

Bun combines a JavaScript runtime, bundler, test runner, and package manager. Its August release moved the runtime from Zig to Rust. The new work replaces compression implementations behind APIs people already use and revises parts of ahead-of-time compilation. The stable release checked on November 20 was 1.4.5. The recent changes below are from the November 20 canary, which reported 1.4.6-canary.1+7bb427f3b. Stable release · Tested canary source.

The same data through three new codecs

Three changes replace the linked DEFLATE, Brotli, and Zstandard implementations on Bun's compression paths. The node:zlib bindings now call Bun's Rust codecs. This matters if you use Bun through Node-compatible APIs and your compressed files live longer than the process that wrote them. Some of the same codec work also backs web streams and HTTP decompression. DEFLATE change · Brotli change · Zstandard change · Pinned Node-compatible bindings.

The trial used 4,000 synthetic API log lines, the Markdown source of Radar #8, and 128 KiB of seeded binary data. Stable Bun, the canary, and Node 24 each encoded all three inputs as gzip, Brotli, and Zstandard, in one buffer and in chunks. Each runtime decoded all 54 outputs both ways. All 324 decode checks matched the original bytes. Both Bun builds also read all nine compressed HTTP responses served on loopback by Node. Fixture and results.

The nine one-buffer outputs matched byte for byte between the two Bun builds. The three chunked Zstandard outputs were each nine bytes shorter in the canary. In each case the canary's output was the exact prefix of the stable output, and Node decoded the remaining nine bytes as an empty frame. That matches a change the maintainers describe in the stream writer. Store the compressed size and check the decoded data when you compare these artifacts across releases. Zstandard stream change · Byte comparisons.

Speed moved in both directions. These are medians for 13 in-memory operations on the same 584 KB log input, measured across five alternating runs of each build in one ARM64 Linux guest. Both decoders read the same bytes produced by Node. Compression used gzip level 6, Brotli quality 4, and Zstandard level 3. All samples and input hashes.

Scroll to compare all columns

API log operation Bun 1.4.5 November 20 canary
Gzip decode 6.63 ms 3.87 ms
Brotli decode 4.65 ms 3.97 ms
Zstandard encode 6.13 ms 7.04 ms

Gzip decoding also took less time on the article and binary inputs. Brotli's fastest and slowest log runs overlapped between builds. The Zstandard encode result is a reason to replay a representative batch before counting on an upgrade to speed up a service that writes compressed logs. The comparison includes the full binaries and one machine, so it gives you a workload to check on your own deployment. Timing samples.

AOT can keep using the old config file

The latest compiler changes include how require.resolve() handles an absolute path. We built a small reader on a Mac with the November 19 and 20 canaries. active.json pointed to v1.json at build time. After the first run, we pointed the symlink at v2.json and ran the same executable again. The older AOT build failed when the literal path went through require.resolve(). The newer build opened v1.json successfully. After the symlink changed, it still opened v1.json, even when we passed active.json as an argument to require.resolve(). Running the source read v2.json. So did a direct file read of the argument in the same AOT executable. Compiler change · Path test and exact outputs.

A small TypeScript program that compared two rollout lists returned the same JSON from source, a regular standalone build, and an AOT build. The last two executables were 139.3 MB and 53.4 MB on that Mac. In the test runner, an ordinary preload order check agreed between bun test and bun test --aot on both canaries. A later attempt to replace a module whose earlier import failed still failed in both modes in our fixture. A team moving to AOT can test the actual executable against its normal inputs and against the changes it expects operators to make after building, such as rotating a config file. Compiler and test fixtures.

flagd — keep people assigned as an experiment grows

An application can ask flagd to resolve a feature flag for a user. The default fractional operation hashes the flag key and the user's targeting key together. The hash picks a point in cumulative ranges laid out in the order of the variants. Editing the ranges changes which people get a variant even when their keys are stable. flagd v0.19.0 · Range selection.

On the released daemon, increasing a rollout from 10% to 25% kept all 12 early identities in the new variant. Reversing the two weight pairs at the same 25% sent all 32 identities back to the old variant. Twenty-one other identities took their place. The daemon reloaded the file for both edits, with the same 128 test keys. Versioned fixture and results.

The maintainers' experiment guide uses two fractional rules, one for enrollment and one for assignment to test or control. We tried that and the flat rule on the daemon. Raising flat enrollment from 20% to 80% moved all nine original test identities into control. With separate seeds for enrollment and assignment, all 18 early participants kept their original arms and 86 more joined. With the same seed for both steps, all 26 early participants landed in test. The counts describe these 128 keys. The reason for the last result is general to that rule. At 20% enrollment, the first fifth of a hash range also lies entirely inside the first half. Maintainer guide · Assignment transitions.

If an experiment needs consistent test and control groups, use separate seeds from the start and check membership across the exact changes you expect to make. A percentage describes the size of a range. To find out who stayed in it, compare the assignments.

pgroll — keep old and new database clients writing

pgroll lets two application versions use different Postgres schemas while a migration runs. We changed an inventory column from text to integer. The old view read 007 while the new one read 7. Both versions wrote through their views in the same migration. After the integer client changed the row and pgroll rolled back, the old schema and the intervening writes were there. The first row now read text 7. Converting the integer back to text had already discarded the leading zeroes. pgroll v0.16.3 · Conversion and rollback results.

The next check kept one physical PostgreSQL 17.12 connection open through a real migration and rollback. SET LOCAL search_path TO public_v2 selected the new view for a transaction. After commit or transaction rollback, the same connection returned to the old schema it had selected before. A session-level SET persisted after commit. When pgroll removed the new schema, that session still held public_v2 and got a missing-relation error until it selected public_v1. Its committed writes were visible there. Connection fixture and results.

There is another detail to check in a connection pool. public_v2, public let us read the integer view, yet a new write failed a NOT NULL constraint. The generated trigger compares the whole search_path string to the new schema name to choose the conversion. A collaborator's issue describes why that can conflict with clients that already use the setting. Try one real checkout, commit, return, and reuse with your driver before planning a rollback. This trial exercised a single reused backend and a small table. Generated trigger · Client configuration discussion.

Hot Updater — keep compatible mobile builds eligible for updates

Hot Updater sends JavaScript bundles to React Native apps over the air. It can match an update to a fingerprint that represents what a native build exposes to JavaScript. A user on 1.0.2 followed the guide and included their Xcode project and Android Gradle files in that fingerprint. Those files also held the store build numbers. Bumping the numbers alone created new fingerprints, which split otherwise compatible builds into separate update targets. User report · Maintainer's implementation.

We reproduced the build-number change in 1.0.2. With the default bare adapter in 1.1.0 and 1.1.17, the same edit kept both platform hashes stable. Adding a method to a shared React Native codegen spec changed both. An iOS-only spec changed only iOS. Keeping the old build files in extraSources brought back the change on every tested build-number bump. A Swift edit outside the tracked inputs left the default fingerprint alone. Explicitly listing that Swift file let a later edit change the iOS fingerprint. Pinned input selection · Three-version trial.

The shipped iOS SDK script added a wrinkle. With a changed spec and an old saved fingerprint, the Debug script wrote the saved hash and the Release script recomputed it. Both invocations used a synthetic project. To upgrade a real app, review the files you used to track and the native interfaces that matter to JavaScript. A change outside the default inputs can be declared with extraSources or a nativeVersion marker. The maintainer calls for fresh store builds at the original engine transition, when older binaries still report their old fingerprints. Build script · Maintainer's upgrade note.

What the projects show

An upgrade test gets more useful once it includes something from before the change. A pipeline may need to recover the original data from a newly written file. An experiment may need to keep the same people in each group. A deployment may need an open connection to pick up a schema change or a compiled program to read a config file that moves after the build. The success conditions are different. Record the result at the point where the old decoder, user, connection, or binary encounters the new behavior.

What to try

For Bun, start with saved compressed artifacts that your application will have to read after the upgrade. Give AOT its own check if the app depends on files that operators can move or replace. For flagd, compare the assignment set before the first ramp on a new experiment. The higher-cost checks are database and mobile deployments. A pool's reset policy and a Release build's embedded fingerprint are worth exercising with the actual clients before the old and new versions have to coexist.

Sources