- 
                Notifications
    
You must be signed in to change notification settings  - Fork 2.8k
 
test, pasta: Ignore deprecated addresses in tests #22777
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
Conversation
The default_addr shell function in test/system/helpers.network is used to get the host's default address, which is used in a number of pasta networking tests. However, in certain circumstances it can incorrectly pick a deprecated address as the primary address. Correct it to exclude those. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
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.
LGTM
| 
           LGTM 
  | 
    
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.
/lgtm
| 
           [APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dgibson, giuseppe, Luap99 The full list of commands accepted by this bot can be found here. The pull request process is described here 
Needs approval from an approver in each of these files:
 
      
 Approvers can indicate their approval by writing   | 
    
| 
           This got merged before I had a chance to review. I think it's broken, and blowing up: See https://cirrus-ci.com/build/5129923445129216 but look ONLY at   | 
    
          
 Huh.  Looks like the host has 2 valid IPs that got concatenated here.  .. but I'm not sure how that could happen with the jq script I had :/.  Can you get the output of  
  | 
    
| 
           Added to #22782, results will be ready in about 50 minutes (1500Z)  | 
    
| 
           Also, I have no idea if this has anything to do with your PR. I'm operating solely on post hoc ergo propter hoc logic.  | 
    
| 
           Huh. I think this is actually related to PR #22740 which added this new test.  | 
    
| 
           But this PR passed tests so and is rebased to contain the test from #22740 which passed looking at the logs, I think the error is introduced in your PR (although it is likely a issue with the test not handling the second ip correctly)  | 
    
          
 I can't see how my patch could introduce this problem, though.  The bogus looking expected value is not coming from the   | 
    
          
 Sorry I meant you (@edsantiago) not you (@dgibson), so yes I agree this PR is fine and did not cause a regression.  | 
    
| 
           #22782 passed CI, so the bug must be in my registry PR. I am sorry for causing undue concern.  | 
    
The default_addr shell function in test/system/helpers.network is used to get the host's default address, which is used in a number of pasta networking tests. However, in certain circumstances it can incorrectly pick a deprecated address as the primary address. Correct it to exclude those.
Does this PR introduce a user-facing change?