-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: use nix flake, std, tullia and cicero #176
Conversation
570476b
to
18e3612
Compare
This looks really good. Is there a way to pass evalSystem to everything? I wanted to see if I could run I tried the following, but I think the cross compiled versions of the project are still missing the
|
@hamishmack right, forgot to pass evalSystem here: bb6e26a |
@dermetfan tried your suggestion in last commit, but it is still failing:
Also another issue is that even though I specify only one task, |
76c6bee
to
2dbea5a
Compare
There was an escaping issue in tullia. Fixed that and updated the tullia flake input.
I added a tullia task for each hydra job so you can now run them separately like this (without
|
@dermetfan I'm now getting
|
That's just nsjail having trouble with cgroups when it tries to actually run the task (not yet well tested). Evaluation and building worked fine so it works on cicero, as for cicero the nomad + oci runtime is used instead of nsjail. |
5e107d2
to
5431e2b
Compare
On reflection, a high-level thought. This PR contains hundreds of lines of nix code providing lots of features, but explains nothing about how to use it or work with it. To put it another way: Yes, that's a lot to write about, but this PR adds a lot of stuff. If we want to keep it minimal instead that would be fine but if we're going to go big IMO we have to document things. |
5431e2b
to
19e5cdb
Compare
Sure. Most std stuff can be documented with links to the appropriate std doc page. |
19e5cdb
to
affe919
Compare
I think that's good for maintainers of the nix code, but we also need to document things in a form that's comprehensible by people working on the Haskell code, hence CONTRIBUTING. |
82cdc3f
to
ce8aee6
Compare
@michaelpj added CONTRIBUTING.md in last commit (albeit rather minimal for now, but should be enough to not block any dev workflow). |
I pushed a fix for the latest tullia version, maybe squash again @jbgi (didn't want to squash and force push to not confuse anybody) |
8de0368
to
e3434a6
Compare
7ace23c
to
dfe062c
Compare
f6ccd17
to
c8cf8e6
Compare
@coot I encourage requiring it! |
bd64001
to
46c1c23
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the formatter-only changes this will be handy: https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view
Please let me know or open an upstream ticket if you need anything from Standard. Even the ever so slightest improvement ideas are welcome!
# This is a template created by `hix init` | ||
inputs = { | ||
nixpkgs = { | ||
follows = "std/nixpkgs"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Depending on the circumstances, it may be better to set, not follow nixpkgs, here. For example, it gives you more control over cache invalidations and decouples them from std
.
You still then do std.inputs.nixpkgs.follows
.
|
||
### Commit message | ||
|
||
Commit messages should ideally be of the form `<type>[(<scope>)]: <short description>]` ([conventionnal](https://www.conventionalcommits.org/) commit message). Available commit types are from [std presets](https://std.divnix.com/reference/presets/nixago/conform.html). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heads up: In my experience, the default scopes (one scope per cell) is often times not enough. So as this is being trained into muscle memory and used by people, I'd suggest at least a refinement on the scopes.
46c1c23
to
27bf675
Compare
e3e90e4
to
7ae03d3
Compare
cc6b4a0
to
32d8f0f
Compare
32d8f0f
to
53d8059
Compare
bors r+ |
std-based alternative take to #175.