Skip to content
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

add std flake and tullia #625

Merged
merged 4 commits into from
Dec 16, 2022
Merged

add std flake and tullia #625

merged 4 commits into from
Dec 16, 2022

Conversation

dermetfan
Copy link
Contributor

Also fix impurities in the nix evaluation of CI jobs.

default.nix Outdated
url = "https://github.com/input-output-hk/cardano-node";
rev = "1.35.3";
sha256 = "020fwimsm24yblr1fmnwx240wj8r3x715p89cpjgnnd8axwf32p0";
ref = "purity";
Copy link
Contributor

Choose a reason for hiding this comment

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

what is purity?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@dermetfan Do we need this purity branch? What's the rationale/consequence of not having this? We are asserting that we are using cardano-node 1.35.3 in other locations and this branch seems to be on the master branch of 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.

Changed it to point to a new purity-backport-1.35.4 branch.

Copy link
Contributor

@ffakenz ffakenz left a comment

Choose a reason for hiding this comment

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

i really like the initiative.

this seems super cool and fun to work with.

i just need to get to know more about this tooling before giving my approval.

default.nix Show resolved Hide resolved
default.nix Outdated Show resolved Hide resolved
default.nix Show resolved Hide resolved
nix/automation/pipelines.nix Show resolved Hide resolved
nix/automation/pipelines.nix Show resolved Hide resolved
flake.nix Show resolved Hide resolved
nix/cloud/actions.nix Show resolved Hide resolved
Copy link
Collaborator

@ch1bo ch1bo left a comment

Choose a reason for hiding this comment

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

Thanks for helping us @dermetfan, but we need more context and maybe even some training materials for the team to adopt this.

default.nix Outdated
url = "https://github.com/input-output-hk/cardano-node";
rev = "1.35.3";
sha256 = "020fwimsm24yblr1fmnwx240wj8r3x715p89cpjgnnd8axwf32p0";
ref = "purity";
Copy link
Collaborator

Choose a reason for hiding this comment

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

@dermetfan Do we need this purity branch? What's the rationale/consequence of not having this? We are asserting that we are using cardano-node 1.35.3 in other locations and this branch seems to be on the master branch of node.

nix/automation/pipelines.nix Show resolved Hide resolved
{
cell,
inputs,
}: {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this in a separate cell than the pipelines.nix?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the naming convention we currently use for std.

The automation cell contains scripts and tasks for local execution.
The cloud cell contains only things that run on some hosted platform (like cicero).

Tullia tasks are valid standalone as they can be run locally without cicero, so they belong in the automation cell.
Cicero actions can only be run on cicero (and ours happen to run tullia tasks), so they belong in the cloud cell.

}
)
{
hydraJobs = std.harvest self ["automation" "hydraJobs"];
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need this? I think this PR should be about moving the Hydra-CI stuff to Cicero. So feel free to remove all the now legacy things (release.nix, this hydraJobs expression) and make things less indirected

Copy link
Contributor Author

@dermetfan dermetfan Nov 30, 2022

Choose a reason for hiding this comment

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

hydraJobs is a well-known output and does an ok job of specifying what to build. I don't really see a benefit of changing it just because we now use other software to build it. We can even be compatible with both cicero and hydra this way. (Also I have 16 other repos atm that need CI so this would not be a priority)

@ch1bo ch1bo force-pushed the tullia branch 4 times, most recently from 10ab6bf to 92aa78d Compare November 29, 2022 20:01
@ch1bo ch1bo self-assigned this Nov 30, 2022
iohk-bors bot added a commit to IntersectMBO/cardano-node that referenced this pull request Nov 30, 2022
4661: fix pure nix evaluation r=dermetfan a=dermetfan

There was access to `builtin.currentSystem` in the nix evaluation for nix-shell so pure evaluation was not possible.

Needed by cardano-scaling/hydra#625.

Co-authored-by: Robin Stumm <[email protected]>
@dermetfan dermetfan force-pushed the tullia branch 3 times, most recently from 98c43ad to 0cd803c Compare December 1, 2022 16:19
@ch1bo ch1bo mentioned this pull request Dec 7, 2022
3 tasks
@ch1bo ch1bo force-pushed the tullia branch 3 times, most recently from 431a5fd to 47d2c4d Compare December 13, 2022 17:31
@ch1bo ch1bo mentioned this pull request Dec 14, 2022
2 tasks
@ch1bo ch1bo merged commit e1e17b6 into master Dec 16, 2022
@ch1bo ch1bo deleted the tullia branch December 16, 2022 17:10
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