Skip to content

Conversation

@Alenar
Copy link
Collaborator

@Alenar Alenar commented Nov 14, 2024

Content

This PR add a migration in both the signer and the aggregator to remove remaining network in cardano immutable files full beacons stored in database.

Keeping them lead the signer and aggregator to think that they have not produced a signature for the latest immutable files full snapshot when they are upgraded to the changes introduced with PR #2110.
This happens because when this check is done in database it use the serialized json representation (stored in the open_message table for aggregator, signed_beacon table for signer) and this json has changed with the network removal.

Pre-submit checklist

  • Branch
    • Tests are provided (if possible)
    • Crates versions are updated (if relevant)
    • CHANGELOG file is updated (if relevant)
    • Commit sequence broadly makes sense
    • Key commits have useful messages
  • PR
    • No clippy warnings in the CI
    • Self-reviewed the diff
    • Useful pull request description
    • Reviewer requested

Issue(s)

Relates to #1957

…es full beacons

As keeping them lead the signer and aggregator to think that they have
not produced a signature for the latest immutable files full snapshot
(because when the check is done in db it use the serialized json
representation that have changed with the network removal).
@Alenar Alenar self-assigned this Nov 14, 2024
@github-actions
Copy link

github-actions bot commented Nov 14, 2024

Test Results

    4 files  ±0     51 suites  ±0   11m 42s ⏱️ -3s
1 445 tests ±0  1 445 ✅ ±0  0 💤 ±0  0 ❌ ±0 
1 656 runs  ±0  1 656 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit b970fea. ± Comparison against base commit 85bc542.

♻️ This comment has been updated with latest results.

Copy link
Member

@jpraynaud jpraynaud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

* mithril-aggregator from `0.5.111` to `0.5.112`
* mithril-signer from `0.2.213` to `0.2.214`
@Alenar Alenar temporarily deployed to testing-preview November 14, 2024 16:42 — with GitHub Actions Inactive
@Alenar Alenar temporarily deployed to testing-sanchonet November 14, 2024 16:42 — with GitHub Actions Inactive
@Alenar Alenar merged commit 86abef9 into main Nov 14, 2024
50 checks passed
@Alenar Alenar deleted the djo/1957/remove_network_from_cardano_db_beacon_in_db branch November 14, 2024 16:43
Copy link
Collaborator

@sfauvel sfauvel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants