grafana / xk6-disruptor

Extension for injecting faults into k6 tests
https://k6.io/docs/javascript-api/xk6-disruptor/
GNU Affero General Public License v3.0
89 stars 9 forks source link

The new dashboard does not work with xk6-disruptor #387

Closed fslevoaca-ionos closed 6 months ago

fslevoaca-ionos commented 6 months ago

Hi, The new dashboard k6 feature released in version v0.49.0 does not work with xk6-disruptor.

Is it possible to make it available also here ?

olegbespalov commented 6 months ago

Hi @fslevoaca-ionos !

What exactly doesn't work, or what is missing from the xk6-disruptor and web dashboard integration standpoint? Thanks!

fslevoaca-ionos commented 6 months ago

Hi @olegbespalov ,

Using the k6 command, the dashboard port is opened and everything works as expected:

 K6_WEB_DASHBOARD=true k6 run loadTest.js

=>

          /\      |‾‾| /‾‾/   /‾‾/   
     /\  /  \     |  |/  /   /  /    
    /  \/    \    |     (   /   ‾‾\  
   /          \   |  |\  \ |  (‾)  | 
  / __________ \  |__| \__\ \_____/ .io

     execution: local
        script: loadTest.js
 web dashboard: http://127.0.0.1:5665
        output: -

However, the dashboard is not available for the xk6-disruptor command

K6_WEB_DASHBOARD=true xk6-disruptor run loadTest.js

=>

          /\      |‾‾| /‾‾/   /‾‾/   
     /\  /  \     |  |/  /   /  /    
    /  \/    \    |     (   /   ‾‾\  
   /          \   |  |\  \ |  (‾)  | 
  / __________ \  |__| \__\ \_____/ .io

  execution: local
     script: zoneLoad.js
     output: -

No dashboard port is opened.

olegbespalov commented 6 months ago

Okay, I see now. Thanks for the clarification.

The issue is that xk6-disruptor is based on the version of the k6 that has no new dashboard. The good news is that, in theory, it's not a big deal to upgrade a version there. I even see that the project has a PR that should do the upgrade https://github.com/grafana/xk6-disruptor/pull/378 (but CI jobs are failed there). I'll let the corresponding team know.

The new web dashboard should become available once the base k6 version in xk6-disruptor is upgraded.

pablochacin commented 6 months ago

@fslevoaca-ionos Thanks for reporting this issue. It should be fixed with the release v0.3.11

fslevoaca-ionos commented 6 months ago

Thank you and best regards !

fslevoaca-ionos commented 6 months ago

Is there any .deb binary available ?

pablochacin commented 6 months ago

@fslevoaca-ionos we have identified an issue with the release process that is preventing the publication of the artifacts https://github.com/grafana/xk6-disruptor/issues/390

pablochacin commented 6 months ago

@fslevoaca-ionos this issue is now solved and .deb package is available.