GitHub Senior Solutions Engineer Sam Quakenbush: One Broken Test Dependency Doesn't Justify Redesigning Your Application
A GitHub Senior Solutions Engineer describes an evidence-first method for choosing the next safe modernization step, applied to four public applications from a Node.js game to a Java ERP system, and encoded as a reusable Copilot agent skill.
The label on an application rarely tells you enough. "Java microservices" doesn't tell you which JDK runs in production, where that version is pinned, whether the tests execute, or which interfaces other systems depend on. "Legacy monolith" doesn't tell you whether the business core is broken or whether one retired platform dependency prevents the application from starting. Sam Quakenbush, a Senior Solutions Engineer at GitHub, argues that this gap between label and evidence is where modernization projects go wrong — people choose a target framework before they know what still works.
His method, applied to four public applications ranging from a small Node.js game to a large Java ERP system, inverts the usual sequence. Before recommending a change, build a small evidence inventory: manifests, lockfiles, entry points, deployable components, verified commands for installing and running, runtime pins in containers and CI workflows, external contracts such as APIs and database behavior, and end-of-life frameworks with evidence that the application still uses them. Record uncertainty as you work using three labels — documented, inferred, unverified. If two files disagree about the Java version, resolve the contradiction. If you can't determine whether a CI check blocks merges, say so rather than treating a guess as a finding.
Once the evidence is in hand, make the decision per component. A single system can contain code that should stay, dependencies that should be swapped, and one subsystem that genuinely needs a rewrite. Quakenbush proposes a decision order — keep, upgrade, swap, wrap, rewrite — and asks what evidence justifies choosing a more disruptive option. "The code is old" is not enough. A known vulnerability with no patched release, a dependency that fails on the required runtime, or a measured reliability target the current design cannot meet can justify escalation.
The next question is whether the component can run well enough to produce evidence. Run a time-boxed feasibility check: try to install dependencies, build on an available toolchain, start the component, and execute at least one meaningful test. Stop when the time box expires. The result sends you down one of two paths. If the old application can still run at an acceptable cost, capture its externally visible behavior, fix the test harness where practical, and use those checks to verify the upgrade. If the old component cannot run until you have already changed it, move the thinnest useful workflow to supported technology, prove it, and expand from there. Requiring a complete legacy test suite in this situation is circular — restoring the test suite is part of the modernization.
The PiggyMetrics case makes the method concrete. The project used Java 8, Spring Boot 2.0.3, Spring Cloud Finchley, Zuul, Hystrix, and the old spring-security-oauth2 library. It would have been easy to call the application unworkable and start drawing a new architecture. But the feasibility check told a different story. Running mvn -pl config -am compile against the legacy checkout with JDK 8 returned exit code 0 — the selected module and its reactor dependencies compiled. Running mvn -pl account-service -am test showed 14 tests: five passed and nine errored. The nine errors traced through a failed ApplicationContext load to an embedded MongoDB download returning HTTP 403, with a pinned binary targeting i386 that would not run on the Apple Silicon host.
One broken test dependency did not justify redesigning the application. Five passing tests established behavior that could be checked for unintended changes during modernization. The plan that followed was a capture-then-upgrade sequence: replace the embedded database dependency with Testcontainers, establish a green baseline on the existing stack, put that baseline in GitHub Actions, then move from Java 8 to Java 21 and Spring Boot 3.3, and replace obsolete components behind their existing interfaces. The first acceptance gate was a passing baseline on the old stack, not merely the successful installation of a replacement dependency.
The same process produced different answers on the other applications. BrowserQuest needed an upgrade and swap: Node 0.4.7 to Node 22, two obsolete WebSocket stacks replaced with ws, plus tests and GitHub Actions added. The Canvas renderer, pathfinding, world model, protocol, and game-loop model stayed. DOOM needed a different treatment: X11 video and OSS audio replaced with SDL2, platform code adapted for modern 64-bit systems, while the renderer, 35 Hz simulation model, and WAD game-data format were preserved. Quakenbush notes an important qualification about DOOM's verification: the checks froze outputs from the modernized engine itself, protecting against later regressions but not independently proving parity with a period-correct legacy binary. Naming that limit is part of choosing an honest safety level.
The safety levels range from L0 (no usable regression net; treat the old code and available documentation as the specification) through L4 (an automated CI gate combining lint, unit, behavioral, and end-to-end checks for the agreed scope). Even an L4 gate cannot establish that every possible behavior is correct. APIs, database effects, files, rendered output, and business workflows often make durable comparison points because those behaviors can survive a framework or language change.
For ADempiere, a large Java suite covering ERP, CRM, manufacturing, supply chain, accounting, and point of sale, the scale changed the controls but not the method. The work established a reproducible build, moved the runtime to JDK 21, preserved SOAP web-service contracts while replacing XFire with CXF and Jakarta, captured legacy web behavior, and introduced a modern web path for selected users. The first modern business partner write was compared with a result frozen from the legacy application. The effort report covers 30 merged modernization pull requests and 102,587.72 reconstructed Copilot credits through the first accepted portable demo. The credit total is not a dollar cost. More important, the report says exactly what the result was not: it was not a claim that every ADempiere screen or production deployment had been modernized. Quakenbush stopped because the proof-of-concept question had been answered. Completing the rest would have required a product funding decision, not another technical proof.
Quakenbush encoded the procedure in a public GitHub Copilot agent skill called doc-and-modernize. Agent skills are folders of instructions, scripts, and resources that Copilot can load when a task is relevant. The skill's decision fork is simple: if the old component can run at an acceptable cost, capture its behavior before upgrading; if it cannot run without changes, build and verify a small modern slice first, then expand it. The useful distinction is procedure versus policy. A shared skill can require repository evidence, bounded experiments, explicit safety levels, and runnable exit criteria. Your organization still needs to supply the parts only it knows: approved runtimes and frameworks, application criticality and acceptable residual risk, security and compliance requirements, which legacy results may be used as the expected answer, and who can approve the architecture and declare a production change complete. The skill should make those decisions visible. It shouldn't make them for you.
The strongest objection to this method is its evidence base. All four applications are public repositories, not production systems. The author is a GitHub employee demonstrating a GitHub Copilot agent skill. The safety levels are adapted from his own skill rather than independently validated. The 102,587.72 reconstructed Copilot credits figure is explicitly not a dollar cost, and the author acknowledges this. What the method does establish is a repeatable decision process for narrowing modernization scope based on repository evidence — and that is its actual contribution, not a claim about production outcomes or tool effectiveness.