Skip to content

Conversation

@YuanmingLeee
Copy link
Contributor

Close #8
Add unit test for workflow patch and fix known bugs

How to run?

python -m unittest discover -s tests -t $PWD

Or use your preferred IDE to perform the Python Unit Test

What is the result?

All pass
image

Additional notes

There are some known issues:

  1. [won't fix] dynamic import will make the workflow patch fail, due to patch relies solely on static code analysis, we do not have plan to support dynamic code analysis so far.
  2. [low priority] var assign import fails (see the test case TestWorkflowPatchMultiFilePipelineImportAndAssignToVar), due to the static code analysis lib we used (i.e., pyan) does not support so.
  3. [medium priority] Local import fails (test case TestWorkflowPatchMultiFilePipelineLocalImport) as we do not support local function scanning for workflow patch so far. Please don't write local stage function / local dag function.

@YuanmingLeee YuanmingLeee added bug Something isn't working test labels Oct 18, 2023
@YuanmingLeee YuanmingLeee self-assigned this Oct 18, 2023
Copy link

@HuaizhengZhang HuaizhengZhang left a comment

Choose a reason for hiding this comment

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

LGTM. It seems a doc site is needed now.

@YuanmingLeee YuanmingLeee merged commit 13e5ae0 into main Oct 20, 2023
@YuanmingLeee YuanmingLeee deleted the test-#8-workflow-patch branch October 20, 2023 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Test] Add testing for workflow patch

3 participants