-
Notifications
You must be signed in to change notification settings - Fork 428
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
Remove the ETS table from gen_mod #3484
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3484 +/- ##
==========================================
+ Coverage 80.92% 80.95% +0.02%
==========================================
Files 416 416
Lines 32352 32333 -19
==========================================
- Hits 26180 26174 -6
+ Misses 6172 6159 -13
Continue to review full report at Codecov.
|
This comment has been minimized.
This comment has been minimized.
7c53962
to
4d96bd1
Compare
This comment has been minimized.
This comment has been minimized.
4d96bd1
to
4c97d94
Compare
This comment has been minimized.
This comment has been minimized.
4c97d94
to
c5e037f
Compare
This comment has been minimized.
This comment has been minimized.
c5e037f
to
ac19d4a
Compare
This comment has been minimized.
This comment has been minimized.
ac19d4a
to
2680ca3
Compare
This comment has been minimized.
This comment has been minimized.
2680ca3
to
92a641f
Compare
This comment has been minimized.
This comment has been minimized.
d1f9866
to
cd245ff
Compare
92a641f
to
e448b7c
Compare
This comment has been minimized.
This comment has been minimized.
Motivation: data duplication - module configuration is already stored in mongoose_config - if a module is mongoose_config, it is running (also in tests), because mongoose_modules takes care of this consistency. Main changes apart form the ETS table removal: - Removed check for already_started - it is already done by mongoose_modules and gen_mod cannot be used directly anyway. - Added assertions for is_loaded - to be sure that the state is consistent at this point. - 'loaded_modules_with_opts' returns a map
- There is no 'already_started' error anymore - start/stop_module throw errors if the module is not loaded - start/stop_module logs module errors and re-throws them
e448b7c
to
e08b22e
Compare
This comment has been minimized.
This comment has been minimized.
- replace_modules accepts a map instead of a list for less conversions. - start/stop_module results are not matched as they can only return {ok, term()) and ok, respectively.
e08b22e
to
fc28e62
Compare
small_tests_24 / small_tests / fc28e62 small_tests_23 / small_tests / fc28e62 dynamic_domains_mysql_redis_24 / mysql_redis / fc28e62 dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / fc28e62 dynamic_domains_pgsql_mnesia_23 / pgsql_mnesia / fc28e62 dynamic_domains_mssql_mnesia_24 / odbc_mssql_mnesia / fc28e62 ldap_mnesia_24 / ldap_mnesia / fc28e62 ldap_mnesia_23 / ldap_mnesia / fc28e62 internal_mnesia_24 / internal_mnesia / fc28e62 pep_SUITE:pep_tests:unsubscribe_after_presence_unsubscription{error,
{{badmatch,
[{xmlel,<<"message">>,
[{<<"from">>,
<<"alice_unsubscribe_after_presence_unsubscription_965@localhost">>},
{<<"to">>,
<<"bob_unsubscribe_after_presence_unsubscription_965@localhost/res1">>},
{<<"type">>,<<"headline">>}],
[{xmlel,<<"event">>,
[{<<"xmlns">>,
<<"http://jabber.org/protocol/pubsub#event">>}],
[{xmlel,<<"items">>,
[{<<"node">>,<<"/zgJEyw+e5/DPEBfASg89w==">>}],
[{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,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}]}]}} pgsql_mnesia_23 / pgsql_mnesia / fc28e62 pgsql_mnesia_24 / pgsql_mnesia / fc28e62 mssql_mnesia_24 / odbc_mssql_mnesia / fc28e62 elasticsearch_and_cassandra_24 / elasticsearch_and_cassandra_mnesia / fc28e62 mysql_redis_24 / mysql_redis / fc28e62 riak_mnesia_24 / riak_mnesia / fc28e62 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉
Before:
mongoose_config
(persistent terms) andgen_mod
(ETS).mongoose_modules
and one ingen_mod
.gen_mod
directly to start a module in the shell, but it was still possible.After:
mongoose_config
.mongoose_modules
.gen_mod
because the config is missing, you should usemongoose_modules
instead.Other changes:
mongoose_modules
andgen_mod
API.