-
Notifications
You must be signed in to change notification settings - Fork 123
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
Extension of the ReportPortal
plugin using API
#2305
Conversation
@4N0body5 can you share progress pls? |
7de8f2a
to
47ad910
Compare
@4N0body5, is the |
@brakogh I have updated PR description to inform you about the progress. |
Thanks for the update, @4N0body5. Nice progress!
Sounds like a large bunch of new features! Would it make sense to cover e.g. the upload files in a separate pull request and not block already finished changes on it? Or is everything here too much intertwined that it would not make sense to have smaller pull requests dedicated to a single change / smaller scope? |
@psss It does make sense. I guess I'll make a brief look into the issue; If it is no struggle, I'll try adding it, so it can be effectively reviewed with all of others, but as soon as it shows any sign of difficulties, I'll suggest postponing it into another PR. |
6c586f8
to
db04b32
Compare
db04b32
to
e51f627
Compare
ReportPortal
plugin using API [WIP]ReportPortal
plugin using API
One thing I am struggling with is how to properly use options like |
One more thing to think about. How a user or an automation will find out URLs of created RP launches. Especially once tests will ve running through TF. |
AFAIK I could only provide it via info log that lists the link in terminal. I'm not sure how TF works, let me know if there's any idea to make the url more available. |
db8de83
to
c86b5dc
Compare
@kkaarreell @4N0body5 what about this one, leave it for the next round? Or is there anything needed from TF? |
c86b5dc
to
057b2f4
Compare
First part - grouping plans into one launch * option `--merge` to create suite per plan and merge them all in one launch (stored launch uuid in run of the first plan) * option '--attributes' for additional attributes, but mainly for assignment of attributes to the launch with merged plans * option `--uuid` to append new plans to an existing launch * store launch uuid as rp_uuid per merged run, and as launch_uuid per each plan, store launch_url per each plan * rewritten environment variables to the uniform form TMT_PLUGIN_REPORT_REPORTPORTAL_${option} note: skipped mypy errors unresolved
* Fixed the environment variables * Prepared defect type locator for implementation of continuous update (idle) * Prepared rerun for implementation of launch update (retry)
* mapping according to options --launch-per-plan and --suite-per-plan * uploading to existing launch/suite with options --upload-to-launch LAUNCH_ID, --upload-to-suite SUITE_ID * option --launch-description and preparation for --launch-attributes (for suite-per-plan mapping) * trial option --launch-rerun * trial option --defect-type
* functional --suite-per-plan option that uploads all plans into a launch; + reporting common atributes from all plans, closing the launch after last plan * additional upload of tests/suites into a existing launch * minor fixing of previously implemented (--defect-type, etc.) * listed all the points to be done yet so it is ready for review
* functional idle report and additional report within run id * functional upload to launch * debug based on option combinations
* fixed the functonality to report idle tests and additional results * rewritten code into methods * added version * postposing the functionality 'adding files as attanchement' to another PR
+ resolved mypy conflicts
057b2f4
to
b2be094
Compare
/packit test -i full |
/packit test -i provision |
PR should cover following use cases:
1.| Create one launch for all plans and create suite per each plan
2.| Additionaly upload new suite/tests to a an existing launch
3.| Prepare launch with empty (idle) tests and additionally report their results (within the same run id)
4.| Rerun and upload new version into new
Retry
item within the last launch based on mapping via names.5.| Upload files
6.| Enable using v2
New implemented options:
--launch-per-plan
for creating a new launch per each plan (default)--suite-per-plan
for mapping a suite per each plan, all enclosed in one launch (launch uuid is stored in run of the first plan)--launch-description
for providing unified launch description, intended mainly for suite-per-plan mapping--upload-to-launch LAUNCH_ID
to append new plans to an existing launch--upload-to-suite SUITE_ID
to append new tests to an existing suite within launch--launch-rerun
for reruns with 'Retry' item in RP, name-based mapping, only for suite-per-plan structure.--defect-type
for passing the defect type to failing tests, enables report idle tests to be additionally updated.Additional work behind that:
Yet todo: