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

Some more migration tests #2113

Merged
merged 1 commit into from
Oct 18, 2022
Merged

Some more migration tests #2113

merged 1 commit into from
Oct 18, 2022

Conversation

icristescu
Copy link
Contributor

@icristescu icristescu commented Oct 11, 2022

This PR adds a V3 store that underwent a Gc to the upgrade tests. I will add two additional stores (V4 and V4 after gc) to these tests once we have the chunk files. Apart from that, I don't see any other migration tests, but happy to do add more if anyone has other ideas.

Rebased on #2110.

@codecov-commenter
Copy link

Codecov Report

Merging #2113 (c9d0202) into main (46e46e0) will increase coverage by 0.03%.
The diff coverage is 84.84%.

❗ Current head c9d0202 differs from pull request most recent head a94a148. Consider uploading reports for the commit a94a148 to get more accurate results

@@            Coverage Diff             @@
##             main    #2113      +/-   ##
==========================================
+ Coverage   64.79%   64.83%   +0.03%     
==========================================
  Files         133      133              
  Lines       15851    15881      +30     
==========================================
+ Hits        10271    10296      +25     
- Misses       5580     5585       +5     
Impacted Files Coverage Δ
src/irmin-pack/version.ml 44.44% <25.00%> (-1.02%) ⬇️
src/irmin-pack/unix/ext.ml 62.15% <85.71%> (+0.20%) ⬆️
src/irmin-pack/unix/control_file.ml 86.00% <88.88%> (-0.49%) ⬇️
src/irmin-pack/unix/file_manager.ml 83.95% <95.00%> (-0.06%) ⬇️
src/irmin-pack/unix/control_file_intf.ml 100.00% <100.00%> (ø)
src/irmin-pack/unix/dispatcher.ml 75.00% <100.00%> (ø)
src/irmin-pack/unix/gc.ml 82.14% <100.00%> (+0.49%) ⬆️
src/irmin-fs/unix/irmin_fs_unix.ml 67.74% <0.00%> (+0.64%) ⬆️
... and 1 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@icristescu icristescu added the no-changelog-needed No changelog is needed here label Oct 12, 2022
@icristescu icristescu mentioned this pull request Oct 13, 2022
34 tasks
@metanivek metanivek added this to the Irmin 3.5 milestone Oct 13, 2022
@@ -86,7 +90,7 @@ let key_of_entry x =
type start_mode = From_v2 | From_v3 | From_scratch [@@deriving irmin]

type setup = {
indexing_strategy : [ `always | `minimal ];
indexing_strategy : [ `always | `minimal | `minimal_gc ];
Copy link
Contributor

Choose a reason for hiding this comment

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

minimal_gc is not an indexing strategy 😛

If I understand correctly archive_v3_minimal_gced is a store where a GC was run targeting c0.

I suggest you alter start_mode instead of indexing_strategy. You could name the new tag something like From_v3_c0_gced.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's better, done

@Ngoguey42
Copy link
Contributor

Can you update https://github.com/tarides/irmin-scratch/tree/main/scripts/pr1892 accordingly?

Copy link
Contributor

@Ngoguey42 Ngoguey42 left a comment

Choose a reason for hiding this comment

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

Thanks you

@icristescu icristescu merged commit 7d32c9f into mirage:main Oct 18, 2022
@icristescu icristescu deleted the upgrade_tests branch October 18, 2022 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog-needed No changelog is needed here
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants