Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test.cross.sanity: init #243321

Merged
1 commit merged into from Jul 15, 2023
Merged

test.cross.sanity: init #243321

1 commit merged into from Jul 15, 2023

Conversation

ghost
Copy link

@ghost ghost commented Jul 13, 2023

Description of changes

This commit adds pkgs.test.cross.sanity, which is meant to be a carefully curated list of builds/packages that tend to break when refactoring our cross-compilation infrastructure.

It should strike a balance between being small enough to fit in a single eval (i.e. not so large that hydra-eval-jobs is needed) so we can ask @ofborg to check it, yet should have good examples of things that often break. So, no buckshot mapTestOnCross calls here.

Closes #243320

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • 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/)
  • 23.11 Release Notes (or backporting 23.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.

This commit adds `pkgs.test.cross.sanity`, which is meant to be a
carefully curated list of builds/packages that tend to break when
refactoring our cross-compilation infrastructure.

It should strike a balance between being small enough to fit in
a single eval (i.e. not so large that hydra-eval-jobs is needed)
so we can ask @ofborg to check it, yet should have good examples
of things that often break.  So, no buckshot `mapTestOnCross`
calls here.
@ghost
Copy link
Author

ghost commented Jul 13, 2023

@ofborg build test.cross.sanity

@Artturin
Copy link
Member

@ofborg build tests.cross.sanity

1 similar comment
@ghost
Copy link
Author

ghost commented Jul 14, 2023

@ofborg build tests.cross.sanity

@ghost
Copy link
Author

ghost commented Jul 14, 2023

tests.cross.sanity on x86_64-linux — Success Details

pkgs.pkgsStatic.bash
pkgs.pkgsCross.arm-embedded.stdenv
pkgs.pkgsCross.aarch64-multiplatform.pkgsBuildTarget.gcc
#pkgs.pkgsCross.powernv.pkgsBuildTarget.gcc
Copy link
Author

@ghost ghost Jul 14, 2023

Choose a reason for hiding this comment

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

I think I know how to fix this, but I want to make sure I don't break native builds in doing so. My PowerPC hardware is offline until Monday, so for now I've just disabled pkgs.pkgsCross.powernv.pkgsBuildTarget.gcc.

@ghost
Copy link
Author

ghost commented Jul 14, 2023

Rebased.

@ghost ghost merged commit 8615853 into NixOS:master Jul 15, 2023
4 checks passed
@ghost ghost deleted the pr/cross-smoke branch January 23, 2024 06:47
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: cross-compilation Building packages on a different sort platform than than they will be run on 10.rebuild-darwin: 0 10.rebuild-linux: 0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

we need a pkgsCross smoke test
1 participant