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

Introduce k6 cloud upload to replace --upload-only #3906

Merged
merged 3 commits into from
Aug 26, 2024

Conversation

joanlopez
Copy link
Contributor

What?

It introduces a new cloud subcommand: k6 cloud upload to replace the old k6 cloud --upload-only.

It also marks the old flag as deprecated, so it is no longer displayed in help, and a deprecation message is displayed when used, as follows: Flag --upload-only has been deprecated, use "k6 cloud upload" instead.

Why?

As part of the task of revamping the k6 cloud commands.

Checklist

  • I have performed a self-review of my code.
  • I have added tests for my changes.
  • I have run linter locally (make lint) and all checks pass.
  • I have run tests locally (make tests) and all tests pass.
  • I have commented on my code, particularly in hard-to-understand areas.

Related PR(s)/Issue(s)

N/A

@joanlopez joanlopez requested a review from oleiade August 21, 2024 10:34
@joanlopez joanlopez self-assigned this Aug 21, 2024
@joanlopez joanlopez requested a review from a team as a code owner August 21, 2024 10:34
@joanlopez joanlopez requested review from olegbespalov and removed request for a team August 21, 2024 10:34
cmd/cloud.go Show resolved Hide resolved
olegbespalov
olegbespalov previously approved these changes Aug 22, 2024
Copy link
Contributor

@olegbespalov olegbespalov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: maybe you could consider switching the upload the test (in all places) to upload the test data or even upload the test scripts and resources. Perhaps it's just me, but upload the test sounds incomplete. Shrug: Anyway, for sure, this is a non-blocking thing.

Copy link
Contributor

@codebien codebien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I have some request changes

cmd/cloud.go Show resolved Hide resolved
cmd/cloud_upload.go Outdated Show resolved Hide resolved
cmd/tests/cmd_cloud_upload_test.go Outdated Show resolved Hide resolved
@olegbespalov olegbespalov added this to the v0.54.0 milestone Aug 26, 2024
@joanlopez joanlopez merged commit 3674458 into master Aug 26, 2024
21 of 22 checks passed
@joanlopez joanlopez deleted the cloud_subcommands-upload branch August 26, 2024 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants