reportportal / client-javascript

This Client is to communicate with the ReportPortal on Node.js.
https://www.npmjs.com/package/@reportportal/client-javascript
Apache License 2.0
16 stars 51 forks source link

Aggregate multiple machines to one launch #183

Open kflore16 opened 11 months ago

kflore16 commented 11 months ago

Is this possible and would this be handled by client-javascript? I'm able to do so in a CI/CD pipeline by having a step that creates the launch then propagate the launch ID created to the workers/containers. My dilemma is here:

  1. If using another pipeline step to call finishLaunch, the duration would be incorrect as there would still be items being processed/reported. The individual workers/containers would not technically finish the launch themselves since they are already specifying an existing launch and items still get reported accordingly.
  2. Have the containers somehow "poll" the last item's reported status using the API and then call either finish launch OR do nothing if there exists items being processed.
  3. Some other methods unbeknownst to me