Skip to content
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

When is new version of ReportPoral Gem due for release? #75

Open
shailesh07us opened this issue Oct 24, 2019 · 8 comments
Open

When is new version of ReportPoral Gem due for release? #75

shailesh07us opened this issue Oct 24, 2019 · 8 comments

Comments

@shailesh07us
Copy link

shailesh07us commented Oct 24, 2019

When will new version of ReportPoral Gem due for release? last one was released in March.
I tried to create gem from code in Master branch, but its having trouble with Parallel reporting.

I am having few issues while trying the 0.7

  1. How to attach report to existing launch?
    I am creating a launch from Jenkins and I need to pass that launch ID to my test. I tried to provide launch Id in the Re
    uuid: 9e043eb3-ae8c-41f3-9d4c-81507917d1bb
    endpoint: http://11.129.44.69:8080/api/v1
    project: user_personal
    launch:NGUX
    #group_by_folder: true
    #skip_reporting_hierarchy: true
    tags: [LUX, Chrome]
    launch_id: 5db1a76eb9d82100013c9439

  2. I am receiving below warning message whenever attachment is getting uploaded

c:/../../vendor/bundle/ruby/2.3.0/gems/rest-client-2.1.0-x64-mingw32/lib/restclient/request.rb:402:in `block in make_headers': warning: Overriding "Content-Type" header "multipart/form-data" with "multipart/form-data; boundary=----RubyFormBoundaryreFEoYrSWQ4hy2kN" due to payload (StructuredWarnings::StandardWarning)

@abotalov
Copy link
Member

abotalov commented Oct 24, 2019

You can use master branch or specify commit from it in a Gemfile.
We are currently in the process of introducing this gem to some large project. We'll release a new version when we will confirm it works good enough.

Parallel running into the same launch is currently supported via one of these ways:

First way:

  1. Run a rake task reportportal:start_launch - https://github.com/reportportal/agent-ruby/blob/master/lib/report_portal/tasks.rb#L8. It outputs a launch id.
  2. Take this launch id and pass it to the test framework. E.g. RP_FORMATTER_MODES=[attach_to_launch skip_reporting_hierarchy] RP_LAUNCH_ID=my_launch_id bundle exec cucumber some_tests -f ReportPortal::Cucumber::Formatter. You can divide your suite into some portions and run these commands in parallel with different portions.
  3. When all tests portions' finish, run a rake task RP_LAUNCH_ID=my_launch_id bundle exec rake reportportal:finish_launch.

Second way:
RP_FORMATTER_MODES=[skip_reporting_hierarchy] parallel_cucumber <some options> -o '<some other options> -f ReportPortal::Cucumber::ParallelFormatter' - I didn't try it for a while so I'm not sure it works.

skip_reporting_hierarchy is needed because StartItem command in v4 creates an item even if it already exists (reportportal/reportportal#611). It looks that StartItem command in v5 will not to do it so it will be possible to report hierarchy (folders and feature files).

@chhatbarjignesh
Copy link

single thread works like a charm but for parallel execution its not working

second way definately doesn't work, it basically executes the test but with some errors and basically its not finishing the launch.
any update on when the new release is coming
Thanks

@abotalov
Copy link
Member

I can't provide an estimate. You can use the first way and master branch in the meantime.

@chhatbarjignesh
Copy link

Thank you for the update i will definitely try the first way

@chhatbarjignesh
Copy link

chhatbarjignesh commented Nov 29, 2019

so when I tried the first way i was able to successfully start the launch using the rake task for my custom project and custom launchname but landed up here, any idea what i might have missed
2.6.3/lib/ruby/gems/2.6.0/bundler/gems/agent-ruby-589332f6b562/lib/reportportal.rb:108:in `item_id_of': undefined method `key?' for 3:Integer (NoMethodError)

ignore above i was doing something wrong. @abotalov l will try to see if i can fix cucumber parallel and try to create a PR first way is not the ideal solution

@abotalov
Copy link
Member

abotalov commented Dec 1, 2019

@chhatbarjignesh In case you prepare a PR, don't make it too large. Reviewing large PR with many unrelated changes is too hard.

@akostadinov
Copy link

Is it possible to release a new version? There are a number of important changes like support for attributes in master. If needed, change version to 1.x so that users of older versions of report portal can use the old version of the gem.

@christopher-ernenwein
Copy link

Please release a new gem

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

No branches or pull requests

5 participants