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

Feat: ancillary archive creation #2191

Merged
merged 18 commits into from
Jan 6, 2025

Conversation

dlachaume
Copy link
Collaborator

@dlachaume dlachaume commented Dec 23, 2024

Content

This PR updates the AncillaryArtifactBuilder to include the creation of an archive from the ancillary files of the Cardano database. The archive contains:

  • The /ledger directory and its content.
  • The /volatile directory and its content.
  • The /immutable directory, including the latest trio of immutable files (.chunk, .primary, .secondary).

Additionally, the returned locations for downloading the archive are now referenced in the artifact.

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)

Relates to #2151

@dlachaume dlachaume self-assigned this Dec 23, 2024
Copy link

github-actions bot commented Dec 23, 2024

Test Results

    4 files  ±0     52 suites  ±0   10m 25s ⏱️ +6s
1 479 tests +9  1 479 ✅ +9  0 💤 ±0  0 ❌ ±0 
1 735 runs  +9  1 735 ✅ +9  0 💤 ±0  0 ❌ ±0 

Results for commit 8d374ca. ± Comparison against base commit 00567fe.

This pull request removes 3 and adds 12 tests. Note that renamed tests count towards both.
mithril-aggregator ‑ artifact_builder::cardano_database_artifacts::ancillary::tests::upload_archive_should_return_all_uploaders_returned_locations
mithril-aggregator ‑ artifact_builder::cardano_database_artifacts::ancillary::tests::upload_archive_should_return_empty_locations_with_no_uploader
mithril-aggregator ‑ file_uploaders::local_uploader::tests::should_extract_digest_to_deduce_location
mithril-aggregator ‑ artifact_builder::cardano_database_artifacts::ancillary::tests::create_ancillary_builder_should_error_when_no_uploader
mithril-aggregator ‑ artifact_builder::cardano_database_artifacts::ancillary::tests::create_archive_should_embed_ledger_volatile_directories_and_last_immutables
mithril-aggregator ‑ artifact_builder::cardano_database_artifacts::ancillary::tests::upload_ancillary_archive_should_error_when_no_location_is_returned
mithril-aggregator ‑ artifact_builder::cardano_database_artifacts::ancillary::tests::upload_ancillary_archive_should_log_upload_errors
mithril-aggregator ‑ artifact_builder::cardano_database_artifacts::ancillary::tests::upload_ancillary_archive_should_return_all_uploaders_returned_locations
mithril-aggregator ‑ artifact_builder::cardano_database_artifacts::ancillary::tests::upload_ancillary_archive_should_return_location_even_with_uploaders_errors
mithril-aggregator ‑ artifact_builder::cardano_database_artifacts::ancillary::tests::upload_should_return_error_and_not_upload_when_archive_creation_fails
mithril-aggregator ‑ file_uploaders::local_snapshot_uploader::tests::should_copy_file_to_target_location
mithril-aggregator ‑ file_uploaders::local_snapshot_uploader::tests::should_error_if_path_is_a_directory
mithril-aggregator ‑ file_uploaders::local_snapshot_uploader::tests::should_extract_digest_to_deduce_location
…

♻️ This comment has been updated with latest results.

@dlachaume dlachaume force-pushed the ensemble/2151/create-ancillary-archive branch 2 times, most recently from 66638f7 to d412a36 Compare December 24, 2024 15:57
@dlachaume dlachaume temporarily deployed to testing-sanchonet December 24, 2024 16:34 — with GitHub Actions Inactive
@dlachaume dlachaume force-pushed the ensemble/2151/create-ancillary-archive branch from 9290e74 to d412a36 Compare January 2, 2025 09:00
Base automatically changed from ensemble/2151/extend-snapshotter-for-specific-files-directories to main January 2, 2025 09:22
@dlachaume dlachaume force-pushed the ensemble/2151/create-ancillary-archive branch 2 times, most recently from c89cd05 to fa7a3c6 Compare January 2, 2025 11:32
@dlachaume dlachaume force-pushed the ensemble/2151/create-ancillary-archive branch 2 times, most recently from 5fa147a to 3944b85 Compare January 3, 2025 14:03
@dlachaume dlachaume temporarily deployed to testing-sanchonet January 3, 2025 14:15 — with GitHub Actions Inactive
@dlachaume dlachaume force-pushed the ensemble/2151/create-ancillary-archive branch from 3944b85 to bc32bd9 Compare January 3, 2025 14:17
@dlachaume dlachaume marked this pull request as ready for review January 3, 2025 14:17
@dlachaume dlachaume force-pushed the ensemble/2151/create-ancillary-archive branch from bc32bd9 to 7e1e7a3 Compare January 3, 2025 14:18
@dlachaume dlachaume temporarily deployed to testing-sanchonet January 3, 2025 14:27 — with GitHub Actions Inactive
@dlachaume dlachaume temporarily deployed to testing-sanchonet January 3, 2025 14:58 — with GitHub Actions Inactive
@dlachaume dlachaume force-pushed the ensemble/2151/create-ancillary-archive branch from 1f1f31a to 16ba5af Compare January 3, 2025 15:33
@dlachaume dlachaume temporarily deployed to testing-sanchonet January 3, 2025 15:42 — with GitHub Actions Inactive
@dlachaume dlachaume requested review from jpraynaud and Alenar January 3, 2025 15:43
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 👍

dlachaume and others added 13 commits January 6, 2025 15:46
…rl` instead of `String`

Co-authored-by: Jean-Philippe Raynaud <[email protected]>
Co-authored-by: Sébastien Fauvel <[email protected]>
…ned while trying to upload the archive

Co-authored-by: Sébastien Fauvel <[email protected]>
@dlachaume dlachaume force-pushed the ensemble/2151/create-ancillary-archive branch from c58f738 to 8a8caed Compare January 6, 2025 14:47
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 👍

@dlachaume dlachaume force-pushed the ensemble/2151/create-ancillary-archive branch from 8a8caed to d79b231 Compare January 6, 2025 15:29
@dlachaume dlachaume temporarily deployed to testing-sanchonet January 6, 2025 15:38 — with GitHub Actions Inactive
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 🚀

dlachaume and others added 3 commits January 6, 2025 17:41
* mithril-aggregator from `0.6.8` to `0.6.9`
* mithril-client from `0.10.6` to `0.10.7`
* mithril-common from `0.4.100` to `0.4.101`
* mithril-end-to-end from `0.4.59` to `0.4.60`
@dlachaume dlachaume force-pushed the ensemble/2151/create-ancillary-archive branch from d79b231 to 8d374ca Compare January 6, 2025 16:41
@dlachaume dlachaume temporarily deployed to testing-sanchonet January 6, 2025 16:50 — with GitHub Actions Inactive
@dlachaume dlachaume merged commit bf038eb into main Jan 6, 2025
51 checks passed
@dlachaume dlachaume deleted the ensemble/2151/create-ancillary-archive branch January 6, 2025 16:51
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.

4 participants