Skip to content

Commit

Permalink
exception
Browse files Browse the repository at this point in the history
  • Loading branch information
achamayou committed Sep 13, 2024
1 parent 742f76b commit ef3bb60
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

- The `set_jwt_issuer` governance action has been updated, and no longer accepts `key_filter` or `key_policy` arguments (#6450).
- Nodes started in `Join` mode will shut down if they receive and unrecoverable condition such as `StartupSeqnoIsOld` when attempting to join (#6471).
- In configuration, `attestation.snp_endorsements_servers` can specify a `max_retries_count`. If the count has been exhausted without success for all configured servers, the node will shut down (#6478).

### Removed

Expand Down
9 changes: 9 additions & 0 deletions tests/infra/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ class StartupSeqnoIsOld(Exception):
pass


class CollateralFetchTimeout(Exception):
pass


class ServiceCertificateInvalid(Exception):
pass

Expand Down Expand Up @@ -924,6 +928,11 @@ def run_join_node(
raise StartupSeqnoIsOld(has_stopped) from e
if "invalid cert on handshake" in error:
raise ServiceCertificateInvalid from e
if (
"Timed out fetching attestation endorsements from all"
in error
):
raise CollateralFetchTimeout(has_stopped) from e
raise

def join_node(
Expand Down

0 comments on commit ef3bb60

Please sign in to comment.