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

Fixup IPv6 validation logic #1180

Merged
merged 14 commits into from
Jan 24, 2025
Merged

Fixup IPv6 validation logic #1180

merged 14 commits into from
Jan 24, 2025

Conversation

DmitriyMusatkin
Copy link
Contributor

@DmitriyMusatkin DmitriyMusatkin commented Jan 17, 2025

Issue #, and/or reason for changes (REQUIRED):
is ipv6 helper does not always return correct results for zero expansion cases.

Description of changes:
rewrote the logic to be hopefully simpler to follow and less error prone.
and a whole bunch of test cases

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@codecov-commenter
Copy link

codecov-commenter commented Jan 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.97%. Comparing base (da9e1c3) to head (f24d16f).
Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1180      +/-   ##
==========================================
- Coverage   83.63%   82.97%   -0.67%     
==========================================
  Files          57       57              
  Lines        5953     5973      +20     
==========================================
- Hits         4979     4956      -23     
- Misses        974     1017      +43     

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

@@ -28,4 +28,4 @@ jobs:
run: |
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')"
chmod a+x builder
./builder build -p ${{ env.PACKAGE_NAME }} --compiler=gcc-9 --coverage --coverage-exclude=source/external/
./builder build -p ${{ env.PACKAGE_NAME }} --compiler=gcc --coverage --coverage-exclude=source/external/
Copy link
Contributor

Choose a reason for hiding this comment

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

Any particular reason for --compiler=gcc-9 to --compiler=gcc ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we dont care about compiler here as much, we just want the default on the system.
the reason it was gcc-9 before was to match it to gcov version on the os image. but once we updated image, gcov got updated and everything broke.
i dont want to update gcc version on every image update, so lets just use default gcc and gcov already on the system

source/host_utils.c Outdated Show resolved Hide resolved
source/host_utils.c Show resolved Hide resolved
Copy link
Contributor

@graebm graebm left a comment

Choose a reason for hiding this comment

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

fix & ship

tests/host_util_test.c Show resolved Hide resolved
@DmitriyMusatkin DmitriyMusatkin merged commit dac5ad6 into main Jan 24, 2025
56 checks passed
@DmitriyMusatkin DmitriyMusatkin deleted the zero_ipv6 branch January 24, 2025 18:25
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.

5 participants