Skip to content

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 19, 2025

Bumps grafana/xk6 from 1.1.5 to 1.2.2.

Release notes

Sourced from grafana/xk6's releases.

v1.2.2

Grafana xk6 v1.2.2 is here! 🎉

This small patch release fixes a critical issue with the exit code of the xk6 lint command. This bug was introduced in v1.2.0.

Bug Fix

  • Corrected xk6 lint Exit Code: The xk6 lint command now correctly returns a non-zero exit code (e.g., 1) when one or more lint checks fail. Previously, the command always returned 0, making it impossible for CI/CD pipelines (like GitHub Actions) to correctly detect linting failures and fail the build.

v1.2.1

Grafana xk6 v1.2.1 is here! 🎉

This is a patch release focusing on several minor fixes and improvements to the xk6 lint command and internal tooling for a smoother development experience.

Fixes & Improvements

  • Consistent Environment Variable Handling: xk6 lint now correctly treats empty environment variables (export K6_VAR="") as if they were unset or non-existent. This ensures that environment variable logic is consistent with how CLI flags are handled, preventing unexpected overrides of default values.

  • Tooling Clarity: The internal code generation utility, tools/presetter, has been renamed to the more accurate and generic tools/codegen. This resolves confusion, as the tool generates Go source code and documentation for checks and presets, not just presets.

  • Smarter Validation Workflow: The versions checker has been disabled within the xk6 lint run in the shared extension-validate workflow. Since this workflow typically runs on Pull Requests (before a release is created), checking for final version tags was causing unnecessary failures.

v1.2.0

Grafana xk6 v1.2.0 is here! 🎉

This release introduces a major enhancement to the xk6 lint command with check presets, making it easier to validate k6 extensions for different use cases and environments. The linting system has been significantly improved with better documentation, flexible configuration options, and streamlined compliance workflows.

BREAKING CHANGES

  • Grade system removal: The compliance grading system (A-F scores) has been removed. Extensions now receive clear pass/fail results for each check instead of weighted scores.

What's New

Check Presets for xk6 lint

The xk6 lint command now supports presets - predefined sets of compliance checks tailored for different extension development scenarios:

  • loose (default): Minimal preset focusing on essential quality and security checks, perfect for development environments
  • strict: Comprehensive preset for production-ready extensions with all compliance checks except official Grafana-specific ones
  • all: Complete validation with every available check in the linting system
  • private: Tailored for private/internal extensions used within organizations
  • community: Optimized for community-maintained extensions published to public repositories
  • official: Full compliance suite including Grafana-specific requirements like CODEOWNERS validation

Enhanced Lint Command Interface

The xk6 lint command has been redesigned with improved flexibility:

# Use presets for common scenarios
</tr></table> 

... (truncated)

Commits
  • 35399af Merge pull request #304 from grafana/303-bug-xk6-lint-exit-code-is-always-0-o...
  • ca716bc fix: correct exit code for xk6 lint command
  • de1433d Merge pull request #293 from grafana/dependabot/github_actions/softprops/acti...
  • d4ecfc3 Merge pull request #292 from grafana/dependabot/github_actions/astral-sh/setu...
  • bdf7eb5 Merge pull request #302 from grafana/301-create-release-notes-for-v121
  • 775705a Merge pull request #300 from grafana/299-disable-versions-xk6-lint-checker-in...
  • de91a5f Merge pull request #298 from grafana/295-rename-toolspresetter-to-a-more-gene...
  • 1bb8e02 Merge pull request #297 from grafana/296-treat-empty-environment-variables-as...
  • 9321229 feat: add release notes for xk6 v1.2.1
  • 7c96a3b fix: update default disabled xk6 lint checks to include "versions"
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [grafana/xk6](https://github.com/grafana/xk6) from 1.1.5 to 1.2.2.
- [Release notes](https://github.com/grafana/xk6/releases)
- [Changelog](https://github.com/grafana/xk6/blob/master/.goreleaser.yaml)
- [Commits](grafana/xk6@v1.1.5...v1.2.2)

---
updated-dependencies:
- dependency-name: grafana/xk6
  dependency-version: 1.2.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels Oct 19, 2025
@dependabot dependabot bot requested a review from a team as a code owner October 19, 2025 10:03
@dependabot dependabot bot added the github_actions Pull requests that update GitHub Actions code label Oct 19, 2025
@dependabot dependabot bot requested a review from pablochacin October 19, 2025 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants