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

Don't override included overlay vars #3794

Merged
merged 4 commits into from
Oct 7, 2022
Merged

Conversation

chrzaszcz
Copy link
Member

@chrzaszcz chrzaszcz commented Oct 5, 2022

There is an issue with the overriding logic in relx: included vars override previously defined ones, but there is no simple
way of overriding the included vars other than including another file. This way making the dev releases resulted in incorrect vars.
Big tests succeeded because they had their own overriding logic.

This change ensures that no vars are overridden. The included file is always at the bottom, and in this case both relx and our templating scripts work the same (included vars override the previous ones).

Another changes:

  • Avoid specifying defaults explicitly - they are documented, and the user could define them with different values if necessary.
  • Rename mim2 node for consistency.

Possible further improvements:

  • Improve relx with a more intuitive and useful overriding logic.
  • Adjust our templating scripts to work like relx - I am reluctant to do so, because our scripts are more intuitive, and the logic extends nicely to merging multiple files, what we do for big tests.

@mongoose-im
Copy link
Collaborator

mongoose-im commented Oct 5, 2022

ldap_mnesia_24 / ldap_mnesia / 74465ea
Reports root


pgsql_mnesia_24 / pgsql_mnesia / 74465ea
Reports root


riak_mnesia_24 / riak_mnesia / 74465ea
Reports root


dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / 74465ea
Reports root


internal_mnesia_25 / internal_mnesia / 74465ea
Reports root


mysql_redis_25 / mysql_redis / 74465ea
Reports root


ldap_mnesia_25 / ldap_mnesia / 74465ea
Reports root


dynamic_domains_mysql_redis_25 / mysql_redis / 74465ea
Reports root


elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / 74465ea
Reports root


dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / 74465ea
Reports root


mssql_mnesia_25 / odbc_mssql_mnesia / 74465ea
Reports root


pgsql_mnesia_25 / pgsql_mnesia / 74465ea
Reports root


small_tests_24 / small_tests / 74465ea
Reports root / small


small_tests_25 / small_tests / 74465ea
Reports root / small

@codecov
Copy link

codecov bot commented Oct 5, 2022

Codecov Report

Base: 82.92% // Head: 82.88% // Decreases project coverage by -0.04% ⚠️

Coverage data is based on head (9530b2a) compared to base (6748ca4).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3794      +/-   ##
==========================================
- Coverage   82.92%   82.88%   -0.05%     
==========================================
  Files         529      529              
  Lines       33810    33810              
==========================================
- Hits        28038    28022      -16     
- Misses       5772     5788      +16     
Impacted Files Coverage Δ
src/event_pusher/mod_event_pusher_sns.erl 82.19% <0.00%> (-15.07%) ⬇️
src/mod_roster_riak.erl 96.92% <0.00%> (-1.54%) ⬇️
src/mod_roster.erl 78.70% <0.00%> (-0.72%) ⬇️
src/rdbms/mongoose_rdbms.erl 66.31% <0.00%> (-0.71%) ⬇️
src/pubsub/mod_pubsub_db_mnesia.erl 92.40% <0.00%> (-0.43%) ⬇️
src/mod_muc_room.erl 78.45% <0.00%> (-0.23%) ⬇️
src/ejabberd_c2s.erl 89.23% <0.00%> (-0.08%) ⬇️
src/mod_muc_log.erl 62.82% <0.00%> (ø)
src/mam/mod_mam_elasticsearch_arch.erl 88.39% <0.00%> (+1.78%) ⬆️
...rc/smart_markers/mod_smart_markers_rdbms_async.erl 95.83% <0.00%> (+4.16%) ⬆️
... and 2 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.

@chrzaszcz chrzaszcz force-pushed the vars-without-overriding branch from 74465ea to b3dad82 Compare October 5, 2022 07:43
@mongoose-im
Copy link
Collaborator

mongoose-im commented Oct 5, 2022

small_tests_24 / small_tests / b3dad82
Reports root / small


small_tests_25 / small_tests / b3dad82
Reports root / small


dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / b3dad82
Reports root/ big
OK: 3833 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


ldap_mnesia_24 / ldap_mnesia / b3dad82
Reports root/ big
OK: 1991 / Failed: 0 / User-skipped: 748 / Auto-skipped: 0


ldap_mnesia_25 / ldap_mnesia / b3dad82
Reports root/ big
OK: 1991 / Failed: 0 / User-skipped: 748 / Auto-skipped: 0


dynamic_domains_mysql_redis_25 / mysql_redis / b3dad82
Reports root/ big
OK: 3806 / Failed: 1 / User-skipped: 114 / Auto-skipped: 0

muc_SUITE:hibernation:hibernated_room_can_be_queried_for_archive
{error,{{assertion_failed,assert,is_groupchat_message,
              [<<"Restorable message">>],
              undefined,"undefined"},
    [{escalus_new_assert,assert_true,2,
               [{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
                {line,84}]},
     {muc_SUITE,wait_for_mam_result,3,
          [{file,"/home/circleci/project/big_tests/tests/muc_SUITE.erl"},
           {line,4394}]},
     {muc_SUITE,'-hibernated_room_can_be_queried_for_archive/1-fun-0-',3,
          [{file,"/home/circleci/project/big_tests/tests/muc_SUITE.erl"},
           {line,4130}]},
     {escalus_story,story,4,
            [{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
             {line,72}]},
     {muc_SUITE,hibernated_room_can_be_queried_for_archive,1,
          [{file,"/home/circleci/project/big_tests/tests/muc_SUITE.erl"},
           {line,4126}]},
     {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


dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / b3dad82
Reports root/ big
OK: 3833 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


pgsql_mnesia_24 / pgsql_mnesia / b3dad82
Reports root/ big
OK: 4207 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


internal_mnesia_25 / internal_mnesia / b3dad82
Reports root/ big
OK: 2112 / Failed: 0 / User-skipped: 627 / Auto-skipped: 0


elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / b3dad82
Reports root/ big
OK: 2452 / Failed: 0 / User-skipped: 622 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / b3dad82
Reports root/ big
OK: 3833 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


pgsql_mnesia_25 / pgsql_mnesia / b3dad82
Reports root/ big
OK: 4207 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


riak_mnesia_24 / riak_mnesia / b3dad82
Reports root/ big
OK: 2292 / Failed: 0 / User-skipped: 614 / Auto-skipped: 0


mysql_redis_25 / mysql_redis / b3dad82
Reports root/ big
OK: 4193 / Failed: 0 / User-skipped: 111 / Auto-skipped: 0


mssql_mnesia_25 / odbc_mssql_mnesia / b3dad82
Reports root/ big
OK: 4218 / 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_2463@localhost">>},
         {<<"to">>,
        <<"bob_unsubscribe_after_presence_unsubscription_2463@localhost/res1">>},
         {<<"type">>,<<"headline">>}],
        [{xmlel,<<"event">>,
           [{<<"xmlns">>,
           <<"http://jabber.org/protocol/pubsub#event">>}],
           [{xmlel,<<"items">>,
            [{<<"node">>,<<"UfJ/d2UN3mqGP0OE3FLsWw==">>}],
            [{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

@mongoose-im
Copy link
Collaborator

mongoose-im commented Oct 5, 2022

small_tests_24 / small_tests / 9000f5a
Reports root / small


small_tests_25 / small_tests / 9000f5a
Reports root / small


ldap_mnesia_24 / ldap_mnesia / 9000f5a
Reports root/ big
OK: 1991 / Failed: 0 / User-skipped: 748 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 9000f5a
Reports root/ big
OK: 3833 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


ldap_mnesia_25 / ldap_mnesia / 9000f5a
Reports root/ big
OK: 1991 / Failed: 0 / User-skipped: 748 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / 9000f5a
Reports root/ big
OK: 3833 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


dynamic_domains_mysql_redis_25 / mysql_redis / 9000f5a
Reports root/ big
OK: 3807 / Failed: 0 / User-skipped: 114 / Auto-skipped: 0


internal_mnesia_25 / internal_mnesia / 9000f5a
Reports root/ big
OK: 2112 / Failed: 0 / User-skipped: 627 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / 9000f5a
Reports root/ big
OK: 3833 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / 9000f5a
Reports root/ big
OK: 2452 / Failed: 0 / User-skipped: 622 / Auto-skipped: 0


pgsql_mnesia_24 / pgsql_mnesia / 9000f5a
Reports root/ big
OK: 4207 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


pgsql_mnesia_25 / pgsql_mnesia / 9000f5a
Reports root/ big
OK: 4207 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


mysql_redis_25 / mysql_redis / 9000f5a
Reports root/ big
OK: 4193 / Failed: 0 / User-skipped: 111 / Auto-skipped: 0


mssql_mnesia_25 / odbc_mssql_mnesia / 9000f5a
Reports root/ big
OK: 4206 / 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


riak_mnesia_24 / riak_mnesia / 9000f5a
Reports root/ big
OK: 2292 / Failed: 0 / User-skipped: 614 / Auto-skipped: 0


mssql_mnesia_25 / odbc_mssql_mnesia / 9000f5a
Reports root/ big
OK: 4206 / Failed: 1 / User-skipped: 97 / Auto-skipped: 0

rest_client_SUITE:roster:add_contact_and_invite
{error,
  {timeout_when_waiting_for_stanza,
    [{escalus_client,wait_for_stanza,
       [{client,<<"bob_add_contact_and_invite_2840@localhost/res1">>,
          escalus_tcp,<0.29887.2>,
          [{event_manager,<0.29847.2>},
           {server,<<"localhost">>},
           {username,<<"bOb_add_contact_and_invite_2840">>},
           {resource,<<"res1">>}],
          [{event_client,
             [{event_manager,<0.29847.2>},
            {server,<<"localhost">>},
            {username,<<"bOb_add_contact_and_invite_2840">>},
            {resource,<<"res1">>}]},
           {resource,<<"res1">>},
           {username,<<"bob_add_contact_and_invite_2840">>},
           {server,<<"localhost">>},
           {host,<<"localhost">>},
           {port,5222},
           {auth,{escalus_auth,auth_plain}},
           {wspath,undefined},
           {username,<<"bOb_add_contact_and_invite_2840">>},
           {server,<<"localhost">>},
           {password,<<"makrolika">>},
           {stream_id,<<"4c4948c1ec0fbd13">>}]},
        5000],
       [{file,
          "/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
        {line,136}]},
     {rest_client_SUITE,'-add_contact_and_invite/1-fun-0-',2,
       [{file,
          "/home/circleci/project/big_tests/tests/rest_client_SUITE.erl"},
        {line,1098}]},
     {escalus_story,story,4,
       [{file,
          "/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
        {line,72}...

Report log


mssql_mnesia_25 / odbc_mssql_mnesia / 9000f5a
Reports root/ big
OK: 4207 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0

@chrzaszcz chrzaszcz force-pushed the vars-without-overriding branch from 9000f5a to 71ebcc8 Compare October 5, 2022 11:59
@mongoose-im
Copy link
Collaborator

mongoose-im commented Oct 5, 2022

small_tests_24 / small_tests / 71ebcc8
Reports root / small


small_tests_25 / small_tests / 71ebcc8
Reports root / small


ldap_mnesia_24 / ldap_mnesia / 71ebcc8
Reports root/ big
OK: 1991 / Failed: 0 / User-skipped: 748 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 71ebcc8
Reports root/ big
OK: 3833 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


dynamic_domains_mysql_redis_25 / mysql_redis / 71ebcc8
Reports root/ big
OK: 3807 / Failed: 0 / User-skipped: 114 / Auto-skipped: 0


ldap_mnesia_25 / ldap_mnesia / 71ebcc8
Reports root/ big
OK: 1991 / Failed: 0 / User-skipped: 748 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / 71ebcc8
Reports root/ big
OK: 3833 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


internal_mnesia_25 / internal_mnesia / 71ebcc8
Reports root/ big
OK: 2112 / Failed: 0 / User-skipped: 627 / Auto-skipped: 0


elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / 71ebcc8
Reports root/ big
OK: 2452 / Failed: 0 / User-skipped: 622 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / 71ebcc8
Reports root/ big
OK: 3833 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


pgsql_mnesia_24 / pgsql_mnesia / 71ebcc8
Reports root/ big
OK: 4207 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


pgsql_mnesia_25 / pgsql_mnesia / 71ebcc8
Reports root/ big
OK: 4207 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


riak_mnesia_24 / riak_mnesia / 71ebcc8
Reports root/ big
OK: 2292 / Failed: 0 / User-skipped: 614 / Auto-skipped: 0


mssql_mnesia_25 / odbc_mssql_mnesia / 71ebcc8
Reports root/ big
OK: 4206 / Failed: 1 / User-skipped: 97 / Auto-skipped: 0

muc_SUITE:hibernation:hibernated_room_can_be_queried_for_archive
{error,{{assertion_failed,assert,is_groupchat_message,
              [<<"Restorable message">>],
              undefined,"undefined"},
    [{escalus_new_assert,assert_true,2,
               [{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
                {line,84}]},
     {muc_SUITE,wait_for_mam_result,3,
          [{file,"/home/circleci/project/big_tests/tests/muc_SUITE.erl"},
           {line,4394}]},
     {muc_SUITE,'-hibernated_room_can_be_queried_for_archive/1-fun-0-',3,
          [{file,"/home/circleci/project/big_tests/tests/muc_SUITE.erl"},
           {line,4130}]},
     {escalus_story,story,4,
            [{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
             {line,72}]},
     {muc_SUITE,hibernated_room_can_be_queried_for_archive,1,
          [{file,"/home/circleci/project/big_tests/tests/muc_SUITE.erl"},
           {line,4126}]},
     {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


mysql_redis_25 / mysql_redis / 71ebcc8
Reports root/ big
OK: 4193 / Failed: 0 / User-skipped: 111 / Auto-skipped: 0


mssql_mnesia_25 / odbc_mssql_mnesia / 71ebcc8
Reports root/ big
OK: 4207 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0

@chrzaszcz chrzaszcz force-pushed the vars-without-overriding branch from 71ebcc8 to f5a7082 Compare October 5, 2022 14:47
They are documented, and the user could define them
with different values if necessary.
There is an issue with the overriding logic in relx:
included vars override previously defined ones, but there is no simple
way of overriding the included vars other than including another file.
This way making the dev releases resulted in incorrect vars.
Big tests succeeded because they had their own overriding logic.

It seems that we could do without overriding entirely,
and this change shows that the resulting files are actually more
straightforward.
@chrzaszcz chrzaszcz force-pushed the vars-without-overriding branch from f5a7082 to 9530b2a Compare October 5, 2022 14:51
@mongoose-im
Copy link
Collaborator

mongoose-im commented Oct 5, 2022

small_tests_24 / small_tests / 9530b2a
Reports root / small


small_tests_25 / small_tests / 9530b2a
Reports root / small


ldap_mnesia_24 / ldap_mnesia / 9530b2a
Reports root/ big
OK: 1991 / Failed: 0 / User-skipped: 748 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 9530b2a
Reports root/ big
OK: 3833 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


ldap_mnesia_25 / ldap_mnesia / 9530b2a
Reports root/ big
OK: 1991 / Failed: 0 / User-skipped: 748 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / 9530b2a
Reports root/ big
OK: 3833 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


dynamic_domains_mysql_redis_25 / mysql_redis / 9530b2a
Reports root/ big
OK: 3807 / Failed: 0 / User-skipped: 114 / Auto-skipped: 0


internal_mnesia_25 / internal_mnesia / 9530b2a
Reports root/ big
OK: 2112 / Failed: 0 / User-skipped: 627 / Auto-skipped: 0


elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / 9530b2a
Reports root/ big
OK: 2452 / Failed: 0 / User-skipped: 622 / Auto-skipped: 0


pgsql_mnesia_24 / pgsql_mnesia / 9530b2a
Reports root/ big
OK: 4207 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / 9530b2a
Reports root/ big
OK: 3833 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


pgsql_mnesia_25 / pgsql_mnesia / 9530b2a
Reports root/ big
OK: 4207 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


riak_mnesia_24 / riak_mnesia / 9530b2a
Reports root/ big
OK: 2292 / Failed: 0 / User-skipped: 614 / Auto-skipped: 0


mysql_redis_25 / mysql_redis / 9530b2a
Reports root/ big
OK: 4193 / Failed: 0 / User-skipped: 111 / Auto-skipped: 0


mssql_mnesia_25 / odbc_mssql_mnesia / 9530b2a
Reports root/ big
OK: 4218 / 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_2489@localhost">>},
         {<<"to">>,
        <<"bob_unsubscribe_after_presence_unsubscription_2489@localhost/res1">>},
         {<<"type">>,<<"headline">>}],
        [{xmlel,<<"event">>,
           [{<<"xmlns">>,
           <<"http://jabber.org/protocol/pubsub#event">>}],
           [{xmlel,<<"items">>,
            [{<<"node">>,<<"e00wGw57HmOllUNooiKgoA==">>}],
            [{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 October 5, 2022 15:27
Copy link
Collaborator

@NelsonVides NelsonVides left a comment

Choose a reason for hiding this comment

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

Not sure I understand correctly. You moved the ./vars-toml.config file to the bottom, so variables defined there will override those in the per-node config, right? But in that case ./vars-toml.config defines for example node_name, and c2s_port, so it'd override those defined in all other configs. Am I understanding something the other way around? 🤔

@chrzaszcz
Copy link
Member Author

chrzaszcz commented Oct 6, 2022

The point of this PR is to avoid overriding variables - nothing is overridden now.
Moving the included file to the bottom is mostly for clarity.

But in that case ./vars-toml.config defines for example node_name, and c2s_port, so it'd override those defined in all other configs.

After the change ./vars-toml.config defines neither node_name nor c2s_port.

Copy link
Collaborator

@NelsonVides NelsonVides left a comment

Choose a reason for hiding this comment

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

Excellent! I got confused trying to understand how it was working before and how it does in this PR, it's all clear now 😄

@NelsonVides NelsonVides merged commit ab65045 into master Oct 7, 2022
@NelsonVides NelsonVides deleted the vars-without-overriding branch October 7, 2022 07:54
@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.

3 participants