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

Simplify service_port_delta with environment variable #5477

Merged

Conversation

okurz
Copy link
Member

@okurz okurz commented Feb 14, 2024

Copy link

codecov bot commented Feb 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (37fc220) 98.38% compared to head (87aec4d) 98.38%.
Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5477   +/-   ##
=======================================
  Coverage   98.38%   98.38%           
=======================================
  Files         390      390           
  Lines       37862    37862           
=======================================
  Hits        37250    37250           
  Misses        612      612           

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

@okurz okurz force-pushed the feature/env_variable_service_port_variable branch 2 times, most recently from aa43964 to 4e932ad Compare February 14, 2024 15:17
@okurz
Copy link
Member Author

okurz commented Feb 14, 2024

CI failure sounds related but I don't understand it:

[15:26:28] t/33-developer_mode.t .. 19/?     # Unexpected Javascript console errors, waiting for connection opened: [
    #   {
    #     level     => "SEVERE",
    #     message   => "http://localhost:9526/asset/3906633cf0/ws_console.js 8 WebSocket connection to 'ws://localhost:9528/liveviewhandler/tests/1/developer/ws-proxy' failed: Error during WebSocket handshake: Unexpected response code: 302",
    #     source    => "network",
    #     timestamp => 1707924445186,
    #   },
    # ]

    #   Failed test 'No unexpected js warnings'
    #   at /home/squamata/project/t/lib/OpenQA/Test/FullstackUtils.pm line 123.
    # Looks like you failed 1 test of 9.
[15:26:28] t/33-developer_mode.t .. 20/? 
#   Failed test 'resume test execution and 2nd tab'
#   at t/33-developer_mode.t line 340.
[15:26:28] t/33-developer_mode.t .. 21/? [15:26:28] t/33-developer_mode.t .. 22/? [15:26:28] t/33-developer_mode.t .. 23/? # Looks like you failed 1 test of 23.
                                          [15:26:28] t/33-developer_mode.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/23 subtests 
[15:28:29]

Could it be that I did not use the correct syntax in code? perl -e '$foo = {service_port_delta => $ENV{FOO} // 2}; print $foo->{service_port_delta}' works fine. So what is the problem?

@Martchus
Copy link
Contributor

I also cross-checked the syntax and it really works (although brackets would probably not hurt for readability). The test also seems to generally work (also see log under artifacts) up to that point and t/full-stack.t is fully passing. The ports in the error message also look as they should and it also doesn't complain with "Connection refused". So this might even be an unrelated/sporadic issue.

@Martchus
Copy link
Contributor

Martchus commented Feb 14, 2024

@Mergifyio rebase

Copy link
Contributor

mergify bot commented Feb 14, 2024

rebase

✅ Branch has been successfully rebased

@Martchus Martchus force-pushed the feature/env_variable_service_port_variable branch from 4e932ad to 87aec4d Compare February 14, 2024 16:26
@mergify mergify bot merged commit 28145b7 into os-autoinst:master Feb 14, 2024
37 checks passed
@okurz okurz deleted the feature/env_variable_service_port_variable branch February 14, 2024 18:10
os-autoinst-bot pushed a commit to os-autoinst-bot/openQA that referenced this pull request Feb 15, 2024
commit 28145b7
Merge: 52fb7e5 87aec4d
Author:     mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
AuthorDate: Wed Feb 14 16:52:13 2024 +0000
Commit:     GitHub <[email protected]>
CommitDate: Wed Feb 14 16:52:13 2024 +0000

    Merge pull request os-autoinst#5477 from okurz/feature/env_variable_service_port_variable

    Simplify service_port_delta with environment variable
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