Commit Graph

4578 Commits

Author SHA1 Message Date
bors[bot]
eb81d9a970
Merge #3270
3270: Update version for the next release (v0.30.5) in Cargo.toml files r=curquiza a=meili-bot

⚠️ This PR is automatically generated. Check the new version is the expected one before merging.

Co-authored-by: curquiza <curquiza@users.noreply.github.com>
2022-12-21 12:31:08 +00:00
curquiza
6b4da435ab Update version for the next release (v0.30.5) in Cargo.toml files 2022-12-21 12:23:20 +00:00
bors[bot]
9a5c98cbc5
Merge #3267 #3268
3267: Bump milli to v0.37.5 r=curquiza a=curquiza

Fixes #3021 

3268: Make Clippy happy r=curquiza a=curquiza

Fix clippy to be able to merge

I made `cargo clippy --fix`

Co-authored-by: curquiza <clementine@meilisearch.com>
2022-12-21 11:20:55 +00:00
curquiza
e91f994816 Make Clippy happy 2022-12-21 11:51:13 +01:00
curquiza
ab84baa7b0 Bump milli to v0.37.5 2022-12-21 11:34:01 +01:00
bors[bot]
e1aad060ff
Merge #3258
3258: Bump milli to v0.37.4 r=curquiza a=Kerollmops

This PR bumps the milli dependency to v0.37.4 for the next Meilisearch release.

Co-authored-by: Kerollmops <clement@meilisearch.com>
2022-12-15 15:50:54 +00:00
Kerollmops
eecc5e7da1
Bump milli to v0.37.4 2022-12-15 16:06:43 +01:00
bors[bot]
ab3577f0e9
Merge #3254
3254: Update version for the next release (v0.30.4) in Cargo.toml files r=curquiza a=meili-bot

⚠️ This PR is automatically generated. Check the new version is the expected one before merging.

Co-authored-by: curquiza <curquiza@users.noreply.github.com>
2022-12-15 11:16:40 +00:00
curquiza
81a41431be Update version for the next release (v0.30.4) in Cargo.toml files 2022-12-15 09:56:56 +00:00
bors[bot]
539edb5a64
Merge #3248
3248: Bump milli to v0.37.3 r=curquiza a=Kerollmops

This PR bumps the milli dependency from v0.37.2 to v0.37.3.

Co-authored-by: Kerollmops <clement@meilisearch.com>
2022-12-14 13:52:13 +00:00
Kerollmops
312a8afadc
Bump milli to v0.37.3 2022-12-14 14:33:43 +01:00
bors[bot]
0ceb51a123
Merge #3240
3240: Update version for the next release (v0.30.3) in Cargo.toml files r=curquiza a=meili-bot

⚠️ This PR is automatically generated. Check the new version is the expected one before merging.

Co-authored-by: curquiza <curquiza@users.noreply.github.com>
2022-12-13 17:13:52 +00:00
curquiza
d2a7f332c1 Update version for the next release (v0.30.3) in Cargo.toml files 2022-12-13 16:35:10 +00:00
bors[bot]
4534825191
Merge #3237
3237: Fix the cli flags related to the import of dump and snapshot. r=dureuill a=irevoire

Some flags were badly applied + the database wrongly deleted when it shouldn't.

To reduce the number of mistakes we might make I added a bunch of comments + created a function that handles the import of an existing or empty database.


Here is the associated (working) code from the v0.29.3: https://github.com/meilisearch/meilisearch/blob/release-v0.29.3/meilisearch-lib/src/dump/mod.rs#L166-L191

Fix  #3238

Co-authored-by: Tamo <tamo@meilisearch.com>
2022-12-13 16:31:13 +00:00
Tamo
bb9b3e0bbb
rename the two new functions 2022-12-13 17:25:49 +01:00
Tamo
79656585dd
Fix typos
Co-authored-by: Louis Dureuil <louis@meilisearch.com>
2022-12-13 17:02:07 +01:00
Tamo
bbe4a84ddc
Fix the import of dumps and snapshot.
Some flags were badly applied + the database wrongly deleted when they shouldn't
2022-12-13 16:39:05 +01:00
bors[bot]
125f0b1522
Merge #3218
3218: Update version for the next release (v0.30.2) in Cargo.toml files r=curquiza a=meili-bot

