Skip to content

Comments

runitor: init at 0.9.2#170566

Merged
grahamc merged 1 commit intoNixOS:masterfrom
bdd:pkg/new/runitor
May 5, 2022
Merged

runitor: init at 0.9.2#170566
grahamc merged 1 commit intoNixOS:masterfrom
bdd:pkg/new/runitor

Conversation

@bdd
Copy link
Contributor

@bdd bdd commented Apr 27, 2022

Description of changes

New package: runitor at v0.9.2

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.05 Release Notes (or backporting 21.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@bdd bdd force-pushed the pkg/new/runitor branch from 050a332 to dc65951 Compare April 27, 2022 04:48
@ofborg ofborg bot added the 8.has: package (new) This PR adds a new package label Apr 27, 2022
@ofborg ofborg bot requested a review from kalbasit April 27, 2022 05:03
@ofborg ofborg bot added 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Apr 27, 2022
Copy link
Contributor

@stehessel stehessel left a comment

Choose a reason for hiding this comment

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

Also it looks like the passthru tests are currently failing.

@bdd bdd force-pushed the pkg/new/runitor branch from 884e153 to 73eb3b9 Compare April 28, 2022 23:50
@bdd
Copy link
Contributor Author

bdd commented Apr 29, 2022

Also it looks like the passthru tests are currently failing.

go test ./... invocation runs unit tests that require loopback networking to bring up stub listeners to test the client behavior. IIUC, networking is entirely disabled in OfBorg runners, hence those unit tests fail.

@bdd bdd requested a review from stehessel April 29, 2022 00:25
@stehessel
Copy link
Contributor

Also it looks like the passthru tests are currently failing.

go test ./... invocation runs unit tests that require loopback networking to bring up stub listeners to test the client behavior. IIUC, networking is entirely disabled in OfBorg runners, hence those unit tests fail.

Perhaps you should disable those specific tests? I don't think merging failing tests is a good idea, it could block the package from getting stable NixOS branches.

@cole-h
Copy link
Member

cole-h commented Apr 30, 2022

I don't know why, yet, but the tests experience a network failure on the ofborg builders... I don't have much time to look into why that is this weekend, so... For the moment, would you mind disabling the tests (or even just those specific tests, if possible...)? Feel free to add a TODO(cole-h): figure out why tests fail loopback networking in ofborg comment above it, if you so desire. (FWIW: It builds just fine on my local machine, no networking issues whatsoever.)

@bdd
Copy link
Contributor Author

bdd commented Apr 30, 2022

I don't know why, yet, but the tests experience a network failure on the ofborg builders... I don't have much time to look into why that is this weekend, so... For the moment, would you mind disabling the tests (or even just those specific tests, if possible...)? Feel free to add a TODO(cole-h): figure out why tests fail loopback networking in ofborg comment above it, if you so desire. (FWIW: It builds just fine on my local machine, no networking issues whatsoever.)

Alright. I was gonna skip these tests but then I hit a bug in go-modules/generic/default.nix w.r.t how $checkFlags is passed to buildGoDir helper, which doesn't expect more than 2 parameters but a checkFlags list may get expanded to a space separated string, which will get interpreted as multiple arguments. Will send a PR for that as well.

diff --git a/pkgs/development/go-modules/generic/default.nix b/pkgs/development/go-modules/generic/default.nix
index 502a981596e..dd829e8dbd6 100644
--- a/pkgs/development/go-modules/generic/default.nix
+++ b/pkgs/development/go-modules/generic/default.nix
@@ -244,7 +244,7 @@ let
       runHook preCheck
░
       for pkg in $(getGoDirs test); do
-        buildGoDir test $checkFlags "$pkg"
+        buildGoDir "test $checkFlags" "$pkg"
       done
░
       runHook postCheck

@bdd bdd force-pushed the pkg/new/runitor branch from 73eb3b9 to c25b749 Compare April 30, 2022 20:51
@bdd bdd requested a review from IvarWithoutBones May 1, 2022 23:03
@grahamc grahamc merged commit dc99b0d into NixOS:master May 5, 2022
@bdd bdd deleted the pkg/new/runitor branch May 6, 2022 16:31
@Janik-Haag Janik-Haag added the 12.first-time contribution This PR is the author's first one; please be gentle! label Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 12.first-time contribution This PR is the author's first one; please be gentle!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants