Skip to content

Conversation

@rMaxiQp
Copy link
Contributor

@rMaxiQp rMaxiQp commented Oct 2, 2025

What?

Use require instead of assert to fail fast.

Why?

In case of any error on RunAsync(), gv may be nil. It defeats ToPromise()'s input assumption, leading to a panic. Though this change does not fix the root cause, it helps to surface the actual error instead. With this change, we bring the testcase's state similar to #4307

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)

Related to #5124

@CLAassistant
Copy link

CLAassistant commented Oct 2, 2025

CLA assistant check
All committers have signed the CLA.

@rMaxiQp rMaxiQp marked this pull request as ready for review October 7, 2025 04:14
@rMaxiQp rMaxiQp requested a review from a team as a code owner October 7, 2025 04:14
@rMaxiQp rMaxiQp requested review from AgnesToulet and mstoykov and removed request for a team October 7, 2025 04:14
@rMaxiQp rMaxiQp temporarily deployed to azure-trusted-signing October 8, 2025 07:52 — with GitHub Actions Inactive
@rMaxiQp rMaxiQp temporarily deployed to azure-trusted-signing October 8, 2025 07:54 — with GitHub Actions Inactive
Copy link
Contributor

@AgnesToulet AgnesToulet left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution, I think this change makes sense 👍

@rMaxiQp rMaxiQp temporarily deployed to azure-trusted-signing October 9, 2025 08:02 — with GitHub Actions Inactive
@rMaxiQp rMaxiQp temporarily deployed to azure-trusted-signing October 9, 2025 08:04 — with GitHub Actions Inactive
Copy link
Contributor

@mstoykov mstoykov left a comment

Choose a reason for hiding this comment

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

LGTM!

@mstoykov mstoykov merged commit dec2144 into grafana:master Oct 9, 2025
39 of 40 checks passed
@mstoykov mstoykov added this to the v1.4.0 milestone Oct 9, 2025
ankur22 added a commit that referenced this pull request Nov 5, 2025
ankur22 added a commit that referenced this pull request Nov 5, 2025
ankur22 added a commit that referenced this pull request Nov 10, 2025
* Add v1.4.0 release notes

* Add inanc's and external contributor changes

* thank elmiringos

* clarify 5322 slightly

* Add Agnes' changes

* OpenTelemetry graduation

* Additional breaking change for OTel output

* Add Joan's changes

* Add auto extension resolution changes

* Add ankur22's changes

* Remove template bits from release note

* Add dependency PR changes

* Add #5159 to release note

* Add #5216 to the release note

* Add external contribution for #5216

* Add winGet support to release note

* Add google/uuid update to release note

* Add more renovate changes to release note

* Add more dep updates to release note

* Add missing comma

* Other changes by me (@mstoykov)

* fix doc links

* Remove duplicate issues

* Add remaining issues to release notes

* Apply suggestions from code review

Co-authored-by: Inanc Gumus <inanc.gumus@grafana.com>

* fix 5307 code block

* Update release notes/v1.4.0.md

Co-authored-by: Inanc Gumus <inanc.gumus@grafana.com>

* Update release notes/v1.4.0.md

Co-authored-by: Inanc Gumus <inanc.gumus@grafana.com>

* docs: document k6/x/dns official support

* docs: add xk6-dns extension link to release notes

* Remove roadmap from release notes

---------

Co-authored-by: İnanç Gümüş <inanc.gumus@grafana.com>
Co-authored-by: AgnesToulet <35176601+AgnesToulet@users.noreply.github.com>
Co-authored-by: codebien <2103732+codebien@users.noreply.github.com>
Co-authored-by: Joan López de la Franca Beltran <joanjan14@gmail.com>
Co-authored-by: Mihail Stoykov <M.Stoikov@gmail.com>
Co-authored-by: Mihail Stoykov <312246+mstoykov@users.noreply.github.com>
Co-authored-by: oleiade <theo@crevon.me>
rMaxiQp pushed a commit to rMaxiQp/k6 that referenced this pull request Nov 11, 2025
* Add v1.4.0 release notes

* Add inanc's and external contributor changes

* thank elmiringos

* clarify 5322 slightly

* Add Agnes' changes

* OpenTelemetry graduation

* Additional breaking change for OTel output

* Add Joan's changes

* Add auto extension resolution changes

* Add ankur22's changes

* Remove template bits from release note

* Add dependency PR changes

* Add grafana#5159 to release note

* Add grafana#5216 to the release note

* Add external contribution for grafana#5216

* Add winGet support to release note

* Add google/uuid update to release note

* Add more renovate changes to release note

* Add more dep updates to release note

* Add missing comma

* Other changes by me (@mstoykov)

* fix doc links

* Remove duplicate issues

* Add remaining issues to release notes

* Apply suggestions from code review

Co-authored-by: Inanc Gumus <inanc.gumus@grafana.com>

* fix 5307 code block

* Update release notes/v1.4.0.md

Co-authored-by: Inanc Gumus <inanc.gumus@grafana.com>

* Update release notes/v1.4.0.md

Co-authored-by: Inanc Gumus <inanc.gumus@grafana.com>

* docs: document k6/x/dns official support

* docs: add xk6-dns extension link to release notes

* Remove roadmap from release notes

---------

Co-authored-by: İnanç Gümüş <inanc.gumus@grafana.com>
Co-authored-by: AgnesToulet <35176601+AgnesToulet@users.noreply.github.com>
Co-authored-by: codebien <2103732+codebien@users.noreply.github.com>
Co-authored-by: Joan López de la Franca Beltran <joanjan14@gmail.com>
Co-authored-by: Mihail Stoykov <M.Stoikov@gmail.com>
Co-authored-by: Mihail Stoykov <312246+mstoykov@users.noreply.github.com>
Co-authored-by: oleiade <theo@crevon.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants