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

Fix and simplify overlays #3766

Merged
merged 2 commits into from
Sep 22, 2022
Merged

Fix and simplify overlays #3766

merged 2 commits into from
Sep 22, 2022

Conversation

chrzaszcz
Copy link
Member

@chrzaszcz chrzaszcz commented Sep 21, 2022

As stated in the rebar3 docs:

This is why we can just include the overlay files:

  • configure.vars.config into vars-toml.config
  • vars-toml.config into *.vars-toml.config

This way the overlays work correctly with the latest Rebar3, and there is no need to concatenate the files with make.
We have some templating utilities for tests, and they needed support for file inclusion as well.

@chrzaszcz chrzaszcz changed the title Include overlay vars from vars-toml.config Fix and simplify overlays Sep 21, 2022
@chrzaszcz chrzaszcz force-pushed the fix-overlay-vars branch 2 times, most recently from 7c75c05 to 654e815 Compare September 21, 2022 12:19
@mongoose-im

This comment was marked as outdated.

@mongoose-im

This comment was marked as outdated.

@codecov
Copy link

codecov bot commented Sep 21, 2022

Codecov Report

Base: 82.83% // Head: 17.87% // Decreases project coverage by -64.95% ⚠️

Coverage data is based on head (654e815) compared to base (2fcd129).
Patch has no changes to coverable lines.

❗ Current head 654e815 differs from pull request most recent head efee290. Consider uploading reports for the commit efee290 to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #3766       +/-   ##
===========================================
- Coverage   82.83%   17.87%   -64.96%     
===========================================
  Files         531      531               
  Lines       34083    34066       -17     
===========================================
- Hits        28233     6090    -22143     
- Misses       5850    27976    +22126     
Impacted Files Coverage Δ
src/mam/mam_jid.erl 0.00% <0.00%> (-100.00%) ⬇️
src/mod_last_api.erl 0.00% <0.00%> (-100.00%) ⬇️
src/mam/mam_decoder.erl 0.00% <0.00%> (-100.00%) ⬇️
src/mam/mam_encoder.erl 0.00% <0.00%> (-100.00%) ⬇️
src/mam/mam_jid_rfc.erl 0.00% <0.00%> (-100.00%) ⬇️
src/mam/mam_message.erl 0.00% <0.00%> (-100.00%) ⬇️
src/gen_iq_component.erl 0.00% <0.00%> (-100.00%) ⬇️
src/ejabberd_c2s_state.erl 0.00% <0.00%> (-100.00%) ⬇️
src/mam/mod_mam_params.erl 0.00% <0.00%> (-100.00%) ⬇️
src/sasl/cyrsasl_oauth.erl 0.00% <0.00%> (-100.00%) ⬇️
... and 465 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@mongoose-im

This comment was marked as outdated.

Paweł Chrząszcz added 2 commits September 21, 2022 15:20
This way there is only one overlay file, and the overlays work correctly
with the latest Rebar3.

As we do some templating in our tools, they need to support file
inclusion as well.
It is easier to modify vars-toml.config directly
@mongoose-im
Copy link
Collaborator

mongoose-im commented Sep 21, 2022

small_tests_24 / small_tests / efee290
Reports root / small


small_tests_25 / small_tests / efee290
Reports root / small


dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / efee290
Reports root/ big
OK: 3826 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


ldap_mnesia_24 / ldap_mnesia / efee290
Reports root/ big
OK: 1992 / Failed: 0 / User-skipped: 742 / Auto-skipped: 0


ldap_mnesia_25 / ldap_mnesia / efee290
Reports root/ big
OK: 1992 / Failed: 0 / User-skipped: 742 / Auto-skipped: 0


dynamic_domains_mysql_redis_25 / mysql_redis / efee290
Reports root/ big
OK: 3800 / Failed: 0 / User-skipped: 114 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / efee290
Reports root/ big
OK: 3826 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / efee290
Reports root/ big
OK: 3826 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


internal_mnesia_25 / internal_mnesia / efee290
Reports root/ big
OK: 2113 / Failed: 0 / User-skipped: 621 / Auto-skipped: 0


elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / efee290
Reports root/ big
OK: 2452 / Failed: 1 / User-skipped: 616 / Auto-skipped: 0

bosh_SUITE:essential:accept_higher_hold_value
{error,
  {{assertEqual,
     [{module,bosh_SUITE},
      {line,251},
      {expression,"get_bosh_sessions ( )"},
      {expected,[]},
      {value,
        [{bosh_session,<<"c94942b635deb2b239aff10c32b1b797265469dc">>,
           <9159.5104.0>}]}]},
   [{bosh_SUITE,accept_higher_hold_value,1,
      [{file,"/home/circleci/project/big_tests/tests/bosh_SUITE.erl"},
       {line,251}]},
    {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1782}]},
    {test_server,run_test_case_eval1,6,
      [{file,"test_server.erl"},{line,1291}]},
    {test_server,run_test_case_eval,9,
      [{file,"test_server.erl"},{line,1223}]}]}}

Report log


pgsql_mnesia_24 / pgsql_mnesia / efee290
Reports root/ big
OK: 4200 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


pgsql_mnesia_25 / pgsql_mnesia / efee290
Reports root/ big
OK: 4200 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


mysql_redis_25 / mysql_redis / efee290
Reports root/ big
OK: 4186 / Failed: 0 / User-skipped: 111 / Auto-skipped: 0


mssql_mnesia_25 / odbc_mssql_mnesia / efee290
Reports root/ big
OK: 4199 / Failed: 1 / User-skipped: 97 / Auto-skipped: 0

push_integration_SUITE:pubsub_ful:pm_notifications_with_inbox:inbox_msg_unread_count_apns
{error,
  {{assertMatch,
     [{module,push_integration_SUITE},
      {line,662},
      {expression,"Data"},
      {pattern,"# { << \"message-count\" >> := ExpectedCount }"},
      {value,
        #{<<"last-message-body">> => <<"Private message">>,
        <<"last-message-sender">> =>
          <<"kate_inbox_msg_unread_count_apns_2726@localhost">>,
        <<"message-count">> => 1}}]},
   [{push_integration_SUITE,check_notification,2,
      [{file,
         "/home/circleci/project/big_tests/tests/push_integration_SUITE.erl"},
       {line,662}]},
    {escalus_story,story,4,
      [{file,
         "/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
       {line,72}]},
    {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1782}]},
    {test_server,run_test_case_eval1,6,
      [{file,"test_server.erl"},{line,1291}]},
    {test_server,run_test_case_eval,9,
      [{file,"test_server.erl"},{line,1223}]}]}}

Report log


riak_mnesia_24 / riak_mnesia / efee290
Reports root/ big
OK: 2310 / Failed: 1 / User-skipped: 609 / Auto-skipped: 0

pubsub_SUITE:dag+basic:subscribe_options_test
{error,{{badmatch,{{<<"pubsub#deliver">>,<<"boolean">>,<<"false">>},
           <<"pubsub#deliver">>}},
    [{pubsub_tools,'-verify_form_values/2-fun-0-',2,
             [{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
            {line,650}]},
     {lists,foreach,2,[{file,"lists.erl"},{line,1342}]},
     {pubsub_SUITE,'-subscribe_options_test/1-fun-1-',3,
             [{file,"/home/circleci/project/big_tests/tests/pubsub_SUITE.erl"},
            {line,455}]},
     {escalus_story,story,4,
            [{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
             {line,72}]},
     {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1783}]},
     {test_server,run_test_case_eval1,6,
            [{file,"test_server.erl"},{line,1292}]},
     {test_server,run_test_case_eval,9,
            [{file,"test_server.erl"},{line,1224}]}]}}

Report log


elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / efee290
Reports root/ big
OK: 2453 / Failed: 0 / User-skipped: 616 / Auto-skipped: 0


mssql_mnesia_25 / odbc_mssql_mnesia / efee290
Reports root/ big
OK: 4199 / Failed: 1 / User-skipped: 97 / Auto-skipped: 0

inbox_extensions_SUITE:async_pools:one_to_one:mute_muted_entry_gets_unmuted
{error,
  {{assert,
     [{module,inbox_extensions_SUITE},
      {line,798},
      {expression,"escalus_pred : is_message ( Message )"},
      {expected,true},
      {value,false}]},
   [{inbox_extensions_SUITE,check_message_with_properties,4,
      [{file,
         "/home/circleci/project/big_tests/tests/inbox_extensions_SUITE.erl"},
       {line,798}]},
    {inbox_extensions_SUITE,set_inbox_properties,4,
      [{file,
         "/home/circleci/project/big_tests/tests/inbox_extensions_SUITE.erl"},
       {line,792}]},
    {inbox_extensions_SUITE,'-mute_muted_entry_gets_unmuted/1-fun-2-',2,
      [{file,
         "/home/circleci/project/big_tests/tests/inbox_extensions_SUITE.erl"},
       {line,568}]},
    {escalus_story,story,4,
      [{file,
         "/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
       {line,72}]},
    {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1782}]},
    {test_server,run_test_case_eval1,6,
      [{file,"test_server.erl"},{line,1291}]},
    {test_server,run_test_case_eval,9,
      [{file,"test_server.erl"},{line,1223}]}]}}

Report log


mssql_mnesia_25 / odbc_mssql_mnesia / efee290
Reports root/ big
OK: 4211 / Failed: 1 / User-skipped: 97 / Auto-skipped: 0

pep_SUITE:pep_tests:unsubscribe_after_presence_unsubscription
{error,
  {{badmatch,
     [{xmlel,<<"message">>,
        [{<<"from">>,
        <<"alice_unsubscribe_after_presence_unsubscription_2461@localhost">>},
         {<<"to">>,
        <<"bob_unsubscribe_after_presence_unsubscription_2461@localhost/res1">>},
         {<<"type">>,<<"headline">>}],
        [{xmlel,<<"event">>,
           [{<<"xmlns">>,
           <<"http://jabber.org/protocol/pubsub#event">>}],
           [{xmlel,<<"items">>,
            [{<<"node">>,<<"/vBoHP2UkFGPh/qvprm6qA==">>}],
            [{xmlel,<<"item">>,
               [{<<"id">>,<<"salmon">>}],
               [{xmlel,<<"entry">>,
                  [{<<"xmlns">>,
                  <<"http://www.w3.org/2005/Atom">>}],
                  []}]}]}]},
         {xmlel,<<"headers">>,
           [{<<"xmlns">>,<<"http://jabber.org/protocol/shim">>}],
           []}]}]},
   [{pep_SUITE,'-unsubscribe_after_presence_unsubscription/1-fun-0-',2,
      [{file,"/home/circleci/project/big_tests/tests/pep_SUITE.erl"},
       {line,384}]},
    {escalus_story,story,4,
      [{file,
         "/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
       {line,72}]},
    {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1782}]},
    {test_server,run_test_case_eval1,6,
      [{file,"test_server.erl"},{line,1291}]},
    {test_server,run_test_case_eval,9,
      [{file,"test_server.erl"},{line,1223}]}]}}

Report log

@chrzaszcz chrzaszcz marked this pull request as ready for review September 22, 2022 05:40
Copy link
Contributor

@arcusfelis arcusfelis left a comment

Choose a reason for hiding this comment

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

okk

@arcusfelis arcusfelis merged commit 6c3819f into master Sep 22, 2022
@arcusfelis arcusfelis deleted the fix-overlay-vars branch September 22, 2022 12:09
@chrzaszcz chrzaszcz added this to the 6.0.0 milestone Dec 12, 2022
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.

None yet

3 participants