Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f30e80ba9ba2
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f439dc71011a
Choose a head ref
  • 2 commits
  • 4 files changed
  • 2 contributors

Commits on Sep 5, 2020

  1. nixos/testing: remove remaining coverage-data logic

    This isn't used anymore as per
    #72354 (comment).
    flokli committed Sep 5, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    Ma27 Maximilian Bosch
    Copy the full SHA
    98d6b55 View commit details
  2. Merge pull request #97231 from flokli/coverage-data-remove

    nixos/testing: remove remaining coverage-data logic
    worldofpeace authored Sep 5, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    Ma27 Maximilian Bosch
    Copy the full SHA
    f439dc7 View commit details
Showing with 1 addition and 70 deletions.
  1. +1 −8 nixos/lib/testing-python.nix
  2. +0 −9 nixos/modules/testing/test-instrumentation.nix
  3. +0 −4 pkgs/build-support/release/default.nix
  4. +0 −49 pkgs/build-support/release/gcov-report.nix
9 changes: 1 addition & 8 deletions nixos/lib/testing-python.nix
Original file line number Diff line number Diff line change
@@ -63,18 +63,12 @@ rec {
mkdir -p $out
LOGFILE=/dev/null tests='exec(os.environ["testScript"])' ${driver}/bin/nixos-test-driver
for i in */xchg/coverage-data; do
mkdir -p $out/coverage-data
mv $i $out/coverage-data/$(dirname $(dirname $i))
done
'';
};


makeTest =
{ testScript
, makeCoverageReport ? false
, enableOCR ? false
, name ? "unnamed"
# Skip linting (mainly intended for faster dev cycles)
@@ -153,7 +147,6 @@ rec {
};

test = passMeta (runTests driver);
report = passMeta (releaseTools.gcovReport { coverageRuns = [ test ]; });

nodeNames = builtins.attrNames nodes;
invalidNodeNames = lib.filter
@@ -169,7 +162,7 @@ rec {
Please stick to alphanumeric chars and underscores as separation.
''
else
(if makeCoverageReport then report else test) // {
test // {
inherit nodes driver test;
};

9 changes: 0 additions & 9 deletions nixos/modules/testing/test-instrumentation.nix
Original file line number Diff line number Diff line change
@@ -74,15 +74,8 @@ with import ../../lib/qemu-flags.nix { inherit pkgs; };
# OOM killer randomly get rid of processes, since this leads
# to failures that are hard to diagnose.
echo 2 > /proc/sys/vm/panic_on_oom
# Coverage data is written into /tmp/coverage-data.
mkdir -p /tmp/xchg/coverage-data
'';

# If the kernel has been built with coverage instrumentation, make
# it available under /proc/gcov.
boot.kernelModules = [ "gcov-proc" ];

# Panic if an error occurs in stage 1 (rather than waiting for
# user intervention).
boot.kernelParams =
@@ -111,8 +104,6 @@ with import ../../lib/qemu-flags.nix { inherit pkgs; };
networking.defaultGateway = mkOverride 150 "";
networking.nameservers = mkOverride 150 [ ];

systemd.globalEnvironment.GCOV_PREFIX = "/tmp/xchg/coverage-data";

system.requiredKernelConfig = with config.lib.kernelConfig; [
(isYes "SERIAL_8250_CONSOLE")
(isYes "SERIAL_8250")
4 changes: 0 additions & 4 deletions pkgs/build-support/release/default.nix
Original file line number Diff line number Diff line change
@@ -41,10 +41,6 @@ rec {
doCoverityAnalysis = true;
} // args);

gcovReport = args: import ./gcov-report.nix (
{ inherit runCommand lcov rsync;
} // args);

rpmBuild = args: import ./rpm-build.nix (
{ inherit vmTools;
} // args);
49 changes: 0 additions & 49 deletions pkgs/build-support/release/gcov-report.nix

This file was deleted.