Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aggregator Recompute cert hash command #1013

Merged
merged 14 commits into from Jun 29, 2023

Conversation

Alenar
Copy link
Collaborator

@Alenar Alenar commented Jun 28, 2023

Content

This PR add a new commands that make the aggregator recompute all its certificates hash (and update certificate related entities such as signed_entity).
This allow us to change the structure of the Certificate and CertificateMetadata types without the needs to re-genesis the certificate chain.

Pre-submit checklist

  • Branch
    • Tests are provided (if possible)
    • Crates versions are 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
  • Documentation
    • Update README file (if relevant)
    • Update documentation website (if relevant)
    • Add dev blog post (if relevant)

Comments

This PR also split the aggregator commands arguments in a dedicated sub-module/

Issue(s)

Closes #1001

@Alenar Alenar force-pushed the djo/1001/recompute-cert-hash-command branch 2 times, most recently from 6186c83 to 15fb254 Compare June 28, 2023 12:40
@Alenar Alenar temporarily deployed to testing-preview June 28, 2023 12:48 — with GitHub Actions Inactive
@Alenar Alenar force-pushed the djo/1001/recompute-cert-hash-command branch from 15fb254 to c428bd6 Compare June 28, 2023 13:21
@Alenar Alenar temporarily deployed to testing-preview June 28, 2023 13:30 — with GitHub Actions Inactive
@Alenar Alenar force-pushed the djo/1001/recompute-cert-hash-command branch from c428bd6 to 335ea99 Compare June 28, 2023 14:18
@Alenar Alenar requested a review from jpraynaud June 28, 2023 14:19
This speed up certificates insertion on a db with 1800+ certificates by
a factor of 5+ (8s instead of 44s).
@Alenar Alenar temporarily deployed to testing-preview June 28, 2023 15:28 — with GitHub Actions Inactive
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 👍

@Alenar Alenar temporarily deployed to testing-preview June 29, 2023 12:44 — with GitHub Actions Inactive
@Alenar Alenar merged commit 76c6930 into main Jun 29, 2023
24 checks passed
@Alenar Alenar deleted the djo/1001/recompute-cert-hash-command branch June 29, 2023 12:59
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.

Add recompute-certificates-hash command to aggregator
3 participants