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

Make commit hash in system status fail-safe #4262

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

chrzaszcz
Copy link
Member

@chrzaszcz chrzaszcz commented Apr 11, 2024

This hotfix is needed to make the build for the 6.2.1 release pass. The tests were failing only for GH tags, because the commit hash was not available.

For now - default to an empty string. We could make the field optional in the future to clean this up.

Big tests checked manually with and without the commit hash.

This hotfix is needed to make the build for the 6.2.1 release pass.
The tests were failing only for GH tags, because the commit hash was
not available.

For now - default to an empty string (as binary, to avoid '[]' output).
We could make the field optional in the future to clean this up.
@mongoose-im
Copy link
Collaborator

mongoose-im commented Apr 11, 2024

elasticsearch_and_cassandra_26 / elasticsearch_and_cassandra_mnesia / 8796d69
Reports root/ big
OK: 437 / Failed: 0 / User-skipped: 43 / Auto-skipped: 0


small_tests_25 / small_tests / 8796d69
Reports root / small


small_tests_26 / small_tests / 8796d69
Reports root / small


small_tests_26_arm64 / small_tests / 8796d69
Reports root / small


ldap_mnesia_25 / ldap_mnesia / 8796d69
Reports root/ big
OK: 2284 / Failed: 0 / User-skipped: 897 / Auto-skipped: 0


dynamic_domains_mysql_redis_26 / mysql_redis / 8796d69
Reports root/ big
OK: 4508 / Failed: 0 / User-skipped: 144 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / 8796d69
Reports root/ big
OK: 4541 / Failed: 0 / User-skipped: 111 / Auto-skipped: 0


ldap_mnesia_26 / ldap_mnesia / 8796d69
Reports root/ big
OK: 2284 / Failed: 0 / User-skipped: 897 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_26 / pgsql_mnesia / 8796d69
Reports root/ big
OK: 4541 / Failed: 0 / User-skipped: 111 / Auto-skipped: 0


internal_mnesia_26 / internal_mnesia / 8796d69
Reports root/ big
OK: 2424 / Failed: 0 / User-skipped: 757 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_26 / odbc_mssql_mnesia / 8796d69
Reports root/ big
OK: 4538 / Failed: 0 / User-skipped: 114 / Auto-skipped: 0


pgsql_mnesia_25 / pgsql_mnesia / 8796d69
Reports root/ big
OK: 4930 / Failed: 0 / User-skipped: 118 / Auto-skipped: 0


pgsql_cets_26 / pgsql_cets / 8796d69
Reports root/ big
OK: 4456 / Failed: 0 / User-skipped: 178 / Auto-skipped: 0


pgsql_mnesia_26 / pgsql_mnesia / 8796d69
Reports root/ big
OK: 4930 / Failed: 0 / User-skipped: 118 / Auto-skipped: 0


mysql_redis_26 / mysql_redis / 8796d69
Reports root/ big
OK: 4909 / Failed: 0 / User-skipped: 139 / Auto-skipped: 0


mssql_mnesia_26 / odbc_mssql_mnesia / 8796d69
Reports root/ big
OK: 4927 / Failed: 0 / User-skipped: 121 / Auto-skipped: 0

@mongoose-im
Copy link
Collaborator

mongoose-im commented Apr 11, 2024

elasticsearch_and_cassandra_26 / elasticsearch_and_cassandra_mnesia / 1978e2d
Reports root/ big
OK: 437 / Failed: 0 / User-skipped: 43 / Auto-skipped: 0


small_tests_25 / small_tests / 1978e2d
Reports root / small


small_tests_26 / small_tests / 1978e2d
Reports root / small


small_tests_26_arm64 / small_tests / 1978e2d
Reports root / small


ldap_mnesia_25 / ldap_mnesia / 1978e2d
Reports root/ big
OK: 2284 / Failed: 0 / User-skipped: 897 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / 1978e2d
Reports root/ big
OK: 4541 / Failed: 0 / User-skipped: 111 / Auto-skipped: 0


dynamic_domains_mysql_redis_26 / mysql_redis / 1978e2d
Reports root/ big
OK: 4508 / Failed: 0 / User-skipped: 144 / Auto-skipped: 0


ldap_mnesia_26 / ldap_mnesia / 1978e2d
Reports root/ big
OK: 2284 / Failed: 0 / User-skipped: 897 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_26 / odbc_mssql_mnesia / 1978e2d
Reports root/ big
OK: 4538 / Failed: 0 / User-skipped: 114 / Auto-skipped: 0


internal_mnesia_26 / internal_mnesia / 1978e2d
Reports root/ big
OK: 2424 / Failed: 0 / User-skipped: 757 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_26 / pgsql_mnesia / 1978e2d
Reports root/ big
OK: 4541 / Failed: 0 / User-skipped: 111 / Auto-skipped: 0


