k6 icon indicating copy to clipboard operation
k6 copied to clipboard

Research alternatives for integrating binary provisioning logic into k6

Open pablochacin opened this issue 7 months ago • 0 comments

Presently, the binary provisioning is integrated as an alternative execution path at the beginning of the main function, before the k6 root command is executed.

This approach has the advantage of allowing an early point to decide whether to follow one path or another, and also makes the integration "simpler" because it does not interfere with the existing k6 logic.

However, it has the disadvantage that it does not profit from logic already existing in the root command, such as proper parsing of CLI arguments, which creates some corner cases in the execution (documented in https://github.com/grafana/k6/issues/4694)

We should explore how to integrate the binary provisioning logic into the root process to make it more organic.

pablochacin avatar Apr 24 '25 14:04 pablochacin