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

Upgrade vendored Brotli dependency to v1.1.0 #106994

Merged
merged 2 commits into from
Aug 28, 2024

Conversation

jkoritzinsky
Copy link
Member

Fixes #106887

@jkoritzinsky jkoritzinsky marked this pull request as ready for review August 26, 2024 22:03
Copy link
Member

@carlossanlop carlossanlop left a comment

Choose a reason for hiding this comment

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

The changes look good. Can you please run a few additional azp runs? For example, runtime-community, runtime-extra-platforms, and the nativeaot and wasm ones

@jkoritzinsky
Copy link
Member Author

/azp run runtime, runtime-community, runtime-extra-platforms, runtime-nativeaot-outerloop

Copy link

Azure Pipelines successfully started running 4 pipeline(s).

@jkoritzinsky
Copy link
Member Author

/backport to release/9.0

@jkoritzinsky
Copy link
Member Author

/backport to release/8.0-staging

Copy link
Contributor

Started backporting to release/9.0: https://github.com/dotnet/runtime/actions/runs/10602456102

Copy link
Contributor

Started backporting to release/8.0-staging: https://github.com/dotnet/runtime/actions/runs/10602458617

Copy link
Contributor

@jkoritzinsky backporting to release/9.0 failed, the patch most likely resulted in conflicts:

$ git am --3way --ignore-whitespace --keep-non-patch changes.patch

Applying: Upgrade vendored Brotli dependency to v1.1.0
Using index info to reconstruct a base tree...
M	src/native/libs/System.IO.Compression.Native/CMakeLists.txt
Falling back to patching base and 3-way merge...
Auto-merging src/native/libs/System.IO.Compression.Native/CMakeLists.txt
CONFLICT (content): Merge conflict in src/native/libs/System.IO.Compression.Native/CMakeLists.txt
Removing src/native/external/brotli/tools/brotli.md
Removing src/native/external/brotli/tools/brotli.c
Removing src/native/external/brotli/fuzz/test_fuzzer.sh
Removing src/native/external/brotli/fuzz/run_decode_fuzzer.c
Removing src/native/external/brotli/fuzz/decode_fuzzer.c
Removing src/native/external/brotli/common/dictionary.bin.br
Removing src/native/external/brotli/common/dictionary.bin
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config advice.mergeConflict false"
Patch failed at 0001 Upgrade vendored Brotli dependency to v1.1.0
Error: The process '/usr/bin/git' failed with exit code 128

Please backport manually!

Copy link
Contributor

@jkoritzinsky an error occurred while backporting to release/9.0, please check the run log for details!

Error: git am failed, most likely due to a merge conflict.

Copy link
Contributor

@jkoritzinsky backporting to release/8.0-staging failed, the patch most likely resulted in conflicts:

$ git am --3way --ignore-whitespace --keep-non-patch changes.patch

Applying: Upgrade vendored Brotli dependency to v1.1.0
Using index info to reconstruct a base tree...
M	src/native/external/brotli.cmake
M	src/native/external/cgmanifest.json
M	src/native/libs/System.IO.Compression.Native/CMakeLists.txt
Falling back to patching base and 3-way merge...
Auto-merging src/native/libs/System.IO.Compression.Native/CMakeLists.txt
CONFLICT (content): Merge conflict in src/native/libs/System.IO.Compression.Native/CMakeLists.txt
Auto-merging src/native/external/cgmanifest.json
Removing src/native/external/brotli/tools/brotli.md
Removing src/native/external/brotli/tools/brotli.c
Removing src/native/external/brotli/fuzz/test_fuzzer.sh
Removing src/native/external/brotli/fuzz/run_decode_fuzzer.c
Removing src/native/external/brotli/fuzz/decode_fuzzer.c
Removing src/native/external/brotli/common/dictionary.bin.br
Removing src/native/external/brotli/common/dictionary.bin
Auto-merging src/native/external/brotli.cmake
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config advice.mergeConflict false"
Patch failed at 0001 Upgrade vendored Brotli dependency to v1.1.0
Error: The process '/usr/bin/git' failed with exit code 128

Please backport manually!

Copy link
Contributor

@jkoritzinsky an error occurred while backporting to release/8.0-staging, please check the run log for details!

Error: git am failed, most likely due to a merge conflict.

1.1.0
https://github.com/google/brotli/releases/tag/v1.1.0

Copy the c/dec, c/enc, c/common, and c/include folders into the root and remove all other files.
Copy link
Member

Choose a reason for hiding this comment

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

We should probably create a script to do this, if we are going to selectively copy stuff. Previously, the idea was to keep these external dependencies as-is, so it's easy to compare/review during the updates.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm planning (and have a branch locally that I need to update) that will bring us in alignment with how we handle other dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade native brotli to version 1.0.10
4 participants