Skip to content

Conversation

@brainrake
Copy link
Contributor

No description provided.

@aciceri aciceri force-pushed the marton/cardano-node-module branch 6 times, most recently from b70549e to a33741a Compare March 8, 2024 20:55
@aciceri aciceri force-pushed the marton/cardano-node-module branch from a33741a to c0d02bc Compare March 8, 2024 20:56
@brainrake brainrake force-pushed the marton/cardano-node-module branch 12 times, most recently from 16e8b44 to 2007c6b Compare March 14, 2024 06:13
@brainrake brainrake force-pushed the marton/cardano-node-module branch from 2007c6b to 6e3d03a Compare March 14, 2024 06:36
@brainrake
Copy link
Contributor Author

works, with kvm!

@brainrake brainrake marked this pull request as ready for review March 14, 2024 06:40
@brainrake brainrake requested a review from aciceri March 14, 2024 06:40
# import all of our flake nixos modules by default
nixosModules.default
# fix missing pkgs.system in tests
{nixpkgs.overlays = [(_: _: {inherit system;})];}
Copy link
Member

@aciceri aciceri Mar 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still wondering why in tests there is not pkgs.system...

checks =
mapAttrs'
(name: test: nameValuePair "testing-${test.name}" (cfg._mkCheckFromTest test))
(name: test: nameValuePair "nixosTests-${test.name}" test.check)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the end you kept a prefix for checks which are tests!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes but i named it the same as the module :)

enable = true;
hostAddr = "0.0.0.0";

environment = config.cardanoNix.globals.network;
Copy link
Member

@aciceri aciceri Mar 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So do we want to keep globals as name?

Copy link
Contributor Author

@brainrake brainrake Mar 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, in fact, we may want to move the options one level up under cardanoNix

nixosTests.tests.cardano-node = {
impure = true;
module = {
name = "cardano-node-test";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can drop name here if you want, by the default it would be cardano-node and the corresponding check nixosTests-cardano-node

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@aciceri aciceri merged commit 226c275 into main Mar 14, 2024
@aciceri aciceri deleted the marton/cardano-node-module branch March 14, 2024 10:15
This was referenced Mar 14, 2024
@brainrake brainrake added this to the 2. Processing modules pt. 1 milestone Apr 3, 2024
@brainrake brainrake self-assigned this Apr 3, 2024
@brainrake brainrake mentioned this pull request Apr 3, 2024
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.

3 participants