-
Notifications
You must be signed in to change notification settings - Fork 89
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
Support subdirectories for junit files and junit_class_name #490
Conversation
/assign @zhenghuiwang |
/test all |
* We want to support putting junit files in subdirectories e.g. junit/junit_workflow1/junit_test1.xml junit/junit_workflow2/junit_test1.xml * prow_artifacts.py needs to fetch the junit files from GCS in order to determine if there were any test failures to properly set the prow job status * The code however was making an assumption that all results were in the artifacts dir and not subdirectories * run_e2e_workflow.py should set a keyword argument test_target_name to the name of the workflow (as set in prow_config.yaml) for each of the python functions creating argo workflows. * We want to use the junit attribute classname to group tests coming from the same workflow. To do that we need to know the name of the workflow. * We also use this as a prefix for the test name to support grouping hierarchically * Related to kubeflow#489 * Update kfunittests to Use a junit subdirectory to make sure subdirectories are properly handled. * Update docs * update toc. * Convert test_py_lint to use pytest. Do this because we want to be able to test the use of junit features. * Add a separate mkdir step.
On the latest run the name for the pylint test was
So overriding the test name in the junit appears to work. No results are showing up in the test grid at all so I can't verify that's working. That seems unrelated to this PR. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: zhenghuiwang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…rid by name (kubeflow#490)" This reverts commit 16ea186. The commit breaks kfctl_e2e_workflow.py tests because we introduced an extra argument.
…n test grid by name (kubeflow#490)" (kubeflow#493)" This reverts commit 81326be. * Relates to kubeflow#489 * Roll forward the orginal change now that kfctl_create_e2e_workflow.py has been updated.
…n test grid by name (kubeflow#490)" (kubeflow#493)" This reverts commit 81326be. * Relates to kubeflow#489 * Roll forward the orginal change now that kfctl_create_e2e_workflow.py has been updated to handle the extra argument. add a leading /
Support subdirectories for junit files and grouping in test grid by name
We want to support putting junit files in subdirectories e.g.
junit/junit_workflow1/junit_test1.xml
junit/junit_workflow2/junit_test1.xml
prow_artifacts.py needs to fetch the junit files from GCS in order to
determine if there were any test failures to properly set the prow job
status
The code however was making an assumption that all results were in
the artifacts dir and not subdirectories
run_e2e_workflow.py should set a keyword argument test_target_name
to the name of the workflow (as set in prow_config.yaml) for each of
the python functions creating argo workflows.
We want to use the junit attribute classname to group tests coming
from the same workflow. To do that we need to know the name of the workflow.
We also use this as a prefix for the test name to support grouping
hierarchically
Related to Support grouping in testgrid #489
Update kfunittests to Use a junit subdirectory to make sure subdirectories are properly handled.
Update docs
update toc.
Convert test_py_lint to use pytest. Do this because we want to be able to test the use of junit features.
Add a separate mkdir step.
This change is![Reviewable](https://camo.githubusercontent.com/23b05f5fb48215c989e92cc44cf6512512d083132bd3daf689867c8d9d386888/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)