Deprecate and/or rename the --show-logs
option in k6 cloud
#2288
Labels
breaking change
for PRs that need to be mentioned in the breaking changes section of the release notes
cloud
evaluation needed
proposal needs to be validated or tested before fully implementing it in k6
refactor
ux
--show-logs
/K6_SHOW_CLOUD_LOGS
is an option that determines if the local k6 process in ak6 cloud
test run will connect to the k6 cloud logs server and retrieve the collected logs from the remote k6 instances executing the load test.k6/cmd/cloud.go
Lines 367 to 368 in ee8d9bd
k6/cmd/cloud.go
Line 74 in ee8d9bd
k6/cmd/cloud.go
Lines 302 to 309 in ee8d9bd
There are a few issues with it:
k6 cloud --show-logs --log-output=none
will retrieve the logs, but it certainly won't show them, since the--log-output=none
option will prevent that... Multiple log outputs #2287 will make this even more complicated...K6_SHOW_CLOUD_LOGS
and doesn't match other k6 cloud environment variables, which start with theK6_CLOUD
prefixcmd/cloud.go
, while the rest of the cloud options are incloudapi/config.go
, including the actual WebSocket URL that will be used to retrieve the cloud logs! 😲k6/cloudapi/config.go
Line 44 in ee8d9bd
So, yeah, all of these things probably have to be improved, starting with a better name that more closely reflects the nature of the option and doesn't conflict with other log-related options...
The text was updated successfully, but these errors were encountered: