Skip to content

Commit 8979232

Browse files
iohk-bors[bot]jbginewhoggycoot
authored
Merge #4778
4778: Nix fixes - 1.35 r=disassembler a=jbgi this is a backport of #4748. Co-authored-by: Jean-Baptiste Giraudeau <[email protected]> Co-authored-by: John Ky <[email protected]> Co-authored-by: Marcin Szamotulski <[email protected]>
2 parents 72bc4ce + 7d64f79 commit 8979232

14 files changed

+395
-406
lines changed

.github/workflows/check-mainnet-config.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,18 @@ jobs:
1414
steps:
1515

1616
- name: Install Nix
17-
uses: cachix/install-nix-action@v16
17+
uses: cachix/install-nix-action@v18
1818
with:
19+
# Use last stable nixos channel and the same nix as in channel:
20+
install_url: https://releases.nixos.org/nix/nix-2.11.1/install
21+
nix_path: nixpkgs=channel:nixos-22.11
22+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
1923
extra_nix_config: |
24+
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
2025
experimental-features = nix-command flakes
2126
allow-import-from-derivation = true
2227
substituters = https://cache.nixos.org https://hydra.iohk.io
23-
trusted-public-keys = iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
28+
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
2429
2530
- uses: actions/checkout@v2
2631

.github/workflows/check-nix-config.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,18 @@ jobs:
1414
steps:
1515

1616
- name: Install Nix
17-
uses: cachix/install-nix-action@v16
17+
uses: cachix/install-nix-action@v18
1818
with:
19+
# Use last stable nixos channel and the same nix as in channel:
20+
install_url: https://releases.nixos.org/nix/nix-2.11.1/install
21+
nix_path: nixpkgs=channel:nixos-22.11
22+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
1923
extra_nix_config: |
24+
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
2025
experimental-features = nix-command flakes
2126
allow-import-from-derivation = true
22-
substituters = https://cache.nixos.org https://hydra.iohk.io
23-
trusted-public-keys = iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
27+
substituters = https://cache.nixos.org https://cache.iog.io
28+
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
2429
2530
- uses: actions/checkout@v2
2631

bors.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
status = [
2-
"ci/push",
2+
"ci/push/required",
33
]
44
timeout_sec = 7200
55
required_approvals = 1

cabal.project

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ test-show-details: direct
7777

7878
constraints:
7979
hedgehog >= 1.0
80+
, hedgehog-extras == 0.2.0.0
8081
, bimap >= 0.4.0
8182
, libsystemd-journal >= 1.4.4
8283
, systemd >= 2.3.0

cardano-testnet/test/Spec/Cli/Babbage/LeadershipSchedule.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ hprop_leadershipSchedule = H.integration . H.runFinallies . H.workspace "alonzo"
116116

117117
leadershipScheduleDeadline <- H.noteShowM $ DTC.addUTCTime 180 <$> H.noteShowIO DTC.getCurrentTime
118118

119-
H.byDeadlineM 5 leadershipScheduleDeadline "leadershipSchedule:current:error" $ do
119+
H.byDeadlineM 5 leadershipScheduleDeadline $ do
120120
void $ H.execCli' execConfig
121121
[ "query", "leadership-schedule"
122122
, "--testnet-magic", show @Int testnetMagic
@@ -157,7 +157,7 @@ hprop_leadershipSchedule = H.integration . H.runFinallies . H.workspace "alonzo"
157157

158158
leadershipScheduleDeadline <- H.noteShowM $ DTC.addUTCTime 180 <$> H.noteShowIO DTC.getCurrentTime
159159

160-
H.byDeadlineM 5 leadershipScheduleDeadline "leadershipSchedule:next:error" $ do
160+
H.byDeadlineM 5 leadershipScheduleDeadline $ do
161161
void $ H.execCli' execConfig
162162
[ "query", "leadership-schedule"
163163
, "--testnet-magic", show @Int testnetMagic

flake.lock

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)