You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2021/06/21 12:58:58 UTC

[GitHub] [trafficcontrol] dmohan001c opened a new pull request #5961: Fix Sorting issue in delivery service

dmohan001c opened a new pull request #5961:
URL: https://github.com/apache/trafficcontrol/pull/5961


   ## What does this PR (Pull Request) do?
   
   - [x] This PR is not related to any Issue
   
   ## Which Traffic Control components are affected by this PR?
   
   - CDN in a Box
   - Traffic Control Client <!-- Please specify which; e.g. 'Python', 'Go', 'Java' -->
   - Traffic Ops
   - CI tests
   
   ## What is the best way to verify this PR?
   Execute all the Integration tests and make sure the tests passed.
   
   ## The following criteria are ALL met by this PR
   <!-- Check the boxes to signify that the associated statement is true. To
   "check a box", replace the space inside of the square brackets with an 'x'.
   e.g.
   
   - [ x] <- Wrong
   - [x ] <- Wrong
   - [] <- Wrong
   - [*] <- Wrong
   - [x] <- Correct!
   
   -->
   
   - [x] This PR includes tests OR I have explained why tests are unnecessary
   - [x] This PR includes documentation OR I have explained why documentation is unnecessary
   - [x] This PR includes an update to CHANGELOG.md OR such an update is not necessary
   - [x] This PR includes any and all required license headers
   - [x] This PR **DOES NOT FIX A SERIOUS SECURITY VULNERABILITY** (see [the Apache Software Foundation's security guidelines](https://www.apache.org/security/) for details)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] ocket8888 commented on pull request #5961: Fix Sorting issue in delivery service

Posted by GitBox <gi...@apache.org>.
ocket8888 commented on pull request #5961:
URL: https://github.com/apache/trafficcontrol/pull/5961#issuecomment-865038120






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] dmohan001c commented on pull request #5961: Fix Sorting issue in delivery service

Posted by GitBox <gi...@apache.org>.
dmohan001c commented on pull request #5961:
URL: https://github.com/apache/trafficcontrol/pull/5961#issuecomment-865052484


   > I don't think this can actually be fixing it - after digging into the issue in #5957 I've found that the returned ordering actually does differ from how Go sorts strings, so this shouldn't be fixable with just changing how the entrypoint script exits.
   > 
   > I'm not sure how, but it appears that this PR is merely hiding the exit code again. Because you can see in the [checks output from this PR](https://pipelines.actions.githubusercontent.com/SkCuvZ6pt0n8Mrp79gaiS27VlL7eMS1136UzeqF4MLjw7Edjex/_apis/pipelines/1/runs/20368/signedlogcontent/3?urlExpires=2021-06-21T13%3A34%3A25.5669918Z&urlSigningMethod=HMACV1&urlSignature=n81FlQRSuWnnlPj%2BmPCd59uk4veE21uBTVxbknXrurU%3D):
   > 
   > ```
   > 2021-06-21T13:11:02.3551335Z === CONT  TestDeliveryServices
   > 2021-06-21T13:11:02.3554092Z     deliveryservices_test.go:2288: list is not sorted by their XML Id: [anymap-ds ds1 ds1nat ds2 ds3 ds4 ds-based-top-with-no-mids ds-client-steering ds-forked-topology ds-test-minor-versions ds-top ds-top-req-cap ds-top-req-cap2 inactiveds msods1 test-ds-server-assignments top-ds-in-cdn1 top-ds-in-cdn2]
   > 2021-06-21T13:11:05.1781439Z --- FAIL: TestDeliveryServices (15.64s)
   > 2021-06-21T13:11:05.1783004Z     --- PASS: TestDeliveryServices/Missing_slice_plugin_size (0.00s)
   > 2021-06-21T13:11:05.1784519Z     --- PASS: TestDeliveryServices/Slice_plugin_size_set_with_incorrect_range_request_setting (0.00s)
   > 2021-06-21T13:11:05.1786052Z     --- PASS: TestDeliveryServices/Slice_plugin_size_set_to_small (0.00s)
   > 2021-06-21T13:11:05.1787369Z     --- PASS: TestDeliveryServices/Slice_plugin_size_set_to_large (0.00s)
   > ```
   
   Okay. what would be the solution., Sometimes it's getting passed and failing.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] ocket8888 commented on pull request #5961: Fix Sorting issue in delivery service

Posted by GitBox <gi...@apache.org>.
ocket8888 commented on pull request #5961:
URL: https://github.com/apache/trafficcontrol/pull/5961#issuecomment-865056908


   It appears to be a locale issue from what I can tell. I'm looking into it in #5957 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] ocket8888 commented on pull request #5961: Fix Sorting issue in delivery service

Posted by GitBox <gi...@apache.org>.
ocket8888 commented on pull request #5961:
URL: https://github.com/apache/trafficcontrol/pull/5961#issuecomment-865038120


   I don't think this can actually be fixing it - after digging into the issue in #5957 I've found that the returned ordering actually does differ from how Go sorts strings, so this shouldn't be fixable with just changing how the entrypoint script exits. I'm not sure how, but it appears that this is merely hiding the exit code again. Because you can see in the [checks output from this PR](https://pipelines.actions.githubusercontent.com/SkCuvZ6pt0n8Mrp79gaiS27VlL7eMS1136UzeqF4MLjw7Edjex/_apis/pipelines/1/runs/20368/signedlogcontent/3?urlExpires=2021-06-21T13%3A34%3A25.5669918Z&urlSigningMethod=HMACV1&urlSignature=n81FlQRSuWnnlPj%2BmPCd59uk4veE21uBTVxbknXrurU%3D):
   
   ```
   2021-06-21T13:11:02.3551335Z === CONT  TestDeliveryServices
   2021-06-21T13:11:02.3554092Z     deliveryservices_test.go:2288: list is not sorted by their XML Id: [anymap-ds ds1 ds1nat ds2 ds3 ds4 ds-based-top-with-no-mids ds-client-steering ds-forked-topology ds-test-minor-versions ds-top ds-top-req-cap ds-top-req-cap2 inactiveds msods1 test-ds-server-assignments top-ds-in-cdn1 top-ds-in-cdn2]
   2021-06-21T13:11:05.1781439Z --- FAIL: TestDeliveryServices (15.64s)
   2021-06-21T13:11:05.1783004Z     --- PASS: TestDeliveryServices/Missing_slice_plugin_size (0.00s)
   2021-06-21T13:11:05.1784519Z     --- PASS: TestDeliveryServices/Slice_plugin_size_set_with_incorrect_range_request_setting (0.00s)
   2021-06-21T13:11:05.1786052Z     --- PASS: TestDeliveryServices/Slice_plugin_size_set_to_small (0.00s)
   2021-06-21T13:11:05.1787369Z     --- PASS: TestDeliveryServices/Slice_plugin_size_set_to_large (0.00s)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] dmohan001c commented on pull request #5961: Fix Sorting issue in delivery service

Posted by GitBox <gi...@apache.org>.
dmohan001c commented on pull request #5961:
URL: https://github.com/apache/trafficcontrol/pull/5961#issuecomment-865052484


   > I don't think this can actually be fixing it - after digging into the issue in #5957 I've found that the returned ordering actually does differ from how Go sorts strings, so this shouldn't be fixable with just changing how the entrypoint script exits.
   > 
   > I'm not sure how, but it appears that this PR is merely hiding the exit code again. Because you can see in the [checks output from this PR](https://pipelines.actions.githubusercontent.com/SkCuvZ6pt0n8Mrp79gaiS27VlL7eMS1136UzeqF4MLjw7Edjex/_apis/pipelines/1/runs/20368/signedlogcontent/3?urlExpires=2021-06-21T13%3A34%3A25.5669918Z&urlSigningMethod=HMACV1&urlSignature=n81FlQRSuWnnlPj%2BmPCd59uk4veE21uBTVxbknXrurU%3D):
   > 
   > ```
   > 2021-06-21T13:11:02.3551335Z === CONT  TestDeliveryServices
   > 2021-06-21T13:11:02.3554092Z     deliveryservices_test.go:2288: list is not sorted by their XML Id: [anymap-ds ds1 ds1nat ds2 ds3 ds4 ds-based-top-with-no-mids ds-client-steering ds-forked-topology ds-test-minor-versions ds-top ds-top-req-cap ds-top-req-cap2 inactiveds msods1 test-ds-server-assignments top-ds-in-cdn1 top-ds-in-cdn2]
   > 2021-06-21T13:11:05.1781439Z --- FAIL: TestDeliveryServices (15.64s)
   > 2021-06-21T13:11:05.1783004Z     --- PASS: TestDeliveryServices/Missing_slice_plugin_size (0.00s)
   > 2021-06-21T13:11:05.1784519Z     --- PASS: TestDeliveryServices/Slice_plugin_size_set_with_incorrect_range_request_setting (0.00s)
   > 2021-06-21T13:11:05.1786052Z     --- PASS: TestDeliveryServices/Slice_plugin_size_set_to_small (0.00s)
   > 2021-06-21T13:11:05.1787369Z     --- PASS: TestDeliveryServices/Slice_plugin_size_set_to_large (0.00s)
   > ```
   
   Okay. what would be the solution., Sometimes it's getting passed and failing.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] ocket8888 edited a comment on pull request #5961: Fix Sorting issue in delivery service

Posted by GitBox <gi...@apache.org>.
ocket8888 edited a comment on pull request #5961:
URL: https://github.com/apache/trafficcontrol/pull/5961#issuecomment-865038120


   I don't think this can actually be fixing it - after digging into the issue in #5957 I've found that the returned ordering actually does differ from how Go sorts strings, so this shouldn't be fixable with just changing how the entrypoint script exits.
   
   I'm not sure how, but it appears that this PR is merely hiding the exit code again. Because you can see in the [checks output from this PR](https://pipelines.actions.githubusercontent.com/SkCuvZ6pt0n8Mrp79gaiS27VlL7eMS1136UzeqF4MLjw7Edjex/_apis/pipelines/1/runs/20368/signedlogcontent/3?urlExpires=2021-06-21T13%3A34%3A25.5669918Z&urlSigningMethod=HMACV1&urlSignature=n81FlQRSuWnnlPj%2BmPCd59uk4veE21uBTVxbknXrurU%3D):
   
   ```
   2021-06-21T13:11:02.3551335Z === CONT  TestDeliveryServices
   2021-06-21T13:11:02.3554092Z     deliveryservices_test.go:2288: list is not sorted by their XML Id: [anymap-ds ds1 ds1nat ds2 ds3 ds4 ds-based-top-with-no-mids ds-client-steering ds-forked-topology ds-test-minor-versions ds-top ds-top-req-cap ds-top-req-cap2 inactiveds msods1 test-ds-server-assignments top-ds-in-cdn1 top-ds-in-cdn2]
   2021-06-21T13:11:05.1781439Z --- FAIL: TestDeliveryServices (15.64s)
   2021-06-21T13:11:05.1783004Z     --- PASS: TestDeliveryServices/Missing_slice_plugin_size (0.00s)
   2021-06-21T13:11:05.1784519Z     --- PASS: TestDeliveryServices/Slice_plugin_size_set_with_incorrect_range_request_setting (0.00s)
   2021-06-21T13:11:05.1786052Z     --- PASS: TestDeliveryServices/Slice_plugin_size_set_to_small (0.00s)
   2021-06-21T13:11:05.1787369Z     --- PASS: TestDeliveryServices/Slice_plugin_size_set_to_large (0.00s)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] ocket8888 edited a comment on pull request #5961: Fix Sorting issue in delivery service

Posted by GitBox <gi...@apache.org>.
ocket8888 edited a comment on pull request #5961:
URL: https://github.com/apache/trafficcontrol/pull/5961#issuecomment-865038120


   I don't think this can actually be fixing it - after digging into the issue in #5957 I've found that the returned ordering actually does differ from how Go sorts strings, so this shouldn't be fixable with just changing how the entrypoint script exits.
   
   I'm not sure how, but it appears that this PR is merely hiding the exit code again. Because you can see in the [checks output from this PR](https://pipelines.actions.githubusercontent.com/SkCuvZ6pt0n8Mrp79gaiS27VlL7eMS1136UzeqF4MLjw7Edjex/_apis/pipelines/1/runs/20368/signedlogcontent/3?urlExpires=2021-06-21T13%3A34%3A25.5669918Z&urlSigningMethod=HMACV1&urlSignature=n81FlQRSuWnnlPj%2BmPCd59uk4veE21uBTVxbknXrurU%3D):
   
   ```
   2021-06-21T13:11:02.3551335Z === CONT  TestDeliveryServices
   2021-06-21T13:11:02.3554092Z     deliveryservices_test.go:2288: list is not sorted by their XML Id: [anymap-ds ds1 ds1nat ds2 ds3 ds4 ds-based-top-with-no-mids ds-client-steering ds-forked-topology ds-test-minor-versions ds-top ds-top-req-cap ds-top-req-cap2 inactiveds msods1 test-ds-server-assignments top-ds-in-cdn1 top-ds-in-cdn2]
   2021-06-21T13:11:05.1781439Z --- FAIL: TestDeliveryServices (15.64s)
   2021-06-21T13:11:05.1783004Z     --- PASS: TestDeliveryServices/Missing_slice_plugin_size (0.00s)
   2021-06-21T13:11:05.1784519Z     --- PASS: TestDeliveryServices/Slice_plugin_size_set_with_incorrect_range_request_setting (0.00s)
   2021-06-21T13:11:05.1786052Z     --- PASS: TestDeliveryServices/Slice_plugin_size_set_to_small (0.00s)
   2021-06-21T13:11:05.1787369Z     --- PASS: TestDeliveryServices/Slice_plugin_size_set_to_large (0.00s)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] dmohan001c closed pull request #5961: Fix Sorting issue in delivery service

Posted by GitBox <gi...@apache.org>.
dmohan001c closed pull request #5961:
URL: https://github.com/apache/trafficcontrol/pull/5961


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org