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

lsp-plugins: init at 1.1.4 #47694

Merged
merged 1 commit into from Oct 5, 2018
Merged

lsp-plugins: init at 1.1.4 #47694

merged 1 commit into from Oct 5, 2018

Conversation

magnetophon
Copy link
Member

@magnetophon magnetophon commented Oct 2, 2018

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

substituteInPlace ./include/container/vst/main.h --replace "/usr/lib" "$out/lib"
'';

buildPhase = "make all && make release";
Copy link
Member

Choose a reason for hiding this comment

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

please use buildFlags instead of overriding buildPhase

'';

buildPhase = "make all && make release";

Copy link
Member

Choose a reason for hiding this comment

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

Does the package have tests?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, why?

Copy link
Member

Choose a reason for hiding this comment

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

In that case please set doCheck = true; to run the tests.

Copy link
Member Author

Choose a reason for hiding this comment

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

I've added that, but the build output doesn't indicate it's running any tests afaik.

Copy link
Member

Choose a reason for hiding this comment

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

By default, when you set doCheck = true; it will run make check. If that's not the name of the target, you can change that by setting checkTarget = "all-tests"; or whatever the relevant make target is.

Copy link
Member Author

Choose a reason for hiding this comment

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

I have it building tests now, but it looks like these tests are meant to be ran manually.

Shall I remove the tests all-together, or run them somehow?

Copy link
Member

Choose a reason for hiding this comment

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

You can override checkPhase if there isn't a way to invoke it via make. From a cursory glance at the link you mentioned, based on this:

If we don's specify any unit test name in argument, then all available unit tests will be launched.

You should be able to do something like this to run the unit tests:

checkPhase = ''
  runHook preCheck
  .build/lsp-plugins-test utest
  runHook postCheck
'';

Copy link
Member Author

Choose a reason for hiding this comment

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

OK, it's fixed now!

@magnetophon
Copy link
Member Author

magnetophon commented Oct 3, 2018

@peterhoeg Thanks for your feedback.
Should be all OK now, except for the tests not being ran afaik.

Could you take a look at #47382 as well?

@peterhoeg peterhoeg merged commit be27131 into NixOS:master Oct 5, 2018
@peterhoeg
Copy link
Member

Thank your for you contribution and being open to all the feedback!

@magnetophon
Copy link
Member Author

Thanks for all the feedback! :)

@magnetophon magnetophon deleted the lsp-plugins branch October 5, 2018 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants