-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(pkgs): Implement build-status infrastructure
Why this change is needed? ========================== The test matrix { package x version x system } contains various elements with problems and the sheer size of the matrix makes it difficult to manage (e.g. to know which CI jobs to mark as allowed to fail, to know on which elements the checkPhase can be run or which tests need to be removed. Investigation of the problems shows that many of the failures are caused by a handful of tests that fail on a specific version and system. Instead of marking the whole job as failed, it is better to omit the failing tests, as the rest of the suite (more than 99%!) will still pass. What does this change do? ========================= For each package: * Add a `pkgs/${packageName}/build-status.json` file containing * each version known to have problems * each system on which this version is known to have problems * `build` - does it build succesfully * if `false` the CI will be marked as allowed to fail * `check` - does the check phase complete * `skippedTests` - any tests that are necessary to be skipped to allow the checkPhase to succeed * Add to its derivation `passthru.buildStatus` field surfacing this information on the Nix eval level * Set `doCheck` to `buildStatus.check` * Add to the `checkPhase` * for each `test_file` in buildStatus.skippedTests * a line `rm -v ${test_file}` that will remove the test on the corresponding tripple (package, version, system)
- Loading branch information
1 parent
bb83f12
commit fd109c3
Showing
10 changed files
with
122 additions
and
25 deletions.
There are no files selected for viewing
This file contains 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,13 @@ | ||
{lib, ...}: { | ||
getBuildStatus = package: version: system: let | ||
data = lib.importJSON ./../pkgs/${package}/build-status.json; | ||
in | ||
data.${version}.${system} | ||
or { | ||
# If not build status is found, we assume that the package builds | ||
# successfully with no workarounds. | ||
build = true; | ||
check = true; | ||
skippedTests = []; | ||
}; | ||
} |
This file contains 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 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 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,22 @@ | ||
{ | ||
"2.098.1": { | ||
"x86_64-darwin": { | ||
"build": true, | ||
"check": true, | ||
"skippedTests": [ | ||
"dmd/test/runnable/test17868.d", | ||
"dmd/test/runnable/test17868b.d" | ||
] | ||
} | ||
}, | ||
"2.102.2": { | ||
"x86_64-darwin": { | ||
"build": true, | ||
"check": true, | ||
"skippedTests": [ | ||
"dmd/compiler/test/runnable/objc_class.d", | ||
"dmd/compiler/test/runnable/objc_self_test.d" | ||
] | ||
} | ||
} | ||
} |
This file contains 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 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,3 @@ | ||
{ | ||
|
||
} |
This file contains 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 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 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,14 @@ | ||
{ | ||
"1.30.0": { | ||
"x86_64-linux": { | ||
"build": true, | ||
"check": false, | ||
"skippedTests": [] | ||
}, | ||
"x86_64-darwin": { | ||
"build": true, | ||
"check": false, | ||
"skippedTests": [] | ||
} | ||
} | ||
} |
This file contains 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