fix: ordering issue in fast-fail when all tasks succeeds (e.g. retrieve)#2522
fix: ordering issue in fast-fail when all tasks succeeds (e.g. retrieve)#2522haakonvt merged 3 commits intopysdk-release-v8from
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses a critical ordering issue that resurfaced in the asynchronous task execution utility. The problem stemmed from relying on the unordered nature of Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
The code changes increment the cognite-sdk version from 8.0.2 to 8.0.3. Additionally, a test case was modified to address a bug in the SDK version 8.0.0 where the ordering of results was broken when retrieving a large number of events concurrently. The test now creates a large number of events, shuffles their external IDs, and retrieves them using retrieve_multiple, asserting that the order of the retrieved events matches the shuffled order of the external IDs.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## pysdk-release-v8 #2522 +/- ##
====================================================
- Coverage 93.48% 93.41% -0.08%
====================================================
Files 478 478
Lines 48118 48173 +55
====================================================
+ Hits 44983 45000 +17
- Misses 3135 3173 +38
🚀 New features to boost your workflow:
|
fef50a4 to
043e50d
Compare
Invalidated by push of 043e50d
This is the second time we have had this bug, this time because
asyncio.waitreturns a set (which is unordered). The reason it was not caught immediately by the guarding test from last time was that it was refactored in: #2149 to be much less effective at triggering it.We should take extra care to rewrite similar tests in the future and ensure the rewritten tests consistently fail on the old version.