Skip to content

Conversation

@inancgumus
Copy link
Contributor

@inancgumus inancgumus commented Nov 7, 2025

What?

Fixes TestNavigationSpanCreation

Why?

Without this, most CI jobs fail all the time.

This error is a navigational issue that occurs when the code (i.e., window.history.back) executes on Chrome, causing the page to navigate back before the CDP command (eval) completes, resulting in unnecessary noise. That's not a real error, but rather a sentinel message, similar to Go's io.EOF. It's expected and should be handled that way, as Chrome runs the code but terminates the CDP command due to cross-navigation.

This error previously occurred on CI, but it has become more apparent now due to our involved browser tests.

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

This PR made this race condition apparent, so instead of adding another
PR to fix it, I've added a small commit here to fix the issue.
@inancgumus inancgumus added this to the v1.5.0 milestone Nov 7, 2025
@inancgumus inancgumus self-assigned this Nov 7, 2025
@inancgumus inancgumus requested a review from a team as a code owner November 7, 2025 15:26
@inancgumus inancgumus temporarily deployed to azure-trusted-signing November 7, 2025 15:32 — with GitHub Actions Inactive
@inancgumus inancgumus temporarily deployed to azure-trusted-signing November 7, 2025 15:33 — with GitHub Actions Inactive
@inancgumus inancgumus changed the title Fix: TestNavigationSpanCreation browser: Fix: TestNavigationSpanCreation Nov 7, 2025
@inancgumus inancgumus changed the title browser: Fix: TestNavigationSpanCreation browser: Fix TestNavigationSpanCreation Nov 7, 2025
@inancgumus inancgumus merged commit 5d8ab50 into master Nov 11, 2025
80 of 96 checks passed
@inancgumus inancgumus deleted the fix/test-navigation-span-creation branch November 11, 2025 14:23
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