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

Builds for attributes which are not derivations but instantiate ok "succeed" and produce metadata but no log #129

Open
grahamc opened this issue Mar 17, 2018 · 2 comments

Comments

@grahamc
Copy link
Member

grahamc commented Mar 17, 2018

See NixOS/nixpkgs#37218

[nix-shell:~/projects/nixpkgs]$ HOME=/homeless-shelter NIX_PATH=nixpkgs=$(pwd) nix-instantiate ./nixos/release.nix -A tests.kubernetes.rbac --option restrict-eval true --option build-timeout 1800 --arg supportedSystem '["x86_64-linux"]' --show-trace

[nix-shell:~/projects/nixpkgs]$ HOME=/homeless-shelter NIX_PATH=nixpkgs=$(pwd) nix-instantiate ./nixos/release.nix -A tests.kubernetes.dns --option restrict-eval true --option build-timeout 1800 --arg supportedSystem '["x86_64-linux"]' --show-trace

so evaluation "Succeeds" so they "build" which also "succeeds" but then there is nothing to do. This also meanss the builder sendss a "started building" job and a "result" job but no log file is created because no lines were sent.

See:

    "ea8221cb-2bc3-4d8c-822c-3c421f7f2a41": {
      "result": {
        "repo": {
          "owner": "NixOS",
          "name": "nixpkgs",
          "full_name": "NixOS/nixpkgs",
          "clone_url": "https://github.com/NixOS/nixpkgs.git"
        },
        "pr": {
          "target_branch": "master",
          "number": 37218,
          "head_sha": "e359258c739b42415ecc46416c466bb515effc53"
        },
        "system": "x86_64-linux",
        "output": [],
        "attempt_id": "ea8221cb-2bc3-4d8c-822c-3c421f7f2a41",
        "success": true,
        "skipped_attrs": [],
        "attempted_attrs": [
          "tests.kubernetes.dns",
          "tests.kubernetes.rbac"
        ]
      },
      "metadata": {
        "system": "x86_64-linux",
        "identity": "gleber-bastion",
        "attempt_id": "ea8221cb-2bc3-4d8c-822c-3c421f7f2a41",
        "attempted_attrs": [
          "tests.kubernetes.dns",
          "tests.kubernetes.rbac"
        ],
        "skipped_attrs": []
      }
    }
@grahamc
Copy link
Member Author

grahamc commented Mar 17, 2018

This also results in very bizarre replies to the issue:

Success on aarch64-linux [(full log)](https://logs.nix.ci/?key=nixos/nixpkgs.37218&attempt_id=89ec6363-269b-4913-830f-04b38df5cf5f)

Attempted: tests.kubernetes.dns, tests.kubernetes.rbac

No log is available.

@grahamc
Copy link
Member Author

grahamc commented Mar 17, 2018


  sub = {
    attrs = {
      contain = {
        drvs = assert builtins.trace ''
          :)
        '' false; {};
      };
    };
  };
[nix-shell:~/projects/ofborg/ofborg]$ nix-instantiate ./test-srcs/eval-mixed-failure/default.nix  -A sub.attrs
 
[nix-shell:~/projects/ofborg/ofborg]$ nix-instantiate ./test-srcs/eval-mixed-failure/default.nix  -A sub.attrs.contain
trace: :)

error: assertion failed at /home/grahamc/projects/ofborg/ofborg/test-srcs/eval-mixed-failure/default.nix:38:16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant