Skip to content

Conversation

@aparajit-pratap
Copy link

@aparajit-pratap aparajit-pratap commented May 15, 2019

Purpose

Some minor improvements to DynamoDS#9667: please take a look. I wasn't able to reproduce your test case to fail after these changes.

Declarations

Check these if you believe they are true

  • The code base is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning, and are documented in the API Changes document.

Reviewers

@ColinDayOrg

}
}

if (null == astNodes)
Copy link
Author

Choose a reason for hiding this comment

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

Removed unreachable code.

}

workspace.MarkNodesAsModifiedAndRequestRun(nodes);
workspace.MarkNodesAsModifiedAndRequestRun(nodes, true);
Copy link
Author

Choose a reason for hiding this comment

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

We need to ensure we pass true to the second parameter (which otherwise defaults to false) since we need to force-execute the node again (make sure it actually runs a second time but this time with the timing turned on). If this node is not made to force execute, delta compute will just skip it as it has already been executed before. This might explain the zero time execution.

}
}

protected void AssertNonNull(string guid)
Copy link
Author

Choose a reason for hiding this comment

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

Added new test utility method to test if any node is non null. Noticed this will be a useful addition to the existing test framework.

@aparajit-pratap aparajit-pratap changed the title Minor code fixes Minor code fixes to DynamoDS#9667 May 15, 2019
@ColinDayOrg ColinDayOrg merged commit 3cb15a7 into ColinDayOrg:DYN-1754 May 15, 2019
@aparajit-pratap aparajit-pratap deleted the DYN-1754 branch May 15, 2019 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants