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

gupnp-igd build flaky #119288

Closed
davidak opened this issue Apr 13, 2021 · 6 comments
Closed

gupnp-igd build flaky #119288

davidak opened this issue Apr 13, 2021 · 6 comments
Labels
0.kind: bug 2.status: wait-for-upstream Waiting for upstream fix (or their other action). 9.needs: upstream fix

Comments

@davidak
Copy link
Member

davidak commented Apr 13, 2021

Describe the bug
the build of gupnp-igd seem to be flaky.

i have seen the build fail now for the second time in a few days, but when i try again, it works

the issue seem to be a TIMEOUT.

...
CC      libavcodec/vdpau_h264.o
  CC       gprstate.lo
CC      libavcodec/vdpau_hevc.o
1/1 gupnp-simple-igd        TIMEOUT        30.02s   killed by signal 15 SIGTERM
>>> MALLOC_PERTURB_=37 XML_PATH=/build/gupnp-igd-1.2.0/tests/gtest /build/gupnp-igd-1.2.0/build/tests/gtest/gupnp-simple-igd
 ✀  
Listing only the last 100 lines from a long log.
# GLib-GIO-DEBUG: GSocketClient: Connection successful!
# GLib-GIO-DEBUG: GSocketClient: TCP connection successful
# GLib-GIO-DEBUG: GSocketClient: Starting application layer connection
# GLib-GIO-DEBUG: GSocketClient: Connection successful!
# GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration
# GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded
# GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt
# GLib-GIO-DEBUG: GSocketClient: TCP connection successful
# GLib-GIO-DEBUG: GSocketClient: Starting application layer connection
# GLib-GIO-DEBUG: GSocketClient: Connection successful!
# GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration
# GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded
# GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt
# GLib-GIO-DEBUG: GSocketClient: TCP connection successful
# GLib-GIO-DEBUG: GSocketClient: Starting application layer connection
# GLib-GIO-DEBUG: GSocketClient: Connection successful!
# GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration
# GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded
# GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt
# GLib-GIO-DEBUG: GSocketClient: TCP connection successful
# GLib-GIO-DEBUG: GSocketClient: Starting application layer connection
# GLib-GIO-DEBUG: GSocketClient: Connection successful!
# GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration
# GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration
# GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded
# GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt
# GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded
# GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt
# GLib-GIO-DEBUG: GSocketClient: TCP connection successful
# GLib-GIO-DEBUG: GSocketClient: Starting application layer connection
# GLib-GIO-DEBUG: GSocketClient: Connection successful!
# GLib-GIO-DEBUG: GSocketClient: TCP connection successful
# GLib-GIO-DEBUG: GSocketClient: Starting application layer connection
# GLib-GIO-DEBUG: GSocketClient: Connection successful!
# GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration
# GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded
# GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt
# GLib-GIO-DEBUG: GSocketClient: TCP connection successful
# GLib-GIO-DEBUG: GSocketClient: Starting application layer connection
# GLib-GIO-DEBUG: GSocketClient: Connection successful!
# GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration
# GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration
# GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded
# GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt
# GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded
# GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt
# GLib-GIO-DEBUG: GSocketClient: TCP connection successful
# GLib-GIO-DEBUG: GSocketClient: Starting application layer connection
# GLib-GIO-DEBUG: GSocketClient: Connection successful!
# GLib-GIO-DEBUG: GSocketClient: TCP connection successful
# GLib-GIO-DEBUG: GSocketClient: Starting application layer connection
# GLib-GIO-DEBUG: GSocketClient: Connection successful!
# GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration
# GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration
# GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded
# GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt
# GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded
# GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt
# GLib-GIO-DEBUG: GSocketClient: TCP connection successful
# GLib-GIO-DEBUG: GSocketClient: Starting application layer connection
# GLib-GIO-DEBUG: GSocketClient: Connection successful!
# GLib-GIO-DEBUG: GSocketClient: TCP connection successful
# GLib-GIO-DEBUG: GSocketClient: Starting application layer connection
# GLib-GIO-DEBUG: GSocketClient: Connection successful!
# GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration
# GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration
# GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded
# GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt
# GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded
# GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt
# GLib-GIO-DEBUG: GSocketClient: TCP connection successful
# GLib-GIO-DEBUG: GSocketClient: Starting application layer connection
# GLib-GIO-DEBUG: GSocketClient: Connection successful!
# GLib-GIO-DEBUG: GSocketClient: TCP connection successful
# GLib-GIO-DEBUG: GSocketClient: Starting application layer connection
# GLib-GIO-DEBUG: GSocketClient: Connection successful!
# GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration
# GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration
# GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded
# GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt
# GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded
# GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt
# GLib-GIO-DEBUG: GSocketClient: TCP connection successful
# GLib-GIO-DEBUG: GSocketClient: Starting application layer connection
# GLib-GIO-DEBUG: GSocketClient: Connection successful!
# GLib-GIO-DEBUG: GSocketClient: TCP connection successful
# GLib-GIO-DEBUG: GSocketClient: Starting application layer connection
# GLib-GIO-DEBUG: GSocketClient: Connection successful!
# GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration
# GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration
# GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded
# GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt
# GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded
# GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt
# GLib-GIO-DEBUG: GSocketClient: TCP connection successful
# GLib-GIO-DEBUG: GSocketClient: Starting application layer connection
# GLib-GIO-DEBUG: GSocketClient: Connection successful!
# GLib-GIO-DEBUG: GSocketClient: TCP connection successful
# GLib-GIO-DEBUG: GSocketClient: Starting application layer connection
# GLib-GIO-DEBUG: GSocketClient: Connection successful!



