Repository navigation
Conversation
Assisted-by: Replit
Assisted-by: Replit
Assisted-by: Replit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Measure whether package-level Nix caching helps UPM before switching the default builder.
What changed
nix build .#upm-drvgobuilds the program and its Python database generator with drvgo, then packages the generated SQLite database and wrapper..#upmremains 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):
34c87eb)66bdc81)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.
~ written by ⠕ Replit