Skip to content

grafana: 11.6.0+security-01 -> 12.0.0#404897

Merged
K900 merged 1 commit intoNixOS:masterfrom
Ma27:bump-grafana
May 8, 2025
Merged

grafana: 11.6.0+security-01 -> 12.0.0#404897
K900 merged 1 commit intoNixOS:masterfrom
Ma27:bump-grafana

Conversation

@Ma27
Copy link
Member

@Ma27 Ma27 commented May 7, 2025

Closes #404580

ChangeLog: https://github.com/grafana/grafana/releases/tag/v12.0.0

A few changes were necessary here:

  • the provision seems to be delayed now, so the machine.succeed broke because the result was tested before the provisioning was finished. Using wait_until_succeeds to solve this.

  • Hacky way to work around a problem that got unnoticed during fetchYarnBerryDeps: init #399404: the setup-hook is also run in the goModules derivation, but offlineCache is missing. As a result, the build breaks. I guess this was unnoticed because everyone had a goModules with the previous hash in their store. For now, working around with some overrideAttrs magic, but we'll need a nicer solution.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels May 7, 2025
Copy link
Member Author

Choose a reason for hiding this comment

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

This is needed because otherwise goModules also tries to run the yarn hook (see comment).
Can we maybe extract the goModules part into a fetchGoDeps, similar to fetchYarnBerryDeps etc.?

cc @katexochen @flokl @yuyuyureka

Copy link
Contributor

Choose a reason for hiding this comment

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

You can also set dontYarnBerryInstallDeps=1 if you think it's more elegant

@github-actions github-actions bot added 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels May 7, 2025
Closes NixOS#404580

ChangeLog: https://github.com/grafana/grafana/releases/tag/v12.0.0

A few changes were necessary here:

* the provision seems to be delayed now, so the `machine.succeed` broke
  because the result was tested before the provisioning was finished.
  Using `wait_until_succeeds` to solve this.

* Work around a problem that got unnoticed during NixOS#399404:
  the setup-hook is also run in the `goModules` derivation, but
  `offlineCache` is missing. As a result, the build breaks. I guess this
  was unnoticed because everyone had a goModules with the previous hash
  in their store.

Co-authored-by: Emily <git@emilylange.de>
@Ma27 Ma27 requested a review from emilylange May 8, 2025 05:31
@K900 K900 merged commit c50e195 into NixOS:master May 8, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Request: grafana 11.6.0 → 12.0.0

4 participants