Skip to content

fix: do not panic on k6 login cloud #5057

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

mstoykov
Copy link
Contributor

What?

This happened due to auto extension resolution wrongly guessing that cloud here means it needs to analyze a script. But it doesn't, and consequently panics.

Why?

Panics are bad.

Checklist

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

Checklist: Documentation (only for k6 maintainers and if relevant)

Please do not merge this PR until the following items are filled out.

  • I have added the correct milestone and labels to the PR.
  • I have updated the release notes: link
  • I have updated or added an issue to the k6-documentation: grafana/k6-docs#NUMBER if applicable
  • I have updated or added an issue to the TypeScript definitions: grafana/k6-DefinitelyTyped#NUMBER if applicable

Related PR(s)/Issue(s)

Fixes #5055

This happened due to auto extension resolution wrongly guessing that
`cloud` here means it needs to analyze a script. But it doesn't, and
consequently panics.

Fixes #5055
@mstoykov mstoykov added this to the v1.3.0 milestone Aug 14, 2025
@mstoykov mstoykov added the bug label Aug 14, 2025
@mstoykov mstoykov requested a review from a team as a code owner August 14, 2025 07:54
@mstoykov mstoykov requested review from oleiade and joanlopez and removed request for a team August 14, 2025 07:54
oleiade
oleiade previously approved these changes Aug 14, 2025
@mstoykov
Copy link
Contributor Author

After merging this I will be backporting this to v1.2.x and releasing 1.2.2

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.

k6 login cloud panicking with 1.2.1 upgrade
2 participants