⚠️ This PR is automatically generated. Check the new version is the expected one before merging.

Co-authored-by: curquiza <curquiza@users.noreply.github.com>
2022-12-08 13:28:00 +00:00
bors[bot]
eb758343bd
Merge #3217
3217: Bump milli to v0.37.2 r=Kerollmops a=curquiza

⚠️ Please ensure milli has been updated in EVERY cargo.tom ⚠️ 

Co-authored-by: curquiza <clementine@meilisearch.com>
2022-12-08 13:01:44 +00:00
curquiza
4b61ffae67 Update version for the next release (v0.30.2) in Cargo.toml files 2022-12-08 12:32:02 +00:00
curquiza
b259bc686d Bump milli to v0.37.2 2022-12-08 13:23:44 +01:00
bors[bot]
6ddde37850
Merge #3213
3213: Fix the instance-uid in the data.ms r=Kerollmops a=irevoire

We were writing the instance-uid as bytes instead of strings in the data.ms, and thus we were unable to parse it later. Also, it was less practical for our users to retrieve it and send it to us.

Fix #3214

Co-authored-by: Tamo <tamo@meilisearch.com>
2022-12-07 19:08:17 +00:00
Tamo
ee7a4be95c
Fix the instance-uid in the data.ms
We were writing the instance-uid as bytes instead of string in the data.ms and thus we were unable to parse it later.
Also it was less practical for our user to retrieve it and send it to us.
2022-12-07 18:22:36 +01:00
bors[bot]
58cd5d29e8
Merge #3202 #3203
3202: Bump milli to v0.37.1 r=curquiza a=Kerollmops

This PR bumps milli to v0.37.1 and fixes #3167, #3178, #3165, and #3021.

3203: Update version for the next release (v0.30.1) in Cargo.toml files r=Kerollmops a=meili-bot

⚠️ This PR is automatically generated. Check the new version is the expected one before merging.

Co-authored-by: Kerollmops <clement@meilisearch.com>
Co-authored-by: curquiza <curquiza@users.noreply.github.com>
2022-12-06 16:22:38 +00:00
curquiza
d3d794e9ba Update version for the next release (v0.30.1) in Cargo.toml files 2022-12-06 16:20:31 +00:00
Kerollmops
ef978a6106
Bump milli to v0.37.1 2022-12-06 17:11:03 +01:00
bors[bot]
ee372099fd
Merge #3160
3160: Clamp databases max size to the page size r=irevoire a=Kerollmops

This PR fixes #3150 (again #2662). We fix it again, here, as we entirely rewrote the index scheduler and forgot about this little detail.

`@irevoire` Can I have your input on where we create the indexes in the tests? I want to use a non-page-size rounded value in the tests. This way, we can see this issue in the tests next time.

Co-authored-by: Kerollmops <clement@meilisearch.com>
2022-11-29 14:43:49 +00:00
Kerollmops
e6f4a8a992
Clamp the databases size to the page size 2022-11-29 15:26:48 +01:00
Kerollmops
b948bb5191
Make the tests use MB to trigger page size issues 2022-11-29 15:26:48 +01:00
bors[bot]
27ac62ec33
Merge #3161
3161: « Fix » dump tests r=curquiza a=irevoire

This PR doesn't re-enable the dump tests.
It's a cherry-pick of https://github.com/meilisearch/meilisearch/pull/3149 that should avoid a conflict when we merge on `main` later

Close  #3153

Co-authored-by: Tamo <tamo@meilisearch.com>
2022-11-29 12:30:54 +00:00
Tamo
0aec840d20
Fix the dump tests 2022-11-29 10:45:39 +01:00
bors[bot]
0aa3f667d4
Merge #3136
3136: Fix no master key error r=Kerollmops a=ManyTheFish


Fixes #3135

Co-authored-by: ManyTheFish <many@meilisearch.com>
2022-11-24 15:25:11 +00:00
ManyTheFish
1eba5d45ea Check if the master key is missing before returning an error 2022-11-24 16:02:14 +01:00
ManyTheFish
cfa78418f2 Update tests 2022-11-24 15:51:15 +01:00
bors[bot]
aaf5abbf1c
Merge #3085
3085: refactorize the whole test suite r=irevoire a=irevoire

