Skip to content

Commit 589d568

Browse files
committed
Merge branch 'unstable' into lint-opt-tests
2 parents 53f6007 + c5a48a9 commit 589d568

File tree

6 files changed

+17
-9
lines changed

6 files changed

+17
-9
lines changed

.github/workflows/local-testnet.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
run: |
4141
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list
4242
sudo apt update
43-
sudo apt install -y kurtosis-cli=1.3.1
43+
sudo apt install -y kurtosis-cli
4444
kurtosis analytics disable
4545
4646
- name: Download Docker image artifact
@@ -86,7 +86,7 @@ jobs:
8686
run: |
8787
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list
8888
sudo apt update
89-
sudo apt install -y kurtosis-cli=1.3.1
89+
sudo apt install -y kurtosis-cli
9090
kurtosis analytics disable
9191
9292
- name: Download Docker image artifact
@@ -121,7 +121,7 @@ jobs:
121121
run: |
122122
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list
123123
sudo apt update
124-
sudo apt install -y kurtosis-cli=1.3.1
124+
sudo apt install -y kurtosis-cli
125125
kurtosis analytics disable
126126
127127
- name: Download Docker image artifact

.github/workflows/test-suite.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ jobs:
8383
runs-on: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "CI", "large"]') || 'ubuntu-latest' }}
8484
steps:
8585
- uses: actions/checkout@v4
86+
# Set Java version to 21. (required since Web3Signer 24.12.0).
87+
- uses: actions/setup-java@v4
88+
with:
89+
distribution: 'temurin'
90+
java-version: '21'
8691
- name: Get latest version of stable Rust
8792
if: env.SELF_HOSTED_RUNNERS == 'false'
8893
uses: moonrepo/setup-rust@v1

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ install-audit:
240240
cargo install --force cargo-audit
241241

242242
audit-CI:
243-
cargo audit
243+
cargo audit --ignore RUSTSEC-2024-0421
244244

245245
# Runs `cargo vendor` to make sure dependencies can be vendored for packaging, reproducibility and archival purpose.
246246
vendor:

beacon_node/network/src/subnet_service/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ impl<T: BeaconChainTypes> SubnetService<T> {
213213
#[cfg(test)]
214214
pub(crate) fn is_subscribed(&self, subnet: &Subnet) -> bool {
215215
self.subscriptions.contains_key(subnet)
216+
|| self.permanent_attestation_subscriptions.contains(subnet)
216217
}
217218

218219
/// Processes a list of validator subscriptions.

beacon_node/network/src/subnet_service/tests/mod.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ mod test {
225225
let mut committee_count = 1;
226226
let mut subnet = Subnet::Attestation(
227227
SubnetId::compute_subnet::<MainnetEthSpec>(
228-
current_slot,
228+
subscription_slot,
229229
committee_index,
230230
committee_count,
231231
&subnet_service.beacon_chain.spec,
@@ -250,7 +250,7 @@ mod test {
250250

251251
let subscriptions = vec![get_subscription(
252252
committee_index,
253-
current_slot,
253+
subscription_slot,
254254
committee_count,
255255
true,
256256
)];
@@ -556,7 +556,8 @@ mod test {
556556
subnet_service.validator_subscriptions(vec![sub1, sub2].into_iter());
557557

558558
// Unsubscription event should happen at the end of the slot.
559-
let events = get_events(&mut subnet_service, None, 1).await;
559+
// We wait for 2 slots, to avoid timeout issues
560+
let events = get_events(&mut subnet_service, None, 2).await;
560561

561562
let expected_subscription =
562563
SubnetServiceMessage::Subscribe(Subnet::Attestation(subnet_id1));
@@ -567,6 +568,7 @@ mod test {
567568
assert_eq!(expected_subscription, events[0]);
568569
assert_eq!(expected_unsubscription, events[2]);
569570
}
571+
// Check that there are no more subscriptions
570572
assert_eq!(subnet_service.subscriptions().count(), 0);
571573

572574
println!("{events:?}");

scripts/tests/doppelganger_protection.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ if [[ "$BEHAVIOR" == "failure" ]]; then
7171
# This process should not last longer than 2 epochs
7272
vc_1_range_start=0
7373
vc_1_range_end=$(($KEYS_PER_NODE - 1))
74-
vc_1_keys_artifact_id="1-lighthouse-geth-$vc_1_range_start-$vc_1_range_end-0"
74+
vc_1_keys_artifact_id="1-lighthouse-geth-$vc_1_range_start-$vc_1_range_end"
7575
service_name=vc-1-doppelganger
7676

7777
kurtosis service add \
@@ -107,7 +107,7 @@ if [[ "$BEHAVIOR" == "success" ]]; then
107107

108108
vc_4_range_start=$(($KEYS_PER_NODE * 3))
109109
vc_4_range_end=$(($KEYS_PER_NODE * 4 - 1))
110-
vc_4_keys_artifact_id="4-lighthouse-geth-$vc_4_range_start-$vc_4_range_end-0"
110+
vc_4_keys_artifact_id="4-lighthouse-geth-$vc_4_range_start-$vc_4_range_end"
111111
service_name=vc-4
112112

113113
kurtosis service add \

0 commit comments

Comments
 (0)