pgsql_cets_26 / pgsql_cets / 1978e2d
Reports root/ big
OK: 4455 / Failed: 1 / User-skipped: 178 / Auto-skipped: 0

graphql_SUITE:tls_enabled:tls_connect_admin_unknown_certificate
{error,{{assertMatch,[{module,graphql_SUITE},
            {line,253},
            {expression,"Result"},
            {pattern,"{ error , { tls_alert , { unknown_ca , _ } } }"},
            {value,{error,connection_closed}}]},
    [{graphql_SUITE,tls_connect_admin_unknown_certificate,1,
            [{file,"/home/circleci/project/big_tests/tests/graphql_SUITE.erl"},
             {line,253}]},
     {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1793}]},
     {test_server,run_test_case_eval1,6,
            [{file,"test_server.erl"},{line,1302}]},
     {test_server,run_test_case_eval,9,
            [{file,"test_server.erl"},{line,1234}]}]}}

Report log


pgsql_mnesia_25 / pgsql_mnesia / 1978e2d
Reports root/ big
OK: 4930 / Failed: 0 / User-skipped: 118 / Auto-skipped: 0


mysql_redis_26 / mysql_redis / 1978e2d
Reports root/ big
OK: 4909 / Failed: 0 / User-skipped: 139 / Auto-skipped: 0


pgsql_mnesia_26 / pgsql_mnesia / 1978e2d
Reports root/ big
OK: 4930 / Failed: 0 / User-skipped: 118 / Auto-skipped: 0


mssql_mnesia_26 / odbc_mssql_mnesia / 1978e2d
Reports root/ big
OK: 4927 / Failed: 0 / User-skipped: 121 / Auto-skipped: 0


pgsql_cets_26 / pgsql_cets / 1978e2d
Reports root/ big
OK: 4455 / Failed: 1 / User-skipped: 178 / Auto-skipped: 0

graphql_roster_SUITE:user_roster:user_decline_subscription_ask
{error,
  {timeout_when_waiting_for_stanza,
    [{escalus_client,wait_for_stanza,
       [{client,
          <<"bob_user_decline_subscription_ask_1168@localhost/res1">>,
          escalus_tcp,<0.26408.0>,
          [{event_manager,<0.26406.0>},
           {server,<<"localhost">>},
           {username,<<"bOb_user_decline_subscription_ask_1168">>},
           {resource,<<"res1">>}],
          [{event_client,
             [{event_manager,<0.26406.0>},
            {server,<<"localhost">>},
            {username,
              <<"bOb_user_decline_subscription_ask_1168">>},
            {resource,<<"res1">>}]},
           {resource,<<"res1">>},
           {username,<<"bob_user_decline_subscription_ask_1168">>},
           {server,<<"localhost">>},
           {host,<<"localhost">>},
           {port,5222},
           {auth,{escalus_auth,auth_plain}},
           {wspath,undefined},
           {username,<<"bOb_user_decline_subscription_ask_1168">>},
           {server,<<"localhost">>},
           {password,<<"makrolika">>},
           {stream_id,<<"74d0a9c3fb93771d">>}]},
        1],
       [{file,
          "/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
        {line,136}]},
     {graphql_roster_SUITE,user_decline_subscription_ask_story,3,
       [{file,
          "/home/circleci/project/big_tests/tests/graphql_roster_SUITE.erl"},
        {line,524}]},
     {escalus_story,story,4,
       [{file,
          "/home/circleci/project/big_tests/_buil...

Report log


pgsql_cets_26 / pgsql_cets / 1978e2d
Reports root/ big
OK: 4456 / Failed: 0 / User-skipped: 178 / Auto-skipped: 0

Copy link

codecov bot commented Apr 11, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 84.42%. Comparing base (5f2bc39) to head (1978e2d).
Report is 2 commits behind head on master.

Files Patch % Lines
src/mongoose_server_api.erl 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4262      +/-   ##
==========================================
+ Coverage   84.40%   84.42%   +0.01%     
==========================================
  Files         552      552              
  Lines       33551    33554       +3     
==========================================
+ Hits        28319    28327       +8     
+ Misses       5232     5227       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@chrzaszcz chrzaszcz marked this pull request as ready for review April 11, 2024 13:40
Copy link
Contributor

@JanuszJakubiec JanuszJakubiec 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 the changes

@JanuszJakubiec JanuszJakubiec merged commit 616b692 into master Apr 11, 2024
3 of 4 checks passed
@JanuszJakubiec JanuszJakubiec deleted the hotfix-commit-hash branch April 11, 2024 14:12
@chrzaszcz chrzaszcz added this to the 6.2.1 milestone Apr 11, 2024
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