Skip to content

Conversation

@lovesegfault
Copy link

Summary

Two fixes for using nom with nixbuild.net remote builds:

  1. Remote store build attribution: When using --store "ssh-ng://...", Nix reports builds with empty host field in JSON output. nom was treating these as localhost. Now we detect the remote store from upload activities (which do have correct host info) and use that for builds.

  2. Large activity IDs: Nix sends activity IDs as unsigned 64-bit integers which can exceed signed Int range. Changed ActivityId to use Word and switched from IntMap to Map Word.

Test plan

  • Tested local builds
  • Tested --store "ssh-ng://..." builds - now correctly attributed to remote host
  • Tested --builders "ssh://..." builds - works as before
  • Verified no parse errors for large activity IDs

When using remote stores via --store "ssh-ng://...", Nix reports builds
with empty host field in JSON output. Previously this was treated as
localhost. Now we detect the remote store from upload activities and
use that host for builds reporting empty host.
Nix sends activity IDs as unsigned 64-bit integers which can exceed
the range of signed Int. Changed ActivityId to use Word and parse
with uint decoder. Changed activities and interestingActivities maps
from IntMap to Map Word for type safety.
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