Skip to content

ci: Resolving nginx & prometheus build issue - #667

Open
thompson-tomo wants to merge 32 commits into
open-telemetry:mainfrom
thompson-tomo:ci_fix
Open

ci: Resolving nginx & prometheus build issue#667
thompson-tomo wants to merge 32 commits into
open-telemetry:mainfrom
thompson-tomo:ci_fix

Conversation

@thompson-tomo

@thompson-tomo thompson-tomo commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

NGINX instrumentation build failures have been addressed by explicitly using buildx & switching tests to use php docker image which exists. Have also updated the tests to use nil for remote-parent-id rather than empty string.

Prometheus bazel build resolved by specifying an older bazel version to use.

Prometheus cmake build resolved by changing zlib adding process as well as switching to a native cmake build.

This is a replacement for #633 which i accidentally broke which triggered the closing of it.

@thompson-tomo thompson-tomo changed the title Ci fix ci: Resolving nginx & prometheus build issue + web server consistency- #633 Aug 22, 2026
@thompson-tomo
thompson-tomo marked this pull request as ready for review August 22, 2026 02:57
@thompson-tomo
thompson-tomo requested a review from a team as a code owner August 22, 2026 02:57
@thompson-tomo thompson-tomo changed the title ci: Resolving nginx & prometheus build issue + web server consistency- #633 ci: Resolving nginx & prometheus build issue + web server consistency- Aug 22, 2026
@thompson-tomo thompson-tomo changed the title ci: Resolving nginx & prometheus build issue + web server consistency- ci: Resolving nginx & prometheus build issue + web server consistency Aug 22, 2026
@thompson-tomo thompson-tomo changed the title ci: Resolving nginx & prometheus build issue + web server consistency ci: Resolving nginx & prometheus build issue Aug 23, 2026
Comment thread exporters/prometheus/CMakeLists.txt Outdated
include(FetchContent)

link_directories(${CMAKE_ARCHIVE_OUTPUT_DIRECTORY})
set(ENABLE_TESTING OFF CACHE BOOL "")

@lalitb lalitb Aug 23, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you check this once - it seems to be disabling the test for both dependencies and the exporter. Also seen this in CI:

  Updating test list for fixtures
  Added 0 tests to meet fixture requirements
  Checking test dependency graph...
  Checking test dependency graph end
  No tests were found!!! ??

Comment thread exporters/prometheus/CMakeLists.txt
include(CMakePackageConfigHelpers)
file(MAKE_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cmake/${PROJECT_NAME}")

configure_package_config_file(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

With this removal, the downstream CMake projects can no longer discover and link the installed exporter through its existing package target.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Has this been resolved with the newer commits?

@lalitb

lalitb commented Aug 23, 2026

Copy link
Copy Markdown
Member

Thanks for continuing to improve the CI across contrib - these fixes are really appreciated. For this PR, the NGINX changes look good. Please revisit the Prometheus CMake workflow and dependency changes so we preserve the existing test, dependency, and packaging contracts.

@thompson-tomo

Copy link
Copy Markdown
Contributor Author

I am quite confused about the prometheus package purpose on the surface it should be an exporter just like user_events, however when you look at the cmake its name indicates otherwise.

If the name is correct then shouldn't there be a file in the root for the contrib repo & enable the prometheus to mirror other exporters. In the case of the later then the name etc should be updated.

Comment on lines +22 to +24
opentelemetry-cpp-contrib
VERSION "1.19.0" # opentelemetry-cpp-contrib 1.19.0
HOMEPAGE_URL "https://github.com/open-telemetry/opentelemetry-cpp-contrib"

@thompson-tomo thompson-tomo Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This doesn't look right. Shouldn't the name have prometheus?

@thompson-tomo
thompson-tomo requested a review from lalitb August 24, 2026 04:44
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.

2 participants