JSON impl and Schema for DummyStore#13942
Merged
Ericson2314 merged 5 commits intomasterfrom Nov 24, 2025
Merged
Conversation
3208245 to
2704e1a
Compare
Member
Author
|
I discussed this with @edolstra a bit at the meeting
|
2704e1a to
8b413c1
Compare
8b413c1 to
05a4cf9
Compare
05a4cf9 to
1d1b475
Compare
Ericson2314
added a commit
that referenced
this pull request
Sep 13, 2025
Misc prep changes for #13942
1d1b475 to
fdf7dfd
Compare
|
🎉 All dependencies have been resolved ! |
fdf7dfd to
3f60123
Compare
3f60123 to
fdae31a
Compare
d046757 to
aa7033c
Compare
aa7033c to
57b1332
Compare
57b1332 to
0836ead
Compare
|
🎉 All dependencies have been resolved ! |
0836ead to
edd081c
Compare
Ericson2314
commented
Oct 15, 2025
| } | ||
| } | ||
| }, | ||
| "store-dir": "/nix/store" |
Member
Author
There was a problem hiding this comment.
Should we but camel case in the JSON guide (and change this)?
Also think this should go with in a config object.
9c0df68 to
c893454
Compare
892c736 to
8ffc6b5
Compare
DummyStore
32 tasks
Ericson2314
commented
Nov 24, 2025
src/libutil-test-support/include/nix/util/tests/json-characterization.hh
Outdated
Show resolved
Hide resolved
Radvendii
reviewed
Nov 24, 2025
Contributor
Radvendii
left a comment
There was a problem hiding this comment.
This looks good to me, but I am not very familiar with any of the pieces involved (json serialization/deserialization in C++, this json schema system, the testing framework, etc.) So I'm mostly only able to take things at face value.
src/libutil-test-support/include/nix/util/tests/json-characterization.hh
Outdated
Show resolved
Hide resolved
8e3d652 to
fee3266
Compare
roberth
approved these changes
Nov 24, 2025
66957e2 to
31f1edf
Compare
Mic92
approved these changes
Nov 24, 2025
Also skip a trailing semicolon inside a macro so the caller can use it instead, which is generally nicer to the formatter.
Otherwise the equality instance we need to add will be messed up.
Will need it for tests.
This is the "keystone" that puts most of the other store-layer JSON formats together. Also, add some documentation for JSON testing.
31f1edf to
0275b64
Compare
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.
Motivation
See issue.
Context
This is the "keystone" that puts most of the other store-layer JSON formats together.
Progress on #13570
Depends on #13980
Depends on #14226
I talked to @edolstra about this at NixCon, briefly.
Add 👍 to pull requests you find important.
The Nix maintainer team uses a GitHub project board to schedule and track reviews.