-
Notifications
You must be signed in to change notification settings - Fork 638
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
DYN-1688: Fix regression with replication over list inputs with nested sublists #9559
Conversation
@@ -132,8 +132,12 @@ public static ClassNode GetGreatestCommonSubclassForArray(StackValue array, Runt | |||
var dsArray = runtimeCore.Heap.ToHeapObject<DSArray>(array); | |||
foreach (var sv in dsArray.Values) | |||
{ | |||
if(IsEmpty(sv, runtimeCore)) continue; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't want to add a type for an empty list. On the other hand we want to ignore it and inspect the next element of the array.
Can we conclude on difference between this one and #9554? Are they both needed? |
I'm not sure about #9554. I'm not convinced it is the right fix. Since the self-serve CI is broken, I ran the language tests locally on this PR and they all pass. I will do more testing on this PR including manual testing. |
Added the tests for this. Once we verify on the self serve, we can merge this. I will be closing the other PR (#9554) related to this same issue |
Updated performance benchmarking results. |
So I interpret this perf benchmark to mean that the results are essentially the same? |
Yep. |
…d sublists (DynamoDS#9559) * fix regression with replication over list inputs with nested sublists * Tests * DS language test * Update the test (cherry picked from commit da39519)
* Cherry-picking #9388 into 2.0.3 * Cherry-picking #9559 into 2.0.3 * Cherry-picking #9578 into 2.0.3 * cherry-picking #9632 into 2.0.3 * cherry-picking #9408 into 2.0.3 * cherry-picking #9441 into 2.0.3 * Adding gradient.png for the Test_PerforationsByImage test. This was missed while cherrypicking #9441 * Removing DSCoreDataTests.cs as this was the test fixture was introduced in a different commit and is not needed here.
Purpose
JIRA: https://jira.autodesk.com/browse/DYN-1688
This fixes a regression from 2.0 where a list containing an empty sublist as its first element followed by another list (of the same rank) did not replicate properly over a node.
Performance results before and after the fix for the same long-running test:

Declarations
Check these if you believe they are true
*.resx
filesReviewers
@reddyashish
@mjkkirschner
FYIs
@QilongTang @saintentropy