Summary of Failures:

1/1 gupnp-simple-igd TIMEOUT        30.02s   killed by signal 15 SIGTERM


Ok:                 0   
Expected Fail:      0   
Fail:               0   
Unexpected Pass:    0   
Skipped:            0   
Timeout:            1   

Full log written to /build/gupnp-igd-1.2.0/build/meson-logs/testlog.txt
  CC       metafile.lo
FAILED: meson-test 
/nix/store/sdk796lkw6c8dwvw05rxlq5dk5xpwx2n-meson-0.57.1/bin/meson test --no-rebuild --print-errorlogs
ninja: build stopped: subcommand failed.
builder for '/nix/store/h5i9rzx9aswk5iinh1a390cldl79ra6z-gupnp-igd-1.2.0.drv' failed with exit code 1
building '/nix/store/0maw0c3bq42fk3azr1q2pdmvbwv2abzv-libgweather-3.36.1.drv'...
cannot build derivation '/nix/store/340dpidfzlw4258hg5qnkhmgxnk75mvy-libnice-0.1.18.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/5zvlk182v5hgbl7fp2hc3phsa76r3vag-gst-plugins-bad-1.18.2.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/h1p089afsy7x5n3s2d49qp58n3f5vm00-elementary-camera-1.0.6.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/mldbwq96djgplfz0kb478lycvadq928k-elementary-music-5.0.5.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/nmmpg9m6wq35l0cs3w447dm4w19cbqd6-elementary-photos-2.7.0.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/a208qyy8gkx1yxvkvmq8p7qa36hj9zq9-elementary-videos-2.7.2.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/rv3gpj6hk9f7awv03bmq5q0wcsjyc2a6-epiphany-3.38.2.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/2qnp6jpx99j5j3nnbzi3jrvxknah8ikj-evince-3.38.2.drv': 1 dependencies couldn't be built
building '/nix/store/29vg0f6lq1fnfwm822phy03ix3mbvwbs-libindicator-gtk3-12.10.1.drv'...
building '/nix/store/g4kj9vjcvab74gnzf84iw4anayd57jb2-libpeas-1.28.0.drv'...
building '/nix/store/cxkl94gwl9sgaq5m33k3lidav836j620-libunity-unstable-2019-03-19.drv'...
building '/nix/store/p8h4q4alfzy0xk5h1s0agy8mjpb89d3w-libwnck-3.36.0.drv'...
building '/nix/store/vvwaxiapkgg14yigmbm9h970ykx72jf0-osm-gps-map-1.2.0.drv'...
building '/nix/store/4ar8q1rawpwmxwir33d4d1k838wcikbc-plymouth-unstable-2020-12-07.drv'...
building '/nix/store/597kjajmmh7apdvf22bb6msbr4xa3nmn-qtbase-5.14.2.drv'...
cannot build derivation '/nix/store/zpq3lmy7fchywbpr3ca4gfywdk8k96m3-rygel-0.40.1.drv': 1 dependencies couldn't be built
building '/nix/store/bxvgms2a442k9pzl0x7f702gnyr5x1zm-stoken-0.92.drv'...
building '/nix/store/6pvmiiprgajzyi61i82ws8qgiqgrn871-vte-0.62.2.drv'...
cannot build derivation '/nix/store/4m89g0kzlirm2sif0z2phs5869xiip68-webkitgtk-2.32.0.drv': 1 dependencies couldn't be built
building '/nix/store/chhi7ri01l3mif9479jh13vbxcmlfc9l-zeitgeist-1.0.2.drv'...
cannot build derivation '/nix/store/yb352x5j4py6xixalixhlhhp43626bd3-etc.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/wp1p70br06ndbqg2fcgs9b3f306nma85-system-path.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/2cm45rdvwx6d07bvajm4h2qjs3zv24c0-nixos-system-gaming-21.05.git.5838826911c.drv': 1 dependencies couldn't be built
error: build of '/nix/store/2cm45rdvwx6d07bvajm4h2qjs3zv24c0-nixos-system-gaming-21.05.git.5838826911c.drv' failed

To Reproduce
Steps to reproduce the behavior:
that heppened in a system rebuild where many things are build and the system is under load

when i build just the one package, it works

[davidak@gaming:~/code/nixpkgs]$ nix-build . -A gupnp_igd

Expected behavior
build should always succeed

Additional context
build from staging at fea3171

Notify maintainers
cc @maxeaubrey who updated it last

Metadata

  • system: "x86_64-linux"
  • host os: Linux 5.11.11, NixOS, 21.05pre281538.9e377a6ce42 (Okapi)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.3.10
  • channels(root): "home-manager-20.09, nixos-21.05pre281538.9e377a6ce42, nixos-hardware, nixos-unstable-21.05pre281538.9e377a6ce42"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
@amaxine
Copy link
Contributor

amaxine commented Apr 16, 2021

I've not run into this, but I don't love flaky tests. Since this passes as long as the system isn't under load... I suppose the best way is to disable the test? Because increasing the timeout doesn't seem like a good long-term fix.

@alyssais
Copy link
Member

If (for example) the test takes 25-35 seconds, and the timeout is 30 seconds, increasing the timeout to 300 seconds would be a perfectly reasonable long-term fix IMO. Why wouldn't it be? TImeouts are there to catch things that have got stuck, not to test that something is fast, so they don't need to be anywhere close to how long something actually takes, as long as they're short enough that they'll catch stuck processes promptly.

@alyssais
Copy link
Member

Although, on my 2012 laptop, under load, I can't reproduce this (but have reproduced it on a powerful server). On the laptop it takes 5 seconds normally and 7 under load. So I think maybe it's more likely that it is just getting stuck.

@davidak
Copy link
Member Author

davidak commented Apr 28, 2021

I reported the issue upstream, so they hopefully can fix it and we can enable the check again.

https://gitlab.gnome.org/GNOME/gupnp-igd/-/issues/3

@alyssais
Copy link
Member

alyssais commented Apr 28, 2021 via email

@davidak
Copy link
Member Author

davidak commented Apr 29, 2021

When they would be able to reproduce it, they can investigate themselves. I have no idea what this is about.

@davidak davidak added 2.status: wait-for-upstream Waiting for upstream fix (or their other action). 9.needs: upstream fix labels Apr 29, 2021
@davidak davidak reopened this Apr 29, 2021
@SuperSandro2000 SuperSandro2000 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug 2.status: wait-for-upstream Waiting for upstream fix (or their other action). 9.needs: upstream fix
Projects
None yet
Development

No branches or pull requests

4 participants