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

Exclude unsupported getaddrinfo flags #3930

Merged
merged 1 commit into from
Aug 6, 2024
Merged

Conversation

johnxwork
Copy link
Contributor

@johnxwork johnxwork commented Aug 2, 2024

The failing test was actually not intended for Android because Android is not a modular build and getaddrinfo does not go through abi wrapper translation. And the test failed because Android uses bionic libc and is not fully posix-compliant. I took a look at the flag usage across all of Cobalt's dependencies and did not see usage of most flags except for AI_ADDRCONFIG which does still work on Android. So we exclude the unused flags from test for non-modular build here.

b/357161000

Change-Id: I62c935e6792f10bdc80ba9ecfcebae69a011a60f

Copy link

codecov bot commented Aug 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 57.74%. Comparing base (2de8ba1) to head (2716a75).
Report is 24 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3930      +/-   ##
==========================================
- Coverage   57.75%   57.74%   -0.02%     
==========================================
  Files        1779     1768      -11     
  Lines       86573    86442     -131     
==========================================
- Hits        50001    49915      -86     
+ Misses      36572    36527      -45     

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

b/357161000

Change-Id: I62c935e6792f10bdc80ba9ecfcebae69a011a60f
Copy link
Contributor

@yjzhang111 yjzhang111 left a comment

Choose a reason for hiding this comment

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

lgtm

@johnxwork johnxwork merged commit 62cdd00 into youtube:main Aug 6, 2024
670 of 686 checks passed
@yjzhang111 yjzhang111 added the cp-25.lts.1+ Cherry Pick to the 25.lts.1+ branch label Aug 13, 2024
cobalt-github-releaser-bot pushed a commit that referenced this pull request Aug 13, 2024
The failing test was actually not intended for Android because Android
is not a modular build and `getaddrinfo` does not go through abi wrapper
translation. And the test failed because Android uses bionic libc and is
not fully posix-compliant. I took a look at the flag usage across all of
Cobalt's dependencies and did not see usage of most flags except for
`AI_ADDRCONFIG` which does still work on Android. So we exclude the
unused flags from test for non-modular build here.

b/357161000

Change-Id: I62c935e6792f10bdc80ba9ecfcebae69a011a60f
(cherry picked from commit 62cdd00)
johnxwork added a commit that referenced this pull request Aug 16, 2024
Refer to the original PR: #3930

The failing test was actually not intended for Android because Android
is not a modular build and `getaddrinfo` does not go through abi wrapper
translation. And the test failed because Android uses bionic libc and is
not fully posix-compliant. I took a look at the flag usage across all of
Cobalt's dependencies and did not see usage of most flags except for
`AI_ADDRCONFIG` which does still work on Android. So we exclude the
unused flags from test for non-modular build here.

b/357161000

Change-Id: I62c935e6792f10bdc80ba9ecfcebae69a011a60f

Co-authored-by: johnx <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cp-25.lts.1+ Cherry Pick to the 25.lts.1+ branch on_device
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants