Conversation
octo-sts
bot
commented
Nov 20, 2024
Signed-off-by: wolfi-bot <121097084+wolfi-bot@users.noreply.github.com>
|
Gen AI suggestions to solve the build error: Let me analyze the build error and provide specific recommendations: • Detected Error: "Expected vars.CILIUM_PROXY_COMMIT to be 97edc2815e2c6a174d3d12e71731d54f5d32ea16. Please update" • Error Category: Version/Configuration • Failure Point: Proxy commit hash verification check in pipeline stage • Root Cause Analysis: The vars.CILIUM_PROXY_COMMIT value in the melange YAML doesn't match the expected commit hash from the Cilium Dockerfile for version 1.16.4 • Suggested Fix: vars:
CILIUM_PROXY_COMMIT: "97edc2815e2c6a174d3d12e71731d54f5d32ea16"• Explanation: • Additional Notes:
• References:
The fix is straightforward - just update the commit hash in the vars section of the melange YAML to match what's expected by Cilium 1.16.4. |
Signed-off-by: Debasish Biswas <debasishbsws.dev@gmail.com>
|
Gen AI suggestions to solve the build error: Based on the build error output, I'll analyze and provide specific fixes: • Detected Error: "fatal: Could not parse object '97edc2815e2c6a174d3d12e71731d54f5d32ea16'" • Error Category: Git/Version • Failure Point: git-checkout step for cilium/proxy repository in the pipeline • Root Cause Analysis: The build is failing because it cannot find the specified commit hash (97edc2815e2c6a174d3d12e71731d54f5d32ea16) in the proxy repository when checking out with a depth of 1000 commits • Suggested Fix:
vars:
CILIUM_PROXY_COMMIT: "2c13e1e06c848aeae988ba8e14b2a6608df9b2a5"
- uses: git-checkout
with:
repository: https://github.com/cilium/proxy
branch: v1.29
depth: 2000 # Increase depth to ensure commit is included
destination: envoy• Explanation: The error occurs because the specified commit hash is not found within the fetched history depth. Either the commit hash needs to be updated to match the correct version for Cilium 1.16.4, or the clone depth needs to be increased to include the target commit. • Additional Notes:
• References:
The most reliable fix would be to update the CILIUM_PROXY_COMMIT to the correct hash for version 1.16.4, as this ensures exact version matching rather than relying on branch state. |
Signed-off-by: Debasish Biswas <debasishbsws.dev@gmail.com>
|
Gen AI suggestions to solve the build error: Based on the error message and context provided, here's my analysis: • Detected Error: • Error Category: Build Configuration/Patch • Failure Point: Patch application during Bazel build setup • Root Cause Analysis: • Suggested Fix:
- uses: patch
with:
patches: toolchains-paths.patch
# Remove or update this patch
# - uses: patch
# with:
# patches: envoy-55b0fc45cfdc2c0df002690606853540cf794fab.patch
cd envoy
git diff bazel/repository_locations.bzl > ../new-patch.patch• Explanation:
• Additional Notes:
• References: |
Signed-off-by: debasishbsws <debasishbsws.dev@gmail.com>
|
There is one upstream closed issue i can found envoyproxy/envoy#34368 repeated to this and it seems the problem is with the version of clang and llvm |
Signed-off-by: Debasish Biswas <debasishbsws.dev@gmail.com>
|
Gen AI suggestions to solve the build error: Based on the build error, here's my analysis and suggested fix: • Detected Error: • Error Category: Build/Configuration • Failure Point: C++ template instantiation during compilation of CEL (Common Expression Language) components • Root Cause Analysis: • Suggested Fix: - working-directory: envoy
runs: |
bazel build --fission=no --config=clang \
--discard_analysis_cache \
--nokeep_state_after_build \
--notrack_incremental_state \
--conlyopt="-Wno-strict-prototypes" \
--cxxopt="-fno-strict-aliasing" \
--verbose_failures -c opt //:cilium-envoy-starterAdd the • Explanation: • Additional Notes:
• References:
|
|
I break down the pipeline and found out the error is coming from running bazel build --fission=no --config=clang \
--discard_analysis_cache \
--nokeep_state_after_build \
--notrack_incremental_state \
--conlyopt="-Wno-strict-prototypes" \
--verbose_failures -c opt //:cilium-envoyI tried to add I found one upstream closed issue envoyproxy/envoy#34368 stating "the currently supported llvm version is 14" and we are using 17. There is a closed PR envoyproxy/envoy#31894 we are applying as bazel patch while building. The upstream drop that PR after they merge this PR which changes I have no clue why we having this error. |
|
All the other one have the same issue while building envoy proxy so marking all of those as blocked and let fix this one, which we can copy over to others. |
|
Gen AI suggestions to solve the build error: Based on the build error output, I'll analyze and provide specific fixes: • Detected Error: Multiple C++ template and type errors related to incomplete types: • Error Category: Build/Compilation • Failure Point: C++ compilation errors during Envoy build, specifically in the CEL (Common Expression Language) component • Root Cause Analysis: • Suggested Fix:
- working-directory: envoy
runs: |
bazel build --fission=no --config=clang \
--discard_analysis_cache \
--nokeep_state_after_build \
--notrack_incremental_state \
--conlyopt="-Wno-strict-prototypes" \
--cxxopt="-std=c++17" \
--host_cxxopt="-std=c++17" \
--verbose_failures -c opt //:cilium-envoy
environment:
contents:
packages:
- gcc-12-default # Downgrade from gcc-13• Explanation:
• Additional Notes:
• References:
This should get the build working while maintaining compatibility with the rest of the package requirements. |
Upgrade Cilium to 1.16.4. As part of this change we also: * use `--config=libc++` to match what our other Envoys (`envoy`, `istio-proxy`...) do for easier maintenance. * unregister upstream's toolchain that is Ubuntu specific (this helped address the build issues in #34699 ) The thread-safety analysis flagged some issue in upstream code (see cilium/proxy#1056). We will need to turn this on again after the issue is fixed. Signed-off-by: Nghia Tran <tcnghia@gmail.com>
|
superseded by #36398 |