1. Make a call to assert_internally_consistent automatically when snapshotting the scheduler. There is no point in snapshotting something broken and expecting the dumb humans to notice.
2. Replace every possible call to assert_internally_consistent with a snapshot of the scheduler. It uses the same amount of lines and ensures we never change something without noticing in any tests ever.
3. Name every snapshot: it's easier to debug when something goes wrong and easier to review in general.
4. Stop skipping breakpoints; it's too easy to miss something. Now you must explicitly show which path the scheduler is supposed to use.
5. Add a timeout on the channel.recv, it eases the process of writing tests; now, when something files, you get a failure instead of a deadlock.

Co-authored-by: Irevoire <tamo@meilisearch.com>
2022-11-23 19:55:08 +00:00
bors[bot]
f724f8adfe
Merge #3122
3122: Display the `dumpUid` as `null` until we create it r=irevoire a=Kerollmops

This PR fixes #3117 by displaying the `DumpCreation` `dumpUid` details field as `null` until we compute the dump and the task is finished.

Co-authored-by: Kerollmops <clement@meilisearch.com>
2022-11-23 14:37:50 +00:00
Kerollmops
cde2a96486
Display a null dumpUid until we computed the dump itself on disk 2022-11-23 15:16:58 +01:00
bors[bot]
ceca386dc0
Merge #3114
3114: Update the analytics on the ranking rules r=irevoire a=irevoire

fix #3113

Co-authored-by: Irevoire <tamo@meilisearch.com>
2022-11-23 14:03:57 +00:00
Irevoire
370a45a58b
send the ranking rules as a string because amplitude is too dumb to process an array as a single value 2022-11-23 14:56:22 +01:00
Kerollmops
7093bae131
Update the dump test to check for the dumpUid dumpCreation task details 2022-11-23 14:48:39 +01:00
Irevoire
fb785dc5ac
Add more analytics on the ranking rules positions 2022-11-23 12:51:34 +01:00
Irevoire
3a0b1a0c0e
try to remove the flakyness of the failing test 2022-11-23 11:22:24 +01:00
Irevoire
af808462b6
update the snapshots after a rebase 2022-11-23 11:16:59 +01:00
Irevoire
2999ae3da4
makes clippy happy 2022-11-23 11:13:54 +01:00
Irevoire
23ec7db3f9
rebase on release-v0.30 2022-11-23 11:13:54 +01:00
Irevoire
f02e5cfaa6
refactorize the whole test suite
1. Make a call to assert_internally_consistent automatically when snapshoting the scheduler. There is no point in snapshoting something broken and expect the dumb humans to notice.
2. Replace every possible call to assert_internally_consistent by a snapshot of the scheduler. It takes as many lines and ensure we never change something without noticing in any tests ever.
3. Name every snapshots: it's easier to debug when something goes wrong and easier to review in general.
4. Stop skipping breakpoints, it's too easy to miss something. Now you must explicitely show which path is the scheduler supposed to use.
5. Add a timeout on the channel.recv, it eases the process of writing tests, now when something file you get a failure instead of a deadlock.
2022-11-23 11:13:54 +01:00
bors[bot]
8443554b1f
Merge #3110
3110: Always display `deletedDocuments` in the `IndexDeletion` details r=ManyTheFish a=Kerollmops

This PR fixes #3108 by always displaying a `deletedDocuments` details info.

Co-authored-by: Kerollmops <clement@meilisearch.com>
2022-11-23 09:37:02 +00:00
Kerollmops
84c782ce9a
Fix the insta tests 2022-11-22 18:53:17 +01:00
bors[bot]
1392a3b304
Merge #3106
3106: Fix linking error when building binaries for aarch64 r=curquiza a=Kerollmops

This PR tries to fix #3094. Please don't look too close. It will be horrifying 😱
You can look at [the status of the fix in the CI](https://github.com/meilisearch/meilisearch/actions/runs/3523723323/jobs/5908229083).

Co-authored-by: Kerollmops <clement@meilisearch.com>
2022-11-22 15:49:53 +00:00
Kerollmops
2ec699a2e7
Always display details for the indexDeletion task 2022-11-22 15:14:28 +01:00