Skip to content

Commit 5e262ba

Browse files
chore: fixing daily ci (#3878)
1 parent 8b53e64 commit 5e262ba

12 files changed

Lines changed: 30 additions & 19 deletions

File tree

.github/workflows/ci-daily.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Daily logos-delivery CI
33
on:
44
schedule:
55
- cron: '30 6 * * *'
6+
workflow_dispatch:
67

78
env:
89
NPROC: 2

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export PATH := $(HOME)/.nimble/bin:$(PATH)
2424
# NIM binary location
2525
NIM_BINARY := $(shell which nim 2>/dev/null)
2626
NPH := $(HOME)/.nimble/bin/nph
27+
NIMBLE := $(HOME)/.nimble/bin/nimble
2728
NIMBLEDEPS_STAMP := nimbledeps/.nimble-setup
2829

2930
# Compilation parameters
@@ -71,7 +72,7 @@ waku.nims:
7172
ln -s waku.nimble $@
7273

7374
$(NIMBLEDEPS_STAMP): nimble.lock | install-nimble build-nph waku.nims
74-
nimble setup --localdeps
75+
$(NIMBLE) setup --localdeps
7576
touch $@
7677

7778
# Must be phony so the recipe always runs and the sub-make re-evaluates

apps/chat2bridge/chat2bridge.nim

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{.push raises: [].}
22

33
import
4-
std/[tables, times, strutils, hashes, sequtils, json],
4+
std/[tables, times, strutils, hashes, sequtils, json, options],
55
chronos,
66
confutils,
77
chronicles,
@@ -267,10 +267,16 @@ when isMainModule:
267267
else:
268268
nodev2ExtPort
269269

270+
let nodev2Key =
271+
if conf.nodekey.isSome():
272+
conf.nodekey.get()
273+
else:
274+
crypto.PrivateKey.random(Secp256k1, rng[]).tryGet()
275+
270276
let bridge = Chat2Matterbridge.new(
271277
mbHostUri = "http://" & $initTAddress(conf.mbHostAddress, Port(conf.mbHostPort)),
272278
mbGateway = conf.mbGateway,
273-
nodev2Key = conf.nodekey,
279+
nodev2Key = nodev2Key,
274280
nodev2BindIp = conf.listenAddress,
275281
nodev2BindPort = Port(uint16(conf.libp2pTcpPort) + conf.portsShift),
276282
nodev2ExtIp = nodev2ExtIp,

apps/chat2bridge/config_chat2bridge.nim

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import
2+
std/options,
23
confutils,
34
confutils/defs,
45
confutils/std/net,
@@ -45,7 +46,7 @@ type Chat2MatterbridgeConf* = object
4546

4647
metricsServerAddress* {.
4748
desc: "Listening address of the metrics server",
48-
defaultValue: parseIpAddress("127.0.0.1"),
49+
defaultValue: IpAddress(family: IpAddressFamily.IPv4, address_v4: [127'u8, 0, 0, 1]),
4950
name: "metrics-server-address"
5051
.}: IpAddress
5152

@@ -62,10 +63,8 @@ type Chat2MatterbridgeConf* = object
6263
.}: seq[string]
6364

6465
nodekey* {.
65-
desc: "P2P node private key as hex",
66-
defaultValue: crypto.PrivateKey.random(Secp256k1, newRng()[]).tryGet(),
67-
name: "nodekey"
68-
.}: crypto.PrivateKey
66+
desc: "P2P node private key as hex", defaultValueDesc: "random", name: "nodekey"
67+
.}: Option[crypto.PrivateKey]
6968

7069
store* {.
7170
desc: "Flag whether to start store protocol", defaultValue: true, name: "store"
@@ -94,7 +93,7 @@ type Chat2MatterbridgeConf* = object
9493
# Matterbridge options
9594
mbHostAddress* {.
9695
desc: "Listening address of the Matterbridge host",
97-
defaultValue: parseIpAddress("127.0.0.1"),
96+
defaultValue: IpAddress(family: IpAddressFamily.IPv4, address_v4: [127'u8, 0, 0, 1]),
9897
name: "mb-host-address"
9998
.}: IpAddress
10099

apps/chat2mix/config_chat2mix.nim

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ type
162162

163163
metricsServerAddress* {.
164164
desc: "Listening address of the metrics server.",
165-
defaultValue: parseIpAddress("127.0.0.1"),
165+
defaultValue:
166+
IpAddress(family: IpAddressFamily.IPv4, address_v4: [127'u8, 0, 0, 1]),
166167
name: "metrics-server-address"
167168
.}: IpAddress
168169

@@ -194,7 +195,10 @@ type
194195

195196
dnsDiscoveryNameServers* {.
196197
desc: "DNS name server IPs to query. Argument may be repeated.",
197-
defaultValue: @[parseIpAddress("1.1.1.1"), parseIpAddress("1.0.0.1")],
198+
defaultValue: @[
199+
IpAddress(family: IpAddressFamily.IPv4, address_v4: [1'u8, 1, 1, 1]),
200+
IpAddress(family: IpAddressFamily.IPv4, address_v4: [1'u8, 0, 0, 1]),
201+
],
198202
name: "dns-discovery-name-server"
199203
.}: seq[IpAddress]
200204

apps/liteprotocoltester/tester_config.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ type LiteProtocolTesterConf* = object
133133
## Tester REST service configuration
134134
restAddress* {.
135135
desc: "Listening address of the REST HTTP server.",
136-
defaultValue: parseIpAddress("127.0.0.1"),
136+
defaultValue: IpAddress(family: IpAddressFamily.IPv4, address_v4: [127'u8, 0, 0, 1]),
137137
name: "rest-address"
138138
.}: IpAddress
139139

apps/networkmonitor/networkmonitor_config.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ type NetworkMonitorConf* = object
116116

117117
metricsServerAddress* {.
118118
desc: "Listening address of the metrics server.",
119-
defaultValue: parseIpAddress("127.0.0.1"),
119+
defaultValue: IpAddress(family: IpAddressFamily.IPv4, address_v4: [127'u8, 0, 0, 1]),
120120
name: "metrics-server-address"
121121
.}: IpAddress
122122

tests/node/peer_manager/peer_store/test_migrations.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import std/[options], stew/results, testutils/unittests
1+
import std/[options], results, testutils/unittests
22

33
import
44
waku/node/peer_manager/peer_store/migrations,
55
../../waku_archive/archive_utils,
66
../../testlib/[simple_mock]
77

8-
import std/[tables, strutils, os], stew/results, chronicles
8+
import std/[tables, strutils, os], results, chronicles
99

1010
import waku/common/databases/db_sqlite, waku/common/databases/common
1111

tests/node/peer_manager/peer_store/test_peer_storage.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import stew/results, testutils/unittests
1+
import results, testutils/unittests
22

33
import waku/node/peer_manager/peer_store/peer_storage, waku/waku_core/peers
44

tests/node/test_wakunode_relay_rln.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import
44
std/[tempfiles, strutils, options],
5-
stew/results,
5+
results,
66
testutils/unittests,
77
chronos,
88
libp2p/switch,

0 commit comments

Comments
 (0)