-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
haskellPackages: running cross tests #451928
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
Draft
alexfmpe
wants to merge
11
commits into
NixOS:haskell-updates
Choose a base branch
from
alexfmpe:enable-cross-check
base: haskell-updates
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
74313fb
haskellPackages.iserv-proxy: init at 9.3-unstable-2025-06-21
alexfmpe 68f8fb6
haskellPackages: support Template Haskell and test suites when cross …
alexfmpe eaefdf5
haskellPackages.ghc: disable dynamic linker for musl cross and android
alexfmpe 4709789
haskellPackages.aeson-gadt-th: re-enable readme executable
alexfmpe c894517
release-haskell.nix: add jobset for pkgsCross.aarch64-multiplatform.h…
alexfmpe c3a0eae
haskellPackages: when requested, configure gmp even if cross compiling
alexfmpe bf237b9
haskellPackages: build test suites when cross-compiling
alexfmpe 900bd59
haskellPackages: run test suites when cross-compiling
alexfmpe 4f8c762
haskellPackages: disable cross tests for select packages
alexfmpe b31bbf3
haskellPackages: only override 'enableExternalInterpreter' when cross…
alexfmpe 17e6a29
haskellPackages: break cycle between iserv-proxy and test packages
alexfmpe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,84 @@ | ||
| { pkgs, haskellLib }: | ||
|
|
||
| let | ||
| inherit (pkgs) lib; | ||
| in | ||
|
|
||
| with haskellLib; | ||
|
|
||
| self: super: { | ||
| # Avoids a cycle by disabling use of the external interpreter by the packages that are dependencies of iserv-proxy | ||
| # These in particular can't rely on template haskell for cross-compilation anyway as they can't rely on iserv-proxy | ||
| inherit | ||
| ( | ||
| let | ||
| breakCycle = overrideCabal { | ||
| doCheck = false; # test packages themselves like to rely on TH for discovering test cases | ||
| enableExternalInterpreter = false; | ||
| }; | ||
| in | ||
| lib.mapAttrs (_: breakCycle) { inherit (super) iserv-proxy libiserv network; } | ||
| ) | ||
| iserv-proxy | ||
| libiserv | ||
| network | ||
| ; | ||
|
|
||
| # qemu: uncaught target signal 4 (Illegal instruction) - core dumped | ||
| th-expand-syns = dontCheck super.th-expand-syns; | ||
|
|
||
| # test/Unicode/CharSpec.hs:206:21: | ||
| # 1) Unicode.Char.Case toUpper | ||
| # predicate failed on: '\411' | ||
| unicode-data = dontCheck super.unicode-data; | ||
|
|
||
| # syntax error: unexpected word (expecting ")") | ||
| jsaddle-warp = dontCheck super.jsaddle-warp; | ||
|
|
||
| # test-pandoc: line 0: syntax error: unterminated quoted string | ||
| pandoc = dontCheck super.pandoc; | ||
|
|
||
| # Tests take a long time or maybe hang | ||
| bitvec = dontCheck super.bitvec; | ||
| crypton = dontCheck super.crypton; | ||
| crypton-x509-validation = dontCheck super.crypton-x509-validation; | ||
| tls = dontCheck super.tls; | ||
|
|
||
| # Test suite rootCleanup: FAIL | ||
| reflex = dontCheck super.reflex; | ||
|
|
||
| # Couldn't find a target code interpreter. Try with -fexternal-interpreter | ||
| bsb-http-chunked = dontCheck super.bsb-http-chunked; | ||
| doctest-parallel = dontCheck super.doctest-parallel; | ||
| foldl = dontCheck super.foldl; | ||
|
|
||
| # https://gitlab.haskell.org/ghc/ghc/-/issues/14335 | ||
| # <no location info>: error: Plugins require -fno-external-interpreter | ||
| infer-license = dontCheck super.infer-license; | ||
| inspection-testing = dontCheck super.inspection-testing; | ||
| large-records = dontCheck super.large-records; | ||
| vector = dontCheck super.vector; | ||
|
|
||
| # could not execute: hspec-discover | ||
| here = dontCheck super.here; | ||
| hspec-wai = dontCheck super.hspec-wai; | ||
| http-date = dontCheck super.http-date; | ||
| http-types = dontCheck super.http-types; | ||
| unliftio = dontCheck super.unliftio; | ||
| word8 = dontCheck super.word8; | ||
| yaml = dontCheck super.yaml; | ||
|
|
||
| # posix_spawnp: invalid argument (Exec format error) | ||
| file-lock = dontCheck super.file-lock; | ||
| safe-exceptions = dontCheck super.safe-exceptions; | ||
| warp = dontCheck super.warp; | ||
| zip-archive = dontCheck super.zip-archive; | ||
|
|
||
| # Mmap.hsc: In function ‘_hsc2hs_test13’: | ||
| # Mmap.hsc:54:20: error: storage size of ‘test_array’ isn’t constant | ||
| hashable = dontCheck super.hashable; | ||
|
|
||
| # hGetLine: end of file | ||
| doctest = dontCheck super.doctest; | ||
| xml-conduit = dontCheck super.xml-conduit; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
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-derivationitself.We could settle for
passthru.teststhough