Skip to content

haskellPackages: running cross tests #451928

Draft
alexfmpe wants to merge 11 commits intoNixOS:haskell-updatesfrom
alexfmpe:enable-cross-check
Draft

haskellPackages: running cross tests #451928
alexfmpe wants to merge 11 commits intoNixOS:haskell-updatesfrom
alexfmpe:enable-cross-check

Conversation

@alexfmpe
Copy link
Member

@alexfmpe alexfmpe commented Oct 14, 2025

On top of #445672 from which this was split

This is a work in progress.
Some of these are likely ghc bugs, others might need extra external-interpreter tweaks, or something else - most need to be looked into to know, and then possibly open upstream issues.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 6.topic: haskell General-purpose, statically typed, purely functional programming language labels Oct 14, 2025
@ofborg ofborg bot added the 6.topic: cross-compilation Building packages on a different platform than they will be used on label Oct 25, 2025
@alexfmpe alexfmpe changed the title haskellPackages: enable cross tests by default haskellPackages: running cross tests Oct 25, 2025

# stdenv.make-derivation sets `doCheck = false` when the build platform can't directly execute the host platform
# which means the `checkPhase` ends up disabled for cross and we need to sneak it back in somehow
# TODO: avoid this workaround - add some sort of doCheckEmulated?
Copy link
Member Author

@alexfmpe alexfmpe Oct 25, 2025

Choose a reason for hiding this comment

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

This is pretty hacky, but I don't see another way to run tests by default unless we change make-derivation itself.
We could settle for passthru.tests though

@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. and removed 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. labels Nov 27, 2025
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 2.status: merge conflict This PR has merge conflicts with the target branch labels Nov 27, 2025
@nixpkgs-ci nixpkgs-ci bot added the 8.has: package (new) This PR adds a new package label Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge conflict This PR has merge conflicts with the target branch 6.topic: cross-compilation Building packages on a different platform than they will be used on 6.topic: haskell General-purpose, statically typed, purely functional programming language 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant