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
chore(agw): 'nose' is replaced by 'pytest' for S1AP integration tests #13060
Conversation
Thanks for opening a PR! 💯
Howto
More infoPlease take a moment to read through the Magma project's
If this is your first Magma PR, also consider reading
|
32cf01f
to
285d325
Compare
It might be good to have a CI run of the integration tests on your fork. |
285d325
to
21ff74d
Compare
LGTM On CI side, are the xml reports same from existing nosetest-xunit and pytest-junit? We currently use xunit-viewer to generate CI html reports (https://storage.googleapis.com/magma-ci.appspot.com/lte_integ_test_a4934e6e076a23264ccaa65df327bf119857fe26.html). Is that compatible with new xml files generated by pytest-junit? |
@VinashakAnkitAman, that is good to know. What does the CI currently check for in the |
21ff74d
to
8b1531f
Compare
I think the important thing about the output format is, that it integrates well with Github actions result display as the community platform and infrastructure. E.g. as for this job. The integration there seems to be quite good already. |
@VinashakAnkitAman, did you by chance had time to look at the |
Signed-off-by: Marco Pfirrmann <marco.pfirrmann@tngtech.com>
Signed-off-by: Marco Pfirrmann <marco.pfirrmann@tngtech.com>
8b1531f
to
725557d
Compare
Hi @mpfirrmann Right now my local xunit-viewer package is broken and I could not verify the html generation with the xml added here. However the junit-viewer package itself has been deprecated and xunit-viewer will be used for the junit generated xml files as well as per the documentation https://www.npmjs.com/package/junit-viewer and https://github.com/lukejpreston/xunit-viewer. So, from my end, I think we can go ahead and merge the PR. However, for double check, It would be helpful if @ardzoht or @tmdzk can suggest any method with which we can generate CI reports over lte integ test for this PR to see if xunit-viewer is generating the html reports properly for junit generated xml files. |
@VinashakAnkitAman as discussed offline, let's merge the PR and monitor closely the HTML results, for validating the updates. We can revert in case there's any issue introduced by the update. |
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.
LGTM. Will be verified in CI for HTML report generation after merge.
…magma#13060) * chore(agw): import commands are adapted Signed-off-by: Marco Pfirrmann <marco.pfirrmann@tngtech.com> * chore(agw): 'nose' is replaced by 'pytest' for S1AP integration tests Signed-off-by: Marco Pfirrmann <marco.pfirrmann@tngtech.com>
Summary
Follow-up PR to #13052. The two PRs are independent to not break master by merge order. The duplicate code will be adapted before the second merge.
After that, there will be a cleanup PR for the remaining occurrences of
nose
/nosetests
and the handling ofcoverage
.Additionally ...
...
pytest
did complain about some python imports --> adapted according to the other tests....
flaky
inpytest
is enabled by default (https://github.com/box/flaky#activating-the-plugin) --> argument is removedTest Plan
With all three VMs for AGW testing:
vagrant@magma-test:~/magma/lte/gateway/python/integ_test$ make integ_test
LTE integ_test CI runs on my fork:
https://github.com/mpfirrmann/magma/actions/runs/2548683727
https://github.com/mpfirrmann/magma/actions/runs/2550991806
A different unit test fails at both runs, but probably not due to the code change here.
Additional Information
The test results are stored in
.xml
files. On this basis, CI html reports are created. The style of the result.xml
changes slightly with the change fromXUnit XML
toJUnit XML
.For
s1aptests/test_attach_detatch.xml
:current
XUnit XML
new
JUnit XML