Merge branch 'main' of gitlab.hackers.town:veilid/veilid into dht-testing

This commit is contained in:
John Smith 2023-06-23 12:05:40 -04:00
commit 296ca5cadb
4 changed files with 12 additions and 70 deletions

View File

@ -5,74 +5,32 @@ variables:
GIT_SUBMODULE_STRATEGY: normal GIT_SUBMODULE_STRATEGY: normal
stages: stages:
- build
- test - test
- package
- distribute - distribute
before_script: before_script:
- earthly bootstrap - earthly bootstrap
build_amd64: test_amd64:
stage: build stage: test
image: earthly/earthly:v0.6.30
only: only:
- main - main
- merge_requests - merge_requests
image: earthly/earthly:v0.6.30
tags: tags:
- linux - linux
- amd64 - amd64
script: script:
- earthly +build-linux-amd64 - earthly --ci +unit-tests-linux-amd64
when: manual when: manual
test_amd64:
stage: test
needs:
- job: build_amd64
only:
- main
tags:
- linux
- amd64
script:
- earthly +unit-tests-linux-amd64
package_amd64:
stage: package
needs:
- job: test_amd64
only:
- main
tags:
- linux
- amd64
script:
- earthly +package-linux-amd64
distribute_amd64: distribute_amd64:
stage: distribute stage: distribute
needs:
- job: package_amd64
only: only:
- main - stable
tags: tags:
- linux - linux
- amd64 - amd64
script: script:
- earthly +package-linux-amd64 - earthly +package-linux-amd64
- /home/gitlab-runner/distribute-packages.sh - /home/gitlab-runner/distribute-packages.sh
#earthly-arm64:
# stage: linux-arm64
# only:
# - main
# - merge_requests
# image: earthly/earthly:v0.6.30
# tags:
# - linux
# - amd64
# script:
# - earthly --ci -P +package-linux-arm64

View File

@ -146,17 +146,9 @@ impl Crypto {
{ {
let c = self.unlocked_inner.config.get(); let c = self.unlocked_inner.config.get();
for ck in VALID_CRYPTO_KINDS { for ck in VALID_CRYPTO_KINDS {
cache_validity_key.append( if let Some(nid) = c.network.routing_table.node_id.get(ck) {
&mut c cache_validity_key.append(&mut nid.value.bytes.to_vec());
.network }
.routing_table
.node_id
.get(ck)
.unwrap()
.value
.bytes
.to_vec(),
);
} }
}; };

View File

@ -351,17 +351,9 @@ impl RoutingTable {
{ {
let c = self.unlocked_inner.config.get(); let c = self.unlocked_inner.config.get();
for ck in VALID_CRYPTO_KINDS { for ck in VALID_CRYPTO_KINDS {
cache_validity_key.append( if let Some(nid) = c.network.routing_table.node_id.get(ck) {
&mut c cache_validity_key.append(&mut nid.value.bytes.to_vec());
.network }
.routing_table
.node_id
.get(ck)
.unwrap()
.value
.bytes
.to_vec(),
);
} }
for b in &c.network.routing_table.bootstrap { for b in &c.network.routing_table.bootstrap {
cache_validity_key.append(&mut b.as_bytes().to_vec()); cache_validity_key.append(&mut b.as_bytes().to_vec());

View File

@ -1580,7 +1580,7 @@ mod tests {
// //
assert_eq!( assert_eq!(
s.core.network.routing_table.bootstrap, s.core.network.routing_table.bootstrap,
vec!["bootstrap.dev.veilid.net".to_owned()] vec!["bootstrap.veilid.net".to_owned()]
); );
// //
assert_eq!(s.core.network.rpc.concurrency, 0); assert_eq!(s.core.network.rpc.concurrency, 0);