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

Update dart version and checkout #367

Merged
merged 2 commits into from
Dec 20, 2023
Merged

Update dart version and checkout #367

merged 2 commits into from
Dec 20, 2023

Conversation

brunoocasali
Copy link
Member

Update tests.yml to update action versions & Update dart to latest

@brunoocasali brunoocasali force-pushed the update-tests branch 2 times, most recently from 03787c7 to 202b30d Compare December 20, 2023 13:13
Copy link

codecov bot commented Dec 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a8f7734) 82.25% compared to head (706302e) 81.85%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #367      +/-   ##
==========================================
- Coverage   82.25%   81.85%   -0.40%     
==========================================
  Files          57       57              
  Lines        1347     1345       -2     
==========================================
- Hits         1108     1101       -7     
- Misses        239      244       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@brunoocasali brunoocasali force-pushed the update-tests branch 2 times, most recently from bb8a90c to 8b9f752 Compare December 20, 2023 13:29
@@ -131,8 +127,4 @@ class TestMeiliSearchClient extends MeiliSearchClient {
),
);
}

Future<void> _deleteTasksForDeletedIndexes(List<String> indexes) async {
Copy link
Member Author

Choose a reason for hiding this comment

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

@ahmednfwela, this code was causing some intermittent trouble in the CI. You can see some examples here:

Although keeping track of used resources is very clever, it isn't worth it for two reasons. First, it is hard to understand where the error comes from (due to the stack trace dart left behind). And second, because you should always clean up the state before you run the tests, not after.

I like this article that highlights why this should be followed as a good practice: https://docs.cypress.io/guides/references/best-practices#Using-after-Or-afterEach-Hooks I've been applying this concept for a long time, and it helps a lot.

@brunoocasali
Copy link
Member Author

@ahmednfwela I'm going to merge this because it is breaking the workflow in the engine, but I think you'll want to do a FUP fix about the things I said before!

Thanks a lot for your help and see you soon!

@brunoocasali brunoocasali merged commit 63fd758 into main Dec 20, 2023
6 of 7 checks passed
@brunoocasali brunoocasali deleted the update-tests branch December 20, 2023 13:38
@brunoocasali brunoocasali added the maintenance Anything related to maintenance (CI, tests, refactoring...) label Dec 20, 2023
meili-bors bot added a commit that referenced this pull request Mar 11, 2024
376: Update version for the next release (v0.16.0) r=curquiza a=meili-bot

_This PR is auto-generated._

The automated script updates the version of meilisearch-dart to a new version: "v0.16.0"

---

Parr of the work of #375 

---

This version introduces features released on Meilisearch v1.7.0 🎉
Check out the changelog of [Meilisearch v1.7.0](https://github.com/meilisearch/meilisearch/releases/tag/v1.7.0) for more information on the changes. 

 ## ⚠️ Breaking changes

* `scoreDetails` feature is not experimental anymore. You can directly use `showRankingScoreDetails` during a search without activating the experimental feature 🎉

## 🚀 Enhancements

* Add text separators (#379) ahmednfwela

## ⚙️ Maintenance/misc

* Create code samples from code, a.k.a. code excerpts (#358) ahmednfwela
* Update dart version and checkout (#367) brunoocasali
* fix ci steps (#378) ahmednfwela
* docs: Add readme section about dio (#380) ahmednfwela


Co-authored-by: meili-bot <74670311+meili-bot@users.noreply.github.com>
Co-authored-by: Ahmed Fwela <63286031+ahmednfwela@users.noreply.github.com>
Co-authored-by: Clémentine U. - curqui <clementine@meilisearch.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Anything related to maintenance (CI, tests, refactoring...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant