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

[BUILD] Patches for building on AIX #3127

Merged
merged 8 commits into from
Nov 12, 2024
Merged

[BUILD] Patches for building on AIX #3127

merged 8 commits into from
Nov 12, 2024

Conversation

tjcw
Copy link
Contributor

@tjcw tjcw commented Nov 6, 2024

Fixes #3126

Changes

Build scripts and code tweaks to enable build on AIX

For significant contributions please make sure you have completed the following items:

  • CHANGELOG.md updated for non-trivial changes
  • Unit tests have been added
  • Changes in public API reviewed

@tjcw tjcw requested a review from a team as a code owner November 6, 2024 10:19
Copy link

linux-foundation-easycla bot commented Nov 6, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

Copy link

netlify bot commented Nov 6, 2024

Deploy Preview for opentelemetry-cpp-api-docs canceled.

Name Link
🔨 Latest commit 4c908f7
🔍 Latest deploy log https://app.netlify.com/sites/opentelemetry-cpp-api-docs/deploys/6731c42c6011c400087d1912

@marcalff marcalff added the pr:waiting-on-cla Waiting on CLA label Nov 6, 2024
Copy link

codecov bot commented Nov 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.83%. Comparing base (497eaf4) to head (4c908f7).
Report is 161 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3127      +/-   ##
==========================================
+ Coverage   87.12%   87.83%   +0.71%     
==========================================
  Files         200      195       -5     
  Lines        6109     6136      +27     
==========================================
+ Hits         5322     5389      +67     
+ Misses        787      747      -40     

see 100 files with indirect coverage changes

cmake/tools.cmake Outdated Show resolved Hide resolved
@tjcw
Copy link
Contributor Author

tjcw commented Nov 6, 2024 via email

@tjcw
Copy link
Contributor Author

tjcw commented Nov 6, 2024

Is the CI failure something that I have caused ? Can someone tell me more about what is broken, and give me a test case to reproduce the fault?

@lalitb
Copy link
Member

lalitb commented Nov 6, 2024

Is the CI failure something that I have caused ? Can someone tell me more about what is broken, and give me a test case to reproduce the fault?

@tjcw The CI failure is for the easyCLA you need to sign:

image

The PR can be merged only after that, and once all comments are resolved.

@tjcw
Copy link
Contributor Author

tjcw commented Nov 6, 2024

OK. I am currently waiting for the person I think is IBM's CLA coordinator to turn round the email.
I have management permission to make this contribution and I will sign any reasonable CLA so I am sure all will be well in due course.

@tjcw
Copy link
Contributor Author

tjcw commented Nov 9, 2024

I just got notified of a CI failure with this. It looks to me like a configuration or permission failure rather than a problem with my code. Can someone check please?

@marcalff
Copy link
Member

marcalff commented Nov 9, 2024

I just got notified of a CI failure with this. It looks to me like a configuration or permission failure rather than a problem with my code. Can someone check please?

The following build failed in CI:

This looks unrelated, restarting this build.

[edit]

Somehow, this test fails and spins forever:
Start 44: exporter.otlp.OtlpGrpcExporterFactoryTest.BuildTest

* Special considerations for HostArchValues
*
* The sys/systemcfg.h header on AIX is known to define an IA64 macro,
* which collides with HostArchValues::IA64.
Copy link
Member

Choose a reason for hiding this comment

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

This work around is no longer necessary, after:

Change naming to use camel case, to avoid collisions with macros.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will change the PR to withdraw this workaround

@tjcw
Copy link
Contributor Author

tjcw commented Nov 9, 2024

Does my PR make this test loop forever, or does this occur without my PR ?
If my PR causes it, please can you provide the test case or a description of what it does so I can reproduce the problem. You can email the test case to me as [email protected]

@marcalff
Copy link
Member

marcalff commented Nov 9, 2024

Does my PR make this test loop forever, or does this occur without my PR ? If my PR causes it, please can you provide the test case or a description of what it does so I can reproduce the problem. You can email the test case to me as [email protected]

This is much likely an issue in the github worker itself, this happens some times (the github runner was upgraded lately).

I will investigate it separately.

[edit]

The only change in this area that can affect grpc is file cmale/opentelemetry-proto.cmake,
but not sure if/how it can cause issues if this is the root cause.

@tjcw
Copy link
Contributor Author

tjcw commented Nov 11, 2024

I have backed out the change to cmake/opentelemetry-proto.cmake ; I can try applying it as a separate PR if necessary.

@lalitb lalitb removed the pr:waiting-on-cla Waiting on CLA label Nov 11, 2024
Copy link
Member

@marcalff marcalff left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the contribution

@marcalff marcalff changed the title Patches for building on AIX [BUILD] Patches for building on AIX Nov 12, 2024
@marcalff marcalff merged commit a713947 into open-telemetry:main Nov 12, 2024
56 checks passed
malkia added a commit to malkia/opentelemetry-cpp that referenced this pull request Nov 12, 2024
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.

Build on IBM AIX
4 participants