forked from IntersectMBO/cardano-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nix.mk
27 lines (24 loc) · 1.66 KB
/
nix.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
bump-cardano-node-workbench:
nix flake lock --update-input cardano-node-workbench
bump-node-measured:
nix flake lock --update-input node-measured
bump-cardano-deployment: ## Sync the flake.lock to the CI check
nix run nixpkgs#nixUnstable -- build .#hydraJobs.cardano-deployment
membench-1: ## Membench: one iteration, current commit
nix build .#membench-node-this-1.batch-report --out-link result-batch-1-report
membench-1-at: ## Membench: one iteration, set commit by: make membench-1-at REV=[master]
nix build .#membench-node-measured-1.batch-report --out-link result-batch-1-report --override-input node-measured github:input-output-hk/cardano-node/${REV}
membench-5: ## Membench: 5 iterations, current commit
nix build .#membench-node-this-5.batch-report --out-link result-batch-5-report
membench-5-at: ## Membench: 5 iterations, set commit by: make membench-5-at REV=[master]
nix build .#membench-node-this-5.batch-report --out-link result-batch-5-report --override-input node-measured github:input-output-hk/cardano-node/${REV}
CI_TEST_NIXATTR = workbench-ci-test
workbench-ci-test smoke: ## Workbench: test a-la Hydra, the ci-test profile, full Nix engaged
nix build --out-link result-ci-test '.#hydraJobs.native.$(CI_TEST_NIXATTR)' --cores 0 ${EXTRA_ARGS}
ID=`jq -r .meta.tag result-ci-test/meta.json`; test -e "run/$$ID" || mv result-ci-test "run/$$ID"
## Use the -keep targets to debug failures:
## /tmp/nix-build-workbench-run-supervisor-ci-test-bage.drv-*
## ..will contain the run directory.
workbench-ci-test-trace: CI_TEST_NIXATTR = workbench-ci-test-trace
workbench-ci-test-trace: workbench-ci-test
smoke-trace: workbench-ci-test-trace