Skip to content

Compare drvgo and buildGoModule for UPM - #416

Draft
ryantm wants to merge 3 commits into
mainfrom
compare-drvgo
Draft

ryantm wants to merge 3 commits into
mainfrom
compare-drvgo

Conversation

@ryantm

@ryantm ryantm commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Why

Measure whether package-level Nix caching helps UPM before switching the default builder.

What changed

nix build .#upm-drvgo builds the program and its Python database generator with drvgo, then packages the generated SQLite database and wrapper. .#upm remains the existing buildGoModule baseline. The candidates use their respective pinned toolchains, so this measures the migration as shipped rather than isolating the compiler.

Test plan

Native x86_64-linux NixCI package jobs, measured from start to finish (queue excluded):

Revision Regular UPM drvgo UPM drvgo smoke
First PR commit 126.5 s, passed Canceled Not defined
Original drvgo proxy (34c87eb) 141.0 s, passed Failed after 20m51s; retry failed after 8m37s Failed after 8m37s before assertions; retry canceled
Shared Go proxy (66bdc81) 124.0 s, passed 182.0 s, passed Passed in 169.3 s

With both builders using the regular builder’s verified Go module proxy, drvgo took 58.0 s longer (47%) on this one full-package comparison. The package and smoke jobs executed; they were not whole-job cache hits. Both builds reused dependency outputs, so this is neither a clean-store benchmark nor a measurement after a small Go edit. The smoke time is a separate concurrent job, not additional package build time.

The shared-proxy NixCI suite finished green. Both package jobs and the smoke job ran; the regular package job built the final package, while the drvgo job downloaded the final 984-byte wrapper from cache after doing dependency work. Thus the timings compare observed CI job latency, not isolated compilation. The concurrent smoke job built the wrapped package and checked the version, nonempty SQLite database and Python import lookup. The separate integration suite exercised the regular package: 628 tests reported, 73 skipped, no failures (7m17s job wall time). Lint, formatter and dev-shell jobs were whole-job cache hits.

On the original proxy revision, the regular integration suite passed. The drvgo package and smoke jobs failed in the recursive module-proxy planner with a missing or busy builder cgroup; neither package attempt produced a binary and no smoke assertions ran. Those durations are times to failure, not compiler benchmarks. The default builder is unchanged.

Local verification: both package derivations and the smoke check evaluated.

Chat about this change

~ written by ⠕ Replit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant