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

Made rebar_utils:filtermap/2 to call directly lists:filtermap/2 #2907

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

ariel-anieli
Copy link

  • local implementation introduced by a4d4c6c
  • introduced to work around releases prior R16 not having lists:filtermap/2.
  • CI/CD nows runs wtih R25 to R27.

@ariel-anieli ariel-anieli marked this pull request as draft July 26, 2024 10:48
@ariel-anieli
Copy link
Author

Working on a regression in R27.

* local implementation introduced by a4d4c6c
* introduced to work around releases prior R16 not having `lists:filtermap/2` [1]
* CI/CD nows runs wtih R25 to R27.

[1] https://www.erlang.org/doc/apps/stdlib/lists.html#filtermap/2

Signed-off-by: Ariel Otilibili <[email protected]>
@ariel-anieli
Copy link
Author

PR is ready; couldn't reproduce the bug. The action failed on rebar_xref_SUITE.erl:

# rebar3 ct --dir apps/rebar/test/ --suite rebar_xref_SUITE.erl
===> Verifying dependencies...
===> Analyzing applications...
===> Compiling cth_readable
===> Compiling bbmustache
===> Compiling cf
===> Compiling erlware_commons
===> Compiling getopt
===> Compiling eunit_formatters
===> Compiling providers
===> Compiling ssl_verify_fun
===> Compiling relx
===> Compiling certifi
===> Compiling rebar
===> Running Common Test suites...
%%% rebar_xref_SUITE: ....
All 4 tests passed.

# git branch 
* filtermap
  main

@ariel-anieli ariel-anieli marked this pull request as ready for review July 29, 2024 10:48
@ariel-anieli
Copy link
Author

Complete debug on my system:

# rebar3 --version 
rebar 3.23.0 on Erlang/OTP 27 Erts 15.0

# rebar3 ct 
===> Verifying dependencies...                     
===> Analyzing applications...       
===> Compiling cth_readable  
===> Compiling bbmustache             
===> Compiling cf            
===> Compiling erlware_commons
===> Compiling getopt                                                                                 
===> Compiling eunit_formatters
===> Compiling providers                                                                                                                                                                                    
===> Compiling ssl_verify_fun                                                                                                                                                                               
===> Compiling relx                                                                                                                                                                                         
===> Compiling certifi                                                                                                                                                                                      
===> Compiling rebar                                                                                                                                                                                        
===> Running Common Test suites...                                                                                                                                                                          
%%% rebar_alias_SUITE: .........                                                                                                                                                                            
%%% rebar_as_SUITE: ...........                                                                                                                                                                             
%%% rebar_compile_SUITE: ...................................................................................                        
%%% rebar_compile_SUITE ==> always_recompile_when_erl_compiler_options_set: SKIPPED                                                                                                                         
%%% rebar_compile_SUITE ==> {tc_user_skip,"compile:env_compiler_options/0 available"}                                                                                                                       
.....                                                                                                                                                                                                       
%%% rebar_compiler_dag_SUITE: ...........                                                                                                                                                                   
%%% rebar_compiler_epp_SUITE: ......                                                                                                                                                                        
%%% rebar_compiler_format_SUITE: ..                                                                                                                                                                         
%%% rebar_completion_SUITE: ..
%%% rebar_completion_SUITE ==> check_zsh: SKIPPED
%%% rebar_completion_SUITE ==> {tc_user_skip,"zsh not found"}
                                                                                                      
%%% rebar_cover_SUITE: .............   
%%% rebar_ct_SUITE: .........................................................
%%% rebar_deps_SUITE: ..............................
%%% rebar_dialyzer_SUITE: ..............
%%% rebar_dir_SUITE: .......................
%%% rebar_disable_app_SUITE: .
%%% rebar_discover_SUITE: ....
%%% rebar_dist_utils_SUITE: ....
%%% rebar_edoc_SUITE: ...
%%% rebar_escriptize_SUITE: .....
%%% rebar_eunit_SUITE: .........................................
%%% rebar_file_utils_SUITE: ......................
%%% rebar_hooks_SUITE: .............
%%% rebar_install_deps_SUITE: .......................................
%%% rebar_lock_SUITE: ....
%%% rebar_manifest_SUITE: ....
%%% rebar_namespace_SUITE: ...............
%%% rebar_new_SUITE: .......
%%% rebar_opts_parser_SUITE: ..
%%% rebar_parallel_SUITE: ....
%%% rebar_paths_SUITE: ....
%%% rebar_pkg_SUITE: ...........
%%% rebar_pkg_alias_SUITE: ....
%%% rebar_pkg_repos_SUITE: ..............
%%% rebar_plugins_SUITE: .............
%%% rebar_profiles_SUITE: .........................
%%% rebar_release_SUITE: ............
%%% rebar_resource_SUITE: ...
%%% rebar_src_dirs_SUITE: ............
%%% rebar_templater_SUITE: ..
%%% rebar_unlock_SUITE: ....
%%% rebar_upgrade_SUITE: ..............................................................
%%% rebar_uri_SUITE: ..
%%% rebar_utils_SUITE: .........................../usr/lib/erlang/erts-15.0/bin/inet_gethost[849893]: WARNING:Timeout waiting for child process to die, ignoring child (pid = 849894).
/usr/lib/erlang/erts-15.0/bin/inet_gethost[849893]: WARNING:Timeout waiting for child process to die, ignoring child (pid = 852430).
/usr/lib/erlang/erts-15.0/bin/inet_gethost[849893]: WARNING:Timeout waiting for child process to die, ignoring child (pid = 852446).
/usr/lib/erlang/erts-15.0/bin/inet_gethost[849893]: WARNING:Timeout waiting for child process to die, ignoring child (pid = 852463).
/usr/lib/erlang/erts-15.0/bin/inet_gethost[849893]: WARNING:Timeout waiting for child process to die, ignoring child (pid = 852481).
/usr/lib/erlang/erts-15.0/bin/inet_gethost[849893]: WARNING:Timeout waiting for child process to die, ignoring child (pid = 852498).
/usr/lib/erlang/erts-15.0/bin/inet_gethost[849893]: WARNING:Timeout waiting for child process to die, ignoring child (pid = 852515).
/usr/lib/erlang/erts-15.0/bin/inet_gethost[849893]: WARNING:Timeout waiting for child process to die, ignoring child (pid = 852533).
/usr/lib/erlang/erts-15.0/bin/inet_gethost[849893]: WARNING:Timeout waiting for child process to die, ignoring child (pid = 852555).
/usr/lib/erlang/erts-15.0/bin/inet_gethost[849893]: WARNING:Timeout waiting for child process to die, ignoring child (pid = 852572).
/usr/lib/erlang/erts-15.0/bin/inet_gethost[849893]: WARNING:Timeout waiting for child process to die, ignoring child (pid = 852589).
/usr/lib/erlang/erts-15.0/bin/inet_gethost[849893]: WARNING:Timeout waiting for child process to die, ignoring child (pid = 852606).
/usr/lib/erlang/erts-15.0/bin/inet_gethost[849893]: WARNING:Timeout waiting for child process to die, ignoring child (pid = 852623).
/usr/lib/erlang/erts-15.0/bin/inet_gethost[849893]: WARNING:Timeout waiting for child process to die, ignoring child (pid = 852640).
/usr/lib/erlang/erts-15.0/bin/inet_gethost[849893]: WARNING:Timeout waiting for child process to die, ignoring child (pid = 852657).
..
%%% rebar_xref_SUITE: ....
Skipped 2 (2, 0) tests. Passed 635 tests.

@ferd ferd merged commit fac203c into erlang:main Jul 29, 2024
6 checks passed
@ariel-anieli ariel-anieli deleted the filtermap branch July 29, 2024 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants