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

Ensemble/1792/non blocking artifact production in aggregator #1828

Merged

Conversation

sfauvel
Copy link
Collaborator

@sfauvel sfauvel commented Jul 15, 2024

Content

This PR isolate artifact production in a separate thread to avoid blocking the signature of new open messages when the aggregator is computing the artifact for a signed entity type.

The signed entity type is locked during the operation to prevent to compute two signed entity of the same type at the same time.

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
  • Documentation
    • Update README file (if relevant)
    • Update documentation website (if relevant)
    • Add dev blog post (if relevant)

Issue(s)

Closes #1792

Copy link

github-actions bot commented Jul 15, 2024

Test Results

    4 files  ±0     52 suites  ±0   8m 52s ⏱️ +5s
1 153 tests +5  1 153 ✅ +5  0 💤 ±0  0 ❌ ±0 
1 319 runs  +5  1 319 ✅ +5  0 💤 ±0  0 ❌ ±0 

Results for commit 1019bbf. ± Comparison against base commit 556b687.

♻️ This comment has been updated with latest results.

@sfauvel sfauvel marked this pull request as ready for review July 15, 2024 15:52
@sfauvel sfauvel force-pushed the ensemble/1792/non-blocking-artifact-production-in-aggregator branch from 06d42cc to 70fa6e4 Compare July 15, 2024 15:54
@sfauvel sfauvel temporarily deployed to testing-sanchonet July 15, 2024 16:02 — with GitHub Actions Inactive
@sfauvel sfauvel force-pushed the ensemble/1792/non-blocking-artifact-production-in-aggregator branch from 70fa6e4 to b30b52c Compare July 15, 2024 16:04
@sfauvel sfauvel temporarily deployed to testing-sanchonet July 15, 2024 16:12 — 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 👍

mithril-aggregator/src/services/signed_entity.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@Alenar Alenar 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/tests/test_extensions/runtime_tester.rs Outdated Show resolved Hide resolved
mithril-aggregator/src/services/signed_entity.rs Outdated Show resolved Hide resolved
mithril-aggregator/src/services/signed_entity.rs Outdated Show resolved Hide resolved
mithril-aggregator/src/services/signed_entity.rs Outdated Show resolved Hide resolved
dlachaume and others added 10 commits July 16, 2024 14:23
…signed entity types

Co-authored-by: Sébastien Fauvel <sfauvel@users.noreply.github.com>
…in a separate task

Co-authored-by: Sébastien Fauvel <sfauvel@users.noreply.github.com>
Co-authored-by: Sébastien Fauvel <sfauvel@users.noreply.github.com>
Co-authored-by: Sébastien Fauvel <sfauvel@users.noreply.github.com>
Co-authored-by: DJO <Alenar@users.noreply.github.com>
@sfauvel sfauvel force-pushed the ensemble/1792/non-blocking-artifact-production-in-aggregator branch from e2bc74e to 1019bbf Compare July 16, 2024 12:29
@sfauvel sfauvel temporarily deployed to testing-sanchonet July 16, 2024 12:36 — with GitHub Actions Inactive
@sfauvel sfauvel merged commit 2d04e58 into main Jul 16, 2024
40 checks passed
@sfauvel sfauvel deleted the ensemble/1792/non-blocking-artifact-production-in-aggregator branch July 16, 2024 13:17
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.

Non blocking artifact production in aggregator
4 participants