Source: erlang-p1-oauth2
Version: 0.6.1-3
Severity: serious
Tags: buster sid
User: debian...@lists.debian.org
Usertags: qa-ftbfs-20170805 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part (hopefully):
>  debian/rules build
> dh build --buildsystem=rebar --with rebar
>    dh_update_autotools_config -O--buildsystem=rebar
>    dh_auto_configure -O--buildsystem=rebar
>       make --no-print-directory -f /usr/share/dh-rebar/make/dh-rebar.Makefile 
> configure
> make[1]: Nothing to be done for 'configure'.
>    dh_auto_build -O--buildsystem=rebar
>       make --no-print-directory -f /usr/share/dh-rebar/make/dh-rebar.Makefile 
> build
> rebar_compile
> rebar compile skip_deps=true -vv
> DEBUG: Consult config file "/<<PKGBUILDDIR>>/rebar.config"
> DEBUG: Rebar location: "/usr/bin/rebar"
> DEBUG: Consult config file "/<<PKGBUILDDIR>>/src/p1_oauth2.app.src"
> DEBUG: Available deps: []
> DEBUG: Missing deps  : []
> DEBUG: Plugins requested while processing /<<PKGBUILDDIR>>: [rebar3_hex]
> DEBUG: Plugin dirs for /<<PKGBUILDDIR>>:
> ["/<<PKGBUILDDIR>>",
>  "/<<PKGBUILDDIR>>/plugins"]
> WARN:  Missing plugins: [rebar3_hex]
> DEBUG: Predirs: []
> ==> erlang-p1-oauth2-0.6.1 (compile)
> DEBUG: Matched required ERTS version: 9.0.1 -> .*
> DEBUG: Matched required OTP release: 20 -> .*
> DEBUG: Min OTP version unconfigured
> DEBUG: erl_opts [debug_info,debug_info,{src_dirs,["src"]}]
> DEBUG: Files to compile first: ["src/oauth2_token_generation.erl"]
> Compiled src/oauth2_token_generation.erl
> DEBUG: Starting 3 compile worker(s)
> Compiled src/oauth2_backend.erl
> Compiled src/oauth2_priv_set.erl
> Compiled src/oauth2_response.erl
> Compiled src/oauth2_config.erl
> DEBUG: Worker exited cleanly
> src/oauth2_token.erl:68: Warning: crypto:rand_bytes/1 is deprecated and will 
> be removed in a future release; use crypto:strong_rand_bytes/1
> Compiled src/oauth2_token.erl
> DEBUG: Worker exited cleanly
> Compiled src/oauth2.erl
> DEBUG: Worker exited cleanly
> INFO:  No app_vars_file defined.
> DEBUG: Postdirs: []
>    dh_auto_test -O--buildsystem=rebar
>       make --no-print-directory -f /usr/share/dh-rebar/make/dh-rebar.Makefile 
> test
> rebar_eunit
> rebar eunit skip_deps=true -vv
> DEBUG: Consult config file "/<<PKGBUILDDIR>>/rebar.config"
> DEBUG: Rebar location: "/usr/bin/rebar"
> DEBUG: Consult config file "/<<PKGBUILDDIR>>/src/p1_oauth2.app.src"
> DEBUG: Available deps: []
> DEBUG: Missing deps  : []
> DEBUG: Plugins requested while processing /<<PKGBUILDDIR>>: [rebar3_hex]
> DEBUG: Plugin dirs for /<<PKGBUILDDIR>>:
> ["/<<PKGBUILDDIR>>",
>  "/<<PKGBUILDDIR>>/plugins"]
> WARN:  Missing plugins: [rebar3_hex]
> DEBUG: Predirs: []
> ==> erlang-p1-oauth2-0.6.1 (eunit)
> DEBUG: Matched required ERTS version: 9.0.1 -> .*
> DEBUG: Matched required OTP release: 20 -> .*
> DEBUG: Min OTP version unconfigured
> DEBUG: Triq availability: false
> DEBUG: PropEr availability: true
> DEBUG: QuickCheck availability: false
> INFO:  sh info:
>       cwd: "/<<PKGBUILDDIR>>"
>       cmd: cp -R src/oauth2_backend.erl src/oauth2_priv_set.erl 
> src/oauth2_response.erl src/oauth2_token.erl src/oauth2.erl 
> src/oauth2_token_generation.erl src/oauth2_config.erl test/oauth2_tests.erl 
> test/oauth2_mock_backend.erl test/oauth2_token_tests.erl 
> test/oauth2_response_tests.erl test/oauth2_priv_set_tests.erl ".eunit"
> DEBUG:        opts: [{use_stdout,false},abort_on_error]
> DEBUG: Port Cmd: "cp -R src/oauth2_backend.erl src/oauth2_priv_set.erl 
> src/oauth2_response.erl src/oauth2_token.erl src/oauth2.erl 
> src/oauth2_token_generation.erl src/oauth2_config.erl test/oauth2_tests.erl 
> test/oauth2_mock_backend.erl test/oauth2_token_tests.erl 
> test/oauth2_response_tests.erl test/oauth2_priv_set_tests.erl \".eunit\""
> Port Opts: [exit_status,{line,16384},use_stdio,stderr_to_stdout,hide]
> DEBUG: erl_opts [{d,'TEST'},
>                  debug_info,debug_info,
>                  {src_dirs,["src"]},
>                  {d,'PROPER'}]
> DEBUG: Files to compile first: ["src/oauth2_token_generation.erl"]
> Compiled src/oauth2_token_generation.erl
> DEBUG: Starting 3 compile worker(s)
> Compiled src/oauth2_backend.erl
> Compiled src/oauth2_priv_set.erl
> Compiled src/oauth2_response.erl
> src/oauth2_token.erl:68: Warning: crypto:rand_bytes/1 is deprecated and will 
> be removed in a future release; use crypto:strong_rand_bytes/1
> Compiled src/oauth2_token.erl
> Compiled src/oauth2_config.erl
> Compiled src/oauth2.erl
> Compiled test/oauth2_mock_backend.erl
> Compiled test/oauth2_tests.erl
> Compiled test/oauth2_token_tests.erl
> DEBUG: Worker exited cleanly
> Compiled test/oauth2_response_tests.erl
> DEBUG: Worker exited cleanly
> Compiled test/oauth2_priv_set_tests.erl
> DEBUG: Worker exited cleanly
> INFO:  Cover compiling /<<PKGBUILDDIR>>
> ======================== EUnit ========================
> module 'oauth2_token'
>   module 'oauth2_token_tests'
>     oauth2_token_tests:37: proper_type_spec_test_...Testing 
> oauth2_token:generate/1
> ....................................................................................................
> OK: Passed 100 test(s).
> 
> Testing oauth2_token:strong_rand_bytes_proxy/1
> ....................................................................................................
> OK: Passed 100 test(s).
> 
> [1.810 s] ok
>     oauth2_token_tests: generate_test...ok
>     oauth2_token_tests:58: generate_low_entropy_test_...*failed*
> in function crypto:rand_bytes/1
>   called as rand_bytes(32)
> in call from oauth2_token_meck_original:generate_fragment/1 
> (src/oauth2_token.erl, line 45)
> in call from oauth2_token:generate/1
>   called as generate([])
> in call from oauth2_token_tests:'-generate_low_entropy_test_/0-fun-0-'/0 
> (test/oauth2_token_tests.erl, line 58)
> **error:undef
>   output:<<"">>
> 
>     oauth2_token_tests:59: generate_low_entropy_test_...*failed*
> in function crypto:rand_bytes/1
>   called as rand_bytes(32)
> in call from oauth2_token_meck_original:generate_fragment/1 
> (src/oauth2_token.erl, line 45)
> in call from oauth2_token:generate/1
>   called as generate([])
> in call from oauth2_token_tests:'-generate_low_entropy_test_/0-fun-3-'/0 
> (test/oauth2_token_tests.erl, line 61)
> **error:undef
>   output:<<"">>
> 
>     [done in 2.151 s]
>   [done in 2.151 s]
> module 'oauth2_backend'
> module 'oauth2_token_generation'
> module 'oauth2_response'
>   module 'oauth2_response_tests'
>     oauth2_response_tests:46: proper_type_spec_test_...Testing 
> oauth2_response:token_type/1
> ....................................................................................................
> OK: Passed 100 test(s).
> 
> Testing oauth2_response:scope/1
> ....................................................................................................
> OK: Passed 100 test(s).
> 
> Testing oauth2_response:access_code/1
> ....................................................................................................
> OK: Passed 100 test(s).
> 
> Testing oauth2_response:refresh_token_expires_in/2
> ....................................................................................................
> OK: Passed 100 test(s).
> 
> Testing oauth2_response:refresh_token/2
> ....................................................................................................
> OK: Passed 100 test(s).
> 
> Testing oauth2_response:expires_in/2
> ....................................................................................................
> OK: Passed 100 test(s).
> 
> Testing oauth2_response:access_token/2
> ....................................................................................................
> OK: Passed 100 test(s).
> 
> Testing oauth2_response:new/1
> !
> Failed: After 1 test(s).
> [<<107>>]
> 
> Shrinking .(1 time(s))
> [<<>>]
> 
> Testing oauth2_response:resource_owner/2
> ....................................................................................................
> OK: Passed 100 test(s).
> 
> Testing oauth2_response:new/7
> !
> Failed: After 1 test(s).
> [[],0,'?',[<<138>>],[],[],<<>>]
> 
> Shrinking ......(6 time(s))
> [0,0,0,[],0,0,<<>>]
> 
> Testing oauth2_response:refresh_token_expires_in/1
> ....................................................................................................
> OK: Passed 100 test(s).
> 
> Testing oauth2_response:refresh_token/1
> ....................................................................................................
> OK: Passed 100 test(s).
> 
> Testing oauth2_response:scope/2
> ....................................................................................................
> OK: Passed 100 test(s).
> 
> Testing oauth2_response:expires_in/1
> ....................................................................................................
> OK: Passed 100 test(s).
> 
> Testing oauth2_response:access_code/2
> ....................................................................................................
> OK: Passed 100 test(s).
> 
> Testing oauth2_response:access_token/1
> ....................................................................................................
> OK: Passed 100 test(s).
> 
> Testing oauth2_response:to_map/1
> 
> Error: The typeserver encountered an error: 
> {missing_type,oauth2_response,{type,map,1}}.
> 
> Testing oauth2_response:new/2
> !
> Failed: After 1 test(s).
> [<<54>>,1]
> 
> Shrinking ..(2 time(s))
> [<<>>,0]
> 
> Testing oauth2_response:resource_owner/1
> ....................................................................................................
> OK: Passed 100 test(s).
> 
> Testing oauth2_response:new/4
> !
> Failed: After 1 test(s).
> [<<>>,1,-0.7920999352286265,<<>>]
> 
> Shrinking .....(5 time(s))
> [<<>>,0,0,[]]
> 
> Testing oauth2_response:to_proplist/1
> .....!
> Failed: After 6 test(s).
> An exception was raised: error:{error,badarg}.
> Stacktrace: [{proper_typeserver,'-apply_spec_test/5-fun-0-',
>                  [{erlang,list_to_binary,[[{}]],[]},
>                   {oauth2_response,to_binary,1,
>                       [{file,"src/oauth2_response.erl"},{line,214}]},
>                   {oauth2_response,response_foldr,4,
>                       [{file,"src/oauth2_response.erl"},{line,204}]},
>                   {oauth2_response,response_foldr,4,
>                       [{file,"src/oauth2_response.erl"},{line,201}]},
>                   {oauth2_response,response_foldr,4,
>                       [{file,"src/oauth2_response.erl"},{line,205}]},
>                   {proper_typeserver,'-apply_spec_test/5-fun-0-',6,
>                       [{file,"src/proper_typeserver.erl"},{line,533}]},
>                   {proper,apply_args,3,[{file,"src/proper.erl"},{line,1353}]},
>                   {proper,child,3,[{file,"src/proper.erl"},{line,1392}]}],
>                  [{file,"src/proper_typeserver.erl"},{line,556}]},
>              {proper,apply_args,3,[{file,"src/proper.erl"},{line,1353}]},
>              {proper,child,3,[{file,"src/proper.erl"},{line,1392}]},
>              {proper,'-spawn_link_migrate/1-fun-1-',2,
>                  [{file,"src/proper.erl"},{line,669}]}].
> [{response,<<137,113>>,<<>>,1,[{}],[<<>>],<<>>,0,<<46>>}]
> 
> Shrinking ..........(10 time(s))
> [{response,<<>>,<<>>,0,[-1],[],<<>>,0,<<>>}]
> 
> Testing oauth2_response:new/6
> !
> Failed: After 1 test(s).
> [<<>>,0,[],[<<>>],<<66>>,0]
> 
> Shrinking ...(3 time(s))
> [<<>>,0,0,[],<<>>,0]
> 
> [0.718 s] ok
>     oauth2_response_tests:56: new_1_test_...ok
>     oauth2_response_tests:57: new_1_test_...ok
>     oauth2_response_tests:58: new_1_test_...ok
>     oauth2_response_tests:59: new_1_test_...ok
>     oauth2_response_tests:69: new_2_test_...ok
>     oauth2_response_tests:70: new_2_test_...ok
>     oauth2_response_tests:71: new_2_test_...ok
>     oauth2_response_tests:72: new_2_test_...ok
>     oauth2_response_tests:82: new_4_test_...ok
>     oauth2_response_tests:83: new_4_test_...ok
>     oauth2_response_tests:84: new_4_test_...ok
>     oauth2_response_tests:85: new_4_test_...ok
>     oauth2_response_tests:95: new_5_test_...ok
>     oauth2_response_tests:96: new_5_test_...ok
>     oauth2_response_tests:97: new_5_test_...ok
>     oauth2_response_tests:98: new_5_test_...ok
>     oauth2_response_tests:109: new_6_test_...ok
>     oauth2_response_tests:110: new_6_test_...ok
>     oauth2_response_tests:111: new_6_test_...ok
>     oauth2_response_tests:112: new_6_test_...ok
>     oauth2_response_tests:113: new_6_test_...ok
>     oauth2_response_tests: access_token_test...ok
>     oauth2_response_tests: access_code_test...ok
>     oauth2_response_tests: expires_in_test...ok
>     oauth2_response_tests: scope_test...ok
>     oauth2_response_tests: refresh_token_test...ok
>     oauth2_response_tests: resource_owner_test...ok
>     oauth2_response_tests: token_type_test...ok
>     oauth2_response_tests: 
> to_proplist_test.......................................................................................................
> OK: Passed 100 test(s).
> [0.026 s] ok
>     oauth2_response_tests: 
> to_map_test.......................................................................................................
> OK: Passed 100 test(s).
> [0.026 s] ok
>     [done in 0.863 s]
>   [done in 0.863 s]
> module 'oauth2'
>   module 'oauth2_tests'
>     oauth2_tests:52: bad_authorize_password_test_...[0.001 s] ok
>     oauth2_tests:57: bad_authorize_password_test_...ok
>     oauth2_tests:62: bad_authorize_password_test_...ok
>     oauth2_tests:67: bad_authorize_password_test_...ok
>     oauth2_tests:72: bad_authorize_password_test_...ok
>     oauth2_tests:78: bad_authorize_password_test_...ok
>     oauth2_tests:84: bad_authorize_password_test_...ok
>     oauth2_tests:90: bad_authorize_password_test_...ok
>     oauth2_tests:96: bad_authorize_password_test_...ok
>     oauth2_tests: authorize_implicit_grant_test_...ok
>     oauth2_tests:134: bad_authorize_client_credentials_test_...ok
>     oauth2_tests:140: bad_authorize_client_credentials_test_...ok
>     oauth2_tests:145: bad_authorize_client_credentials_test_...ok
>     oauth2_tests:151: bad_authorize_client_credentials_test_...ok
>     oauth2_tests: bad_ttl_test_...ok
>     oauth2_tests: bad_ttl_test_...ok
>     oauth2_tests: bad_ttl_test_...ok
>     oauth2_tests: verify_access_token_test_...ok
>     oauth2_tests:217: verify_access_token_test_...ok
>     oauth2_tests: bad_access_code_test_...ok
>     oauth2_tests: verify_access_code_test_...ok
>     oauth2_tests: bad_refresh_token_test_...ok
>     oauth2_tests: verify_refresh_token_test_...ok
>     oauth2_tests: verify_refresh_token_test_...ok
>     [done in 0.073 s]
>   [done in 0.073 s]
> module 'oauth2_mock_backend'
> module 'oauth2_priv_set'
>   module 'oauth2_priv_set_tests'
>     oauth2_priv_set_tests:37: proper_type_spec_test_...Testing 
> oauth2_priv_set:union/2
> ....................................................................................................
> OK: Passed 100 test(s).
> 
> Testing oauth2_priv_set:new/1
> ....................................................................................................
> OK: Passed 100 test(s).
> 
> Testing oauth2_priv_set:is_member/2
> ....................................................................................................
> OK: Passed 100 test(s).
> 
> Testing oauth2_priv_set:is_subset/2
> ....................................................................................................
> OK: Passed 100 test(s).
> 
> [3.994 s] ok
>     oauth2_priv_set_tests:43: new_test_...ok
>     oauth2_priv_set_tests:46: new_test_...ok
>     oauth2_priv_set_tests:49: new_test_...ok
>     oauth2_priv_set_tests:52: new_test_...ok
>     oauth2_priv_set_tests:59: is_subset_test_...ok
>     oauth2_priv_set_tests:69: is_subset_test_...ok
>     oauth2_priv_set_tests:72: is_subset_test_...ok
>     oauth2_priv_set_tests:75: is_subset_test_...ok
>     oauth2_priv_set_tests:78: is_subset_test_...ok
>     oauth2_priv_set_tests:81: is_subset_test_...ok
>     oauth2_priv_set_tests:84: is_subset_test_...ok
>     oauth2_priv_set_tests:87: is_subset_test_...ok
>     [done in 4.033 s]
>   [done in 4.033 s]
> module 'oauth2_config'
> =======================================================
>   Failed: 2.  Skipped: 0.  Passed: 70.
> Cover analysis: /<<PKGBUILDDIR>>/.eunit/index.html
> Coverdata export: /<<PKGBUILDDIR>>/.eunit/cover.coverdata
> DEBUG: Reconstruct stdlib []
> DEBUG: Reconstruct kernel [{error_logger,tty}]
> DEBUG: Reconstruct crypto [{fips_mode,false}]
> DEBUG: Reconstruct rebar []
> DEBUG: No processes to kill
> ERROR: One or more eunit tests failed.
> ERROR: eunit failed while processing /<<PKGBUILDDIR>>: rebar_abort
> /usr/share/dh-rebar/make/dh-rebar.Makefile:137: recipe for target 
> 'rebar_eunit' failed
> make[1]: *** [rebar_eunit] Error 1
> dh_auto_test: make --no-print-directory -f 
> /usr/share/dh-rebar/make/dh-rebar.Makefile test returned exit code 2

The full build log is available from:
   http://aws-logs.debian.net/2017/08/05/erlang-p1-oauth2_0.6.1-3_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.

Reply via email to