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

perlPackages.NetAsyncWebSocket: init at 0.13 #102071

Merged
merged 1 commit into from Oct 30, 2020

Conversation

@zakame
Copy link
Member

@zakame zakame commented Oct 29, 2020

Motivation for this change

https://metacpan.org/pod/Net::Async::WebSocket

This pure Perl module allows accessing WebSockets enabled sites using IO::Async.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • 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 nixpkgs-review --run "nixpkgs-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)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
@SuperSandro2000
Copy link
Member

@SuperSandro2000 SuperSandro2000 commented Oct 29, 2020

Result of nixpkgs-review pr 102071 run on x86_64-darwin 1

2 packages failed to build:
  • perl530Packages.NetAsyncWebSocket
  • perl532Packages.NetAsyncWebSocket

Tests fail on darwin with sandbox:

running tests
t/00use.t ..... ok
t/01client.t .. ok
t/02server.t .. Cannot allocate listening socket - IO::Socket::INET: Operation not permitted at t/02server.t line 20.
t/02server.t .. Dubious, test returned 1 (wstat 256, 0x100)
No subtests run
t/03cross.t ... Cannot allocate listening socket - IO::Socket::INET: Operation not permitted at t/03cross.t line 18.
t/03cross.t ... Dubious, test returned 1 (wstat 256, 0x100)
No subtests run
t/99pod.t ..... skipped: Test::Pod 1.00 required for testing POD

Test Summary Report
-------------------
t/02server.t (Wstat: 256 Tests: 0 Failed: 0)
  Non-zero exit status: 1
  Parse errors: No plan found in TAP output
t/03cross.t (Wstat: 256 Tests: 0 Failed: 0)
  Non-zero exit status: 1
  Parse errors: No plan found in TAP output
Files=5, Tests=18,  2 wallclock secs ( 0.04 usr  0.03 sys +  0.86 cusr  0.54 csys =  1.47 CPU)
Result: FAIL
Failed 2/5 test programs. 0/18 subtests failed.
@SuperSandro2000
Copy link
Member

@SuperSandro2000 SuperSandro2000 commented Oct 29, 2020

Result of nixpkgs-review pr 102071 run on x86_64-linux 1

2 packages built:
  • perl530Packages.NetAsyncWebSocket
  • perl532Packages.NetAsyncWebSocket
@zakame
Copy link
Member Author

@zakame zakame commented Oct 29, 2020

Result of nixpkgs-review pr 102071 run on x86_64-darwin 1
2 packages failed to build:

Thanks for this, though not sure how to resolve as I don't have a Mac here 🤔 since its IO::Socket::INET that complained, it may have to be further up beyond the IO::Async::Stream.

I can probably add doCheck = !stdenv.isDarwin; since the failure only really come from testing (e.g. to apply a test IO::Socket::INET handle in https://metacpan.org/source/PEVANS/Net-Async-WebSocket-0.13/t/02server.t#L20-23)

(Can also disable network testing completely, esp. on sandbox)

@zakame zakame mentioned this pull request Oct 29, 2020
2 of 10 tasks
@zakame zakame force-pushed the zakame:contrib/perl-NetAsyncWebSocket branch from 69c08b0 to ec29b39 Oct 29, 2020
@SuperSandro2000
Copy link
Member

@SuperSandro2000 SuperSandro2000 commented Oct 30, 2020

(Can also disable network testing completely, esp. on sandbox)

I think this failure is because of the sandbox. I would be fine with disabling tests von darwin which is better than a broken package.

@SuperSandro2000
Copy link
Member

@SuperSandro2000 SuperSandro2000 commented Oct 30, 2020

Result of nixpkgs-review pr 102071 run on x86_64-darwin 1

2 packages built:
  • perl530Packages.NetAsyncWebSocket
  • perl532Packages.NetAsyncWebSocket
@stigtsp
Copy link
Member

@stigtsp stigtsp commented Oct 30, 2020

@zakame Hey. Would it be possible to have some tests here as well? (re #102066)

@zakame zakame force-pushed the zakame:contrib/perl-NetAsyncWebSocket branch from ec29b39 to 52c05c8 Oct 30, 2020
@zakame
Copy link
Member Author

@zakame zakame commented Oct 30, 2020

Done 💪

Copy link
Member

@stigtsp stigtsp left a comment

LGTM

Result of nixpkgs-review pr 102071 1

2 packages built:
  • perl530Packages.NetAsyncWebSocket
  • perl532Packages.NetAsyncWebSocket
@stigtsp
Copy link
Member

@stigtsp stigtsp commented Oct 30, 2020

Built and tested OK on darwin x64

@stigtsp
Copy link
Member

@stigtsp stigtsp commented Oct 30, 2020

@GrahamcOfBorg build perlPackages.NetAsyncWebSocket perldevelPackages.NetAsyncWebSocket

@stigtsp stigtsp merged commit b52da4e into NixOS:master Oct 30, 2020
19 checks passed
19 checks passed
@github-actions
tests
Details
@github-actions
action
Details
@ofborg
Evaluation Performance Report Evaluator Performance Report
Details
@github-actions
Wait for ofborg
Details
@ofborg
grahamcofborg-eval ^.^!
Details
@ofborg
grahamcofborg-eval-check-maintainers matching changed paths to changed attrs...
Details
@ofborg
grahamcofborg-eval-check-meta config.nix: checkMeta = true
Details
@ofborg
grahamcofborg-eval-darwin nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="52c05c8"; rev="52c05c879135d9c189831f3805330b5904e2823a"; } ./pkgs/t
Details
@ofborg
grahamcofborg-eval-lib-tests nix-build --arg pkgs import ./. {} ./lib/tests/release.nix
Details
@ofborg
grahamcofborg-eval-nixos nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="52c05c8"; rev="52c05c879135d9c189831f3805330b5904e2823a"; } ./nixos/
Details
@ofborg
grahamcofborg-eval-nixos-manual nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="52c05c8"; rev="52c05c879135d9c189831f3805330b5904e2823a"; } ./nixos/
Details
@ofborg
grahamcofborg-eval-nixos-options nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="52c05c8"; rev="52c05c879135d9c189831f3805330b5904e2823a"; } ./nixos/
Details
@ofborg
grahamcofborg-eval-nixpkgs-manual nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="52c05c8"; rev="52c05c879135d9c189831f3805330b5904e2823a"; } ./pkgs/t
Details
@ofborg
grahamcofborg-eval-nixpkgs-tarball nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="52c05c8"; rev="52c05c879135d9c189831f3805330b5904e2823a"; } ./pkgs/t
Details
@ofborg
grahamcofborg-eval-nixpkgs-unstable-jobset nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="52c05c8"; rev="52c05c879135d9c189831f3805330b5904e2823a"; } ./pkgs/t
Details
@ofborg
grahamcofborg-eval-package-list nix-env -qa --json --file .
Details
@ofborg
grahamcofborg-eval-package-list-no-aliases nix-env -qa --json --file . --arg config { allowAliases = false; }
Details
@ofborg
perlPackages.NetAsyncWebSocket, perldevelPackages.NetAsyncWebSocket on aarch64-linux Success
Details
@ofborg
perlPackages.NetAsyncWebSocket, perldevelPackages.NetAsyncWebSocket on x86_64-linux Success
Details
@zakame
Copy link
Member Author

@zakame zakame commented Oct 30, 2020

Thanks again! 🎉

@zakame zakame deleted the zakame:contrib/perl-NetAsyncWebSocket branch Oct 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants