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

Restructure the documentation #3259

Merged
merged 12 commits into from
Sep 20, 2021
Merged

Restructure the documentation #3259

merged 12 commits into from
Sep 20, 2021

Conversation

gustawlippa
Copy link
Contributor

@gustawlippa gustawlippa commented Sep 10, 2021

This PR updates the documentation so that it is more readable.

Changes:

  • The structure is updated as described in the proposal on Confluence,
  • Typos fixed, language improved, issues fixed in multiple files,
  • Added admonitions, which are these pretty things:
    obraz
  • Added an installation guide,
  • Added content tabs, which allow to choose different versions/options of described content:
    obraz
  • Renamed the folders to better reflect the content (but I don't know if exactly following the section names is needed, so for now e.g. "Extension modules" section is still inside "modules")
  • Added a logo:
    obraz

If you want to see the changes from this PR locally, follow https://squidfunk.github.io/mkdocs-material/getting-started/

@gustawlippa gustawlippa force-pushed the doc-structure-rework branch 2 times, most recently from 20339d6 to 87d68dc Compare September 15, 2021 08:09
@gustawlippa gustawlippa marked this pull request as ready for review September 16, 2021 08:11
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.

The main page stopped working, if you just enter the site it says 404.

@NelsonVides
Copy link
Collaborator

The main page stopped working, if you just enter the site it says 404.

https://nelsonvides.github.io/MongooseIM/latest/ 😕

@gustawlippa
Copy link
Contributor Author

gustawlippa commented Sep 16, 2021

Yeah, I've just noticed it as well. It seems that the "Home" page is needed in the end for links to work correctly etc. :/
Your link would work as https://nelsonvides.github.io/MongooseIM/latest/getting-started/Overview/ , but yeah, we don't want that probably. I will fix it, but this will change the whole structure... aaargh.

mkdocs.yml Outdated
- 'Getting started': 'user-guide/Getting-started.md'
- 'Release/Installation configuration': 'user-guide/release_config.md'
- 'Bootstrap scripts': 'user-guide/Bootstrap-Scripts.md'
- 'Client certificate authentication': 'user-guide/client-certificate.md'
- Tutorials:
- 'How to Build MongooseIM from source code': 'user-guide/How-to-build.md'
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd reorganise the file locations as well, now we'd have for example the How-to-build page in the Tutorials section but in the user-guide directory, which is confusing, also because their filepath is what is later shown in the URL. I think the sections in the site and the directories should match.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree, I was thinking there might have been a reason to have tutorials in the user-guide directory, so I left it as it was. But I'm glad you see it this way, will be reorganised.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've also renamed "advanced-configuration" to just "configuration"

Copy link
Member

@chrzaszcz chrzaszcz left a comment

Choose a reason for hiding this comment

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

Thanks for this huge bunch of improvements! I only found a few places where it could be improved.

README.md Outdated
* [Set up MongooseICE](https://esl.github.io/MongooseDocs/latest/user-guide/ICE_tutorial.md)
* [Build an iOS messaging app](https://esl.github.io/MongooseDocs/latest/user-guide/iOS_tutorial.md)
* [User Guide](https://esl.github.io/MongooseDocs/latest/user-guide/Features/). Learn all about how to use MongooseIM in your project. Explore its features, supported XEPs, RFCs and database backends, as well as its architecture and deployment strategies.
* [Configuration](https://esl.github.io/MongooseDocs/latest/advanced-configuration/configuration-files/). Explore available options including database backend configuration, access control lists, listener and extension modules.
Copy link
Member

@chrzaszcz chrzaszcz Sep 17, 2021

Choose a reason for hiding this comment

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

Shouldn't we drop advanced? And btw, why are these links absolute?

Copy link
Contributor Author

@gustawlippa gustawlippa Sep 17, 2021

Choose a reason for hiding this comment

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

Yes, advanced should be dropped - good catch! There are also some other broken links.
I've changed some of the links to be absolute, because:

  1. The section is "documentation highlights", so for me it seems it should lead to our hosted documentation.
  2. Some of the links were already absolute, so it was really unifying them one way or the other.

doc/getting-started/Quick-setup.md Outdated Show resolved Hide resolved
doc/getting-started/Quick-setup.md Outdated Show resolved Hide resolved
@@ -3,21 +3,22 @@
The migrations scripts for Postgres, MySQL, MSSQL can be found in the [`priv/migrations`](../../priv/migrations/) directory. Please remember to provide the existing server domain for the `server` column instead of the localhost.

### Changes in XEPs:
- `mod_last`
- Table `last` - added server column, updated primary key and indexes.

Copy link
Member

@chrzaszcz chrzaszcz Sep 17, 2021

Choose a reason for hiding this comment

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

Note: the link to priv/migrations above does not work as it references a file in the repo outside of the docs directory. Maybe replace with a GitHub link?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think so. This is the similar case to linking the documentation from README.md. These links will work in GitHub, but a full link should not cause any problems.

Copy link
Member

@chrzaszcz chrzaszcz left a comment

Choose a reason for hiding this comment

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

It looks good, I just think it would be nice to let CI run the "build docs" job by removing skip ci for the last commit before merging.

gustawlippa and others added 12 commits September 17, 2021 16:23
The introduction to MIM used to be a bit chaotic, and the "User Guide"
section was too big. Now, with the new "Getting started" section, the
first impressions should be much better.
See squidfunk.github.io/mkdocs-material/reference/admonitions
for more information.
Turns out a page at the top level of the documentation is needed for
links to work correctly. That's why we are going back to the index.md
"Home" page.
Apply suggestions from code review

Co-authored-by: Paweł Chrząszcz <[email protected]>
@mongoose-im
Copy link
Collaborator

mongoose-im commented Sep 17, 2021

small_tests_24 / small_tests / c90c618
Reports root / small


internal_mnesia_24 / internal_mnesia / c90c618
Reports root/ big
OK: 1589 / Failed: 0 / User-skipped: 290 / Auto-skipped: 0


small_tests_22 / small_tests / c90c618
Reports root / small


small_tests_23 / small_tests / c90c618
Reports root / small


dynamic_domains_24 / pgsql_mnesia / c90c618
Reports root/ big
OK: 2654 / Failed: 0 / User-skipped: 183 / Auto-skipped: 0


dynamic_domains_23 / pgsql_mnesia / c90c618
Reports root/ big
OK: 2654 / Failed: 0 / User-skipped: 183 / Auto-skipped: 0


ldap_mnesia_24 / ldap_mnesia / c90c618
Reports root/ big
OK: 1486 / Failed: 0 / User-skipped: 393 / Auto-skipped: 0


ldap_mnesia_22 / ldap_mnesia / c90c618
Reports root/ big
OK: 1486 / Failed: 0 / User-skipped: 393 / Auto-skipped: 0


ldap_mnesia_23 / ldap_mnesia / c90c618
Reports root/ big
OK: 1486 / Failed: 0 / User-skipped: 393 / Auto-skipped: 0


pgsql_mnesia_22 / pgsql_mnesia / c90c618
Reports root/ big
OK: 3064 / Failed: 0 / User-skipped: 211 / Auto-skipped: 0


pgsql_mnesia_24 / pgsql_mnesia / c90c618
Reports root/ big
OK: 3064 / Failed: 0 / User-skipped: 211 / Auto-skipped: 0


mysql_redis_24 / mysql_redis / c90c618
Reports root/ big
OK: 3047 / Failed: 1 / User-skipped: 228 / Auto-skipped: 0

s2s_SUITE:both_tls_required:simple_message
{error,
  {timeout_when_waiting_for_stanza,
    [{escalus_client,wait_for_stanza,
       [{client,<<"alice_simple_message_73.82377@fed1/res1">>,
          escalus_tcp,<0.2606.2>,
          [{event_manager,<0.2602.2>},
           {server,<<"fed1">>},
           {username,<<"alice_simple_message_73.82377">>},
           {resource,<<"res1">>}],
          [{event_client,
             [{event_manager,<0.2602.2>},
            {server,<<"fed1">>},
            {username,<<"alice_simple_message_73.82377">>},
            {resource,<<"res1">>}]},
           {resource,<<"res1">>},
           {username,<<"alice_simple_message_73.82377">>},
           {server,<<"fed1">>},
           {host,<<"localhost">>},
           {port,5242},
           {auth,{escalus_auth,auth_plain}},
           {wspath,undefined},
           {username,<<"alice_simple_message_73.82377">>},
           {server,<<"fed1">>},
           {host,<<"localhost">>},
           {port,5242},
           {password,<<"makota2">>},
           {stream_id,<<"a8614fd01712d37f">>}]},
        10000],
       [{file,
          "/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
        {line,136}]},
     {s2s_SUITE,'-simple_message/1-fun-0-',2,
       [{file,"/home/circleci/app/big_tests/tests/s2s_SUITE.erl"},
        {line,124}]},
     {escalus_story,story,4,
       [{file,
          "/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
        {line,72}]},
     {test_server,ts_tc,...

Report log


mssql_mnesia_24 / odbc_mssql_mnesia / c90c618
Reports root/ big
OK: 3096 / Failed: 11 / User-skipped: 211 / Auto-skipped: 0

carboncopy_SUITE:all:unavailable_resources_dont_get_carbons
{error,{{assertion_failed,assert_many,false,[is_presence,is_presence],[],[]},
    [{escalus_new_assert,assert_true,2,
               [{file,"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
                {line,84}]},
     {escalus_story,story,4,
            [{file,"/home/circleci/app/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

carboncopy_SUITE:all:unavailable_resources_dont_get_carbons
{error,{{assertion_failed,assert_many,false,[is_presence,is_presence],[],[]},
    [{escalus_new_assert,assert_true,2,
               [{file,"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
                {line,84}]},
     {escalus_story,story,4,
            [{file,"/home/circleci/app/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

carboncopy_SUITE:all:discovering_support
{error,{{badrpc,timeout},
    [{escalus_rpc,call_with_cookie_match,
            [mongooseim@localhost,ejabberd_admin,register,
             [<<"alicE_discovering_support_10.586654">>,
            <<"localhost">>,<<"matygrysa">>],
             3000,ejabberd],
            [{file,"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_rpc.erl"},
             {line,34}]},
     {lists,foreach,2,[{file,"lists.erl"},{line,1342}]},
     {escalus_ejabberd,create_users,2,
               [{file,"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_ejabberd.erl"},
              {line,211}]},
     {escalus_fresh,create_users,2,
            [{file,"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_fresh.erl"},
             {line,62}]},
     {escalus_fresh,story,3,
            [{file,"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_fresh.erl"},
             {line,27}]},
     {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

carboncopy_SUITE:all:enabled_single_resource_doesnt_get_carbons
{error,{{badrpc,timeout},
    [{escalus_rpc,call_with_cookie_match,
            [mongooseim@localhost,ejabberd_admin,register,
             [<<"alicE_enabled_single_resource_doesnt_get_carbons_10.595932">>,
            <<"localhost">>,<<"matygrysa">>],
             3000,ejabberd],
            [{file,"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_rpc.erl"},
             {line,34}]},
     {lists,foreach,2,[{file,"lists.erl"},{line,1342}]},
     {escalus_ejabberd,create_users,2,
               [{file,"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_ejabberd.erl"},
              {line,211}]},
     {escalus_fresh,create_users,2,
            [{file,"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_fresh.erl"},
             {line,62}]},
     {escalus_fresh,story,3,
            [{file,"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_fresh.erl"},
             {line,27}]},
     {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

carboncopy_SUITE:all:disabling_carbons
{error,{{badrpc,timeout},
    [{escalus_rpc,call_with_cookie_match,
            [mongooseim@localhost,ejabberd_admin,register,
             [<<"alicE_disabling_carbons_10.599452">>,
            <<"localhost">>,<<"matygrysa">>],
             3000,ejabberd],
            [{file,"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_rpc.erl"},
             {line,34}]},
     {lists,foreach,2,[{file,"lists.erl"},{line,1342}]},
     {escalus_ejabberd,create_users,2,
               [{file,"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_ejabberd.erl"},
              {line,211}]},
     {escalus_fresh,create_users,2,
            [{file,"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_fresh.erl"},
             {line,62}]},
     {escalus_fresh,story,3,
            [{file,"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_fresh.erl"},
             {line,27}]},
     {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

carboncopy_SUITE:all:non_enabled_clients_dont_get_sent_carbons
{error,{{badrpc,timeout},
    [{escalus_rpc,call_with_cookie_match,
            [mongooseim@localhost,ejabberd_admin,register,
             [<<"bOb_non_enabled_clients_dont_get_sent_carbons_10.580332">>,
            <<"localhost">>,<<"makrolika">>],
             3000,ejabberd],
            [{file,"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_rpc.erl"},
             {line,34}]},
     {lists,foreach,2,[{file,"lists.erl"},{line,1342}]},
     {escalus_ejabberd,create_users,2,
               [{file,"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_ejabberd.erl"},
              {line,211}]},
     {escalus_fresh,create_users,2,
            [{file,"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_fresh.erl"},
             {line,62}]},
     {escalus_fresh,story,3,
            [{file,"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_fresh.erl"},
             {line,27}]},
     {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

carboncopy_SUITE:all:dropped_client_doesnt_create_duplicate_carbons
{error,
  {{badmatch,
     {error,
       {connection_step_failed,
         {{escalus_session,authenticate},
          {client,
            <<"alicE_dropped_client_doesnt_create_duplicate_carbons_10.598019@localhost/res2">>,
            escalus_tcp,<0.11665.0>,undefined,
            [{event_client,
               [{event_manager,<0.11610.0>},
              {server,<<"localhost">>},
              {username,
                <<"alicE_dropped_client_doesnt_create_duplicate_carbons_10.598019">>},
              {resource,<<"res2">>}]},
             {resource,<<"res2">>},
             {username,
               <<"alicE_dropped_client_doesnt_create_duplicate_carbons_10.598019">>},
             {server,<<"localhost">>},
             {host,<<"localhost">>},
             {port,5222},
             {auth,{escalus_auth,auth_plain}},
             {wspath,undefined},
             {username,
               <<"alicE_dropped_client_doesnt_create_duplicate_carbons_10.598019">>},
             {server,<<"localhost">>},
             {password,<<"matygrysa">>},
             {stream_id,<<"8e8f6d3d8e9e6168">>}]},
          [{compression,[<<"zlib">>]},
           {starttls,true},
           {stream_management,true},
           {advanced_message_processing,true},
           {client_state_indication,false},
           {sasl_mechanisms,[<<"SCRAM-SHA-256">>,<<"PLAIN">>]},
           {caps,undefined}]},
         {timeout,auth_reply}}}},
   [{escalus_story,'-start_ready_clients/2-fun-0-',3,
      [{file,
   ...

Report log

carboncopy_SUITE:all:prop_forward_sent_chat_messages
{error,
  {{assertEqual,
     [{module,carboncopy_SUITE},
      {line,277},
      {expression,
        "proper : quickcheck ( proper : conjunction ( [ { PropName , Property } ] ) , [ verbose , long_result , { numtests , 3 } ] )"},
      {expected,true},
      {value,
        [[{forward_sent,
          [{4,<<"Now, fair Hippolyta, our nuptial hour">>}]}]]}]},
   [{carboncopy_SUITE,run_prop,2,
      [{file,"/home/circleci/app/big_tests/tests/carboncopy_SUITE.erl"},
       {line,277}]},
    {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

carboncopy_SUITE:all:prop_forward_received_chat_messages
{error,
  {{assertEqual,
     [{module,carboncopy_SUITE},
      {line,277},
      {expression,
        "proper : quickcheck ( proper : conjunction ( [ { PropName , Property } ] ) , [ verbose , long_result , { numtests , 3 } ] )"},
      {expected,true},
      {value,
        [[{forward_received,
          [{2,<<"Like to a step-dame or a dowager">>}]}]]}]},
   [{carboncopy_SUITE,run_prop,2,
      [{file,"/home/circleci/app/big_tests/tests/carboncopy_SUITE.erl"},
       {line,277}]},
    {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

carboncopy_SUITE:all:prop_normal_routing_to_bare_jid
{error,
  {{assertEqual,
     [{module,carboncopy_SUITE},
      {line,277},
      {expression,
        "proper : quickcheck ( proper : conjunction ( [ { PropName , Property } ] ) , [ verbose , long_result , { numtests , 3 } ] )"},
      {expected,true},
      {value,
        [[{normal_routing,
          [{3,<<"Long withering out a young man revenue.">>}]}]]}]},
   [{carboncopy_SUITE,run_prop,2,
      [{file,"/home/circleci/app/big_tests/tests/carboncopy_SUITE.erl"},
       {line,277}]},
    {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

jingle_SUITE:all:resp_4xx_from_sip_proxy_results_in_session_terminate
{error,
  {{assertion_failed,assert,is_iq_result,
     {xmlel,<<"iq">>,
       [{<<"from">>,<<"error.480@localhost">>},
        {<<"to">>,
         <<"alice_resp_4xx_from_sip_proxy_results_in_session_terminate_3.980023@localhost/res1">>},
        {<<"id">>,<<"0020894e-334b-4d89-b617-75e61b7b5601">>},
        {<<"type">>,<<"set">>}],
       [{xmlel,<<"jingle">>,
          [{<<"xmlns">>,<<"urn:xmpp:jingle:1">>},
           {<<"action">>,<<"session-terminate">>},
           {<<"sid">>,<<"9b8c55ba-2333-4f58-a5de-bf72b8597de2">>}],
          [{xmlel,<<"reason">>,[],
             [{xmlel,<<"general-error">>,[],[]},
            {xmlel,<<"sip-error">>,
              [{<<"code">>,<<"480">>}],
              [{xmlcdata,<<"Temporarily Unavailable">>}]}]}]}]},
     "<iq from='error.480@localhost' to='alice_resp_4xx_from_sip_proxy_results_in_session_terminate_3.980023@localhost/res1' id='0020894e-334b-4d89-b617-75e61b7b5601' type='set'><jingle xmlns='urn:xmpp:jingle:1' action='session-terminate' sid='9b8c55ba-2333-4f58-a5de-bf72b8597de2'><reason><general-error/><sip-error code='480'>Temporarily Unavailable</sip-error></reason></jingle></iq>"},
   [{escalus_new_assert,assert_true,2,
      [{file,
         "/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
       {line,84}]},
    {jingle_SUITE,send_initiate_and_wait_for_first_iq_set,2,
      [{file,"/home/circleci/app/big_tests/tests/jingle_SUITE.erl"},
       {line,393}]},
    {jingle_SUITE,
      '-resp_...

Report log


pgsql_mnesia_23 / pgsql_mnesia / c90c618
Reports root/ big
OK: 3062 / Failed: 2 / User-skipped: 211 / Auto-skipped: 0

amp_big_SUITE:offline:offline_success:error_deliver_to_offline_user_test
{error,{{badmatch,undefined},
    [{amp_big_SUITE,assert_amp_error_with_full_amp,5,
            [{file,"/home/circleci/app/big_tests/tests/amp_big_SUITE.erl"},
             {line,837}]},
     {escalus_story,story,4,
            [{file,"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
             {line,72}]},
     {amp_big_SUITE,error_deliver_to_offline_user_test,1,
            [{file,"/home/circleci/app/big_tests/tests/amp_big_SUITE.erl"},
             {line,577}]},
     {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1784}]},
     {test_server,run_test_case_eval1,6,
            [{file,"test_server.erl"},{line,1293}]},
     {test_server,run_test_case_eval,9,
            [{file,"test_server.erl"},{line,1225}]}]}}

Report log

amp_big_SUITE:offline:offline_success:error_deliver_to_offline_user_test
{error,
  {{assertion_failed,assert,is_presence,
     {xmlel,<<"message">>,
       [{<<"from">>,<<"localhost">>},
        {<<"to">>,
         <<"alicE_error_deliver_to_offline_user_test_27.665422@localhost/res1">>},
        {<<"id">>,<<"537089f597fcc7b6c16adbaa9c4219dd">>},
        {<<"type">>,<<"error">>}],
       [{xmlel,<<"error">>,
          [{<<"type">>,<<"modify">>},{<<"code">>,<<"500">>}],
          [{xmlel,<<"undefined-condition">>,
             [{<<"xmlns">>,
             <<"urn:ietf:params:xml:ns:xmpp-stanzas">>}],
             []},
           {xmlel,<<"failed-rules">>,
             [{<<"xmlns">>,<<"http://jabber.org/protocol/amp">>}],
             [{xmlel,<<"rule">>,
              [{<<"condition">>,<<"deliver">>},
               {<<"value">>,<<"stored">>},
               {<<"action">>,<<"error">>}],
              []}]}]},
        {xmlel,<<"amp">>,
          [{<<"xmlns">>,<<"http://jabber.org/protocol/amp">>},
           {<<"status">>,<<"error">>},
           {<<"to">>,
          <<"bOb_error_deliver_to_offline_user_test_27.665422@localhost">>},
           {<<"from">>,
          <<"alicE_error_deliver_to_offline_user_test_27.665422@localhost/res1">>}],
          [{xmlel,<<"rule">>,
             [{<<"condition">>,<<"deliver">>},
            {<<"value">>,<<"stored">>},
            {<<"action">>,<<"error">>}],
             []}]}]},
     "<message from='localhost' to='alicE_error_deliver_to_offline_user_test_27.665422@localhost/res1' id='537089f597fcc7b6c16adbaa9c4219dd...

Report log


riak_mnesia_24 / riak_mnesia / c90c618
Reports root/ big
OK: 1709 / Failed: 0 / User-skipped: 319 / Auto-skipped: 0


pgsql_mnesia_23 / pgsql_mnesia / c90c618
Reports root/ big
OK: 3082 / Failed: 1 / User-skipped: 211 / Auto-skipped: 0

jingle_SUITE:all:resp_4xx_from_sip_proxy_results_in_session_terminate
{error,
  {{assertion_failed,assert,is_iq_result,
     {xmlel,<<"iq">>,
       [{<<"from">>,<<"error.480@localhost">>},
        {<<"to">>,
         <<"alice_resp_4xx_from_sip_proxy_results_in_session_terminate_37.398898@localhost/res1">>},
        {<<"id">>,<<"94841c57-f05f-4344-a50c-2f9c3dd20afe">>},
        {<<"type">>,<<"set">>}],
       [{xmlel,<<"jingle">>,
          [{<<"xmlns">>,<<"urn:xmpp:jingle:1">>},
           {<<"action">>,<<"session-terminate">>},
           {<<"sid">>,<<"f074b511-3c19-467b-8884-46328037d114">>}],
          [{xmlel,<<"reason">>,[],
             [{xmlel,<<"general-error">>,[],[]},
            {xmlel,<<"sip-error">>,
              [{<<"code">>,<<"480">>}],
              [{xmlcdata,<<"Temporarily Unavailable">>}]}]}]}]},
     "<iq from='error.480@localhost' to='alice_resp_4xx_from_sip_proxy_results_in_session_terminate_37.398898@localhost/res1' id='94841c57-f05f-4344-a50c-2f9c3dd20afe' type='set'><jingle xmlns='urn:xmpp:jingle:1' action='session-terminate' sid='f074b511-3c19-467b-8884-46328037d114'><reason><general-error/><sip-error code='480'>Temporarily Unavailable</sip-error></reason></jingle></iq>"},
   [{escalus_new_assert,assert_true,2,
      [{file,
         "/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
       {line,84}]},
    {jingle_SUITE,send_initiate_and_wait_for_first_iq_set,2,
      [{file,"/home/circleci/app/big_tests/tests/jingle_SUITE.erl"},
       {line,393}]},
    {jingle_SUITE,
      '-res...

Report log


mssql_mnesia_24 / odbc_mssql_mnesia / c90c618
Reports root/ big
OK: 3064 / Failed: 0 / User-skipped: 211 / Auto-skipped: 0

@codecov
Copy link

codecov bot commented Sep 17, 2021

Codecov Report

Merging #3259 (c90c618) into master (28bf705) will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3259      +/-   ##
==========================================
- Coverage   80.25%   80.24%   -0.01%     
==========================================
  Files         398      398              
  Lines       32559    32559              
==========================================
- Hits        26131    26128       -3     
- Misses       6428     6431       +3     
Impacted Files Coverage Δ
src/elasticsearch/mongoose_elasticsearch.erl 76.92% <0.00%> (-7.70%) ⬇️
src/event_pusher/mod_event_pusher_sns.erl 84.21% <0.00%> (-5.27%) ⬇️
...c/global_distrib/mod_global_distrib_server_mgr.erl 74.57% <0.00%> (-2.26%) ⬇️
src/mam/mod_mam_elasticsearch_arch.erl 85.08% <0.00%> (-1.76%) ⬇️
src/rdbms/mongoose_rdbms.erl 60.88% <0.00%> (-0.81%) ⬇️
src/ejabberd_sm.erl 83.93% <0.00%> (-0.66%) ⬇️
src/ejabberd_c2s.erl 89.00% <0.00%> (-0.30%) ⬇️
src/ejabberd_s2s_out.erl 62.64% <0.00%> (+0.22%) ⬆️
src/mod_roster.erl 79.41% <0.00%> (+0.24%) ⬆️
src/mod_muc_log.erl 78.14% <0.00%> (+0.25%) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 28bf705...c90c618. Read the comment docs.

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.

I'd have kinda preferred relative links, the CI job would detect if any link doesn't exist. I'm not sure how mkdocs does it for absolute links, if it recognises them as internal or external resources, it might be that it won't throw a warning for non-existing links.

Otherwise, all seems great to me :)

@gustawlippa
Copy link
Contributor Author

In the "normal" documentation - of course, there is no need for absolute links. MkDocs does work relatively well with relative links, although it still gets confused and doesn't warn about wrong links sometimes (I fixed a bunch). For example in the priv/migrations link that Paweł noticed - no notice from CI, even though it is relative, and this is already live here.
The only places where I changed relative to absolute links are in README.md, which is not covered by CI as far as I can tell in any way. I would argue these should point to the documentation that we host, not to a file on GH - as do links literally a few lines above. The other thing is what Paweł pointed out, and it is the other way around - there should be a link from our docs to a specific directory in our repository. If you think so, it can point to a specific commit instead of master, but come on, I don't think this directory will move in the forseeable future, and in this case somebody will have more pressing problems when migrating from versions a few years back than one broken link in the docs.

@NelsonVides
Copy link
Collaborator

In the "normal" documentation - of course, there is no need for absolute links. MkDocs does work relatively well with relative links, although it still gets confused and doesn't warn about wrong links sometimes (I fixed a bunch). For example in the priv/migrations link that Paweł noticed - no notice from CI, even though it is relative, and this is already live here.
The only places where I changed relative to absolute links are in README.md, which is not covered by CI as far as I can tell in any way. I would argue these should point to the documentation that we host, not to a file on GH - as do links literally a few lines above. The other thing is what Paweł pointed out, and it is the other way around - there should be a link from our docs to a specific directory in our repository. If you think so, it can point to a specific commit instead of master, but come on, I don't think this directory will move in the forseeable future, and in this case somebody will have more pressing problems when migrating from versions a few years back than one broken link in the docs.

Ah, only on the README.md, right, got it wrong, I was reading your comments and I thought you meant globally. Good way that way :)

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.

LGTM

@vkatsuba vkatsuba merged commit 3c5df56 into master Sep 20, 2021
@vkatsuba vkatsuba deleted the doc-structure-rework branch September 20, 2021 16:15
@gustawlippa gustawlippa mentioned this pull request Sep 21, 2021
@Premwoik Premwoik added this to the 5.0.0 milestone Oct 5, 2021
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.

6 participants