Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

add proxy lib tests without LD_PRELOAD#1480

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
bratpiorka wants to merge4 commits intooneapi-src:main
base:main
Choose a base branch
Loading
frombratpiorka:rrudnick_proxy_tests

Conversation

@bratpiorka
Copy link
Contributor

@bratpiorkabratpiorka commentedAug 6, 2025
edited
Loading

add proxy lib tests without LD_PRELOAD + needed fixes

  • add tests w/o proxy lib to reusable_proxy wflow
  • cleanup ctors/dtors and remove priorities
  • initialize logger once (except tests)
  • do not destroy proxy lib pool before umf lib

@bratpiorkabratpiorkaforce-pushed therrudnick_proxy_tests branch 12 times, most recently from604b7aa todbd9999CompareAugust 20, 2025 09:11
Copy link

CopilotAI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds tests that verify the proxy library functionality works correctly without requiring LD_PRELOAD, implementing additional runtime detection mechanisms for the proxy library and cleaning up initialization patterns.

  • Adds proxy library detection via dlopen() in addition to LD_PRELOAD environment variable checking
  • Simplifies constructor/destructor priorities and consolidates logger initialization to use a single initialization pattern
  • Enhances CI testing to validate both proxy library usage scenarios

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
FileDescription
test/utils/utils_log.cppUpdates test expectations to reflect renamed logging function
src/utils/utils_log.cImplements single logger initialization pattern with thread-safety
src/utils/utils_load_library.cAdds debug logging for library open/close operations
src/utils/utils_common.hAdds dlopen-based proxy library detection alongside LD_PRELOAD check
src/proxy_lib/proxy_lib_linux.cRemoves constructor/destructor priority specifications
src/coarse/coarse.cSimplifies logger initialization by removing platform-specific patterns
.github/workflows/reusable_proxy_lib.ymlAdds test run without proxy library to CI workflow

Tip: Customize your code reviews with copilot-instructions.md.Create the file orlearn how to get started.

staticinlineintutils_is_running_in_proxy_lib(void) {
// check if the proxy library is loaded using dlopen()
void*proxy_lib_handle=
utils_open_library("libumf_proxy.so",UMF_UTIL_OPEN_LIBRARY_NO_LOAD);

Choose a reason for hiding this comment

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

The hardcoded library name "libumf_proxy.so" makes this code platform-specific to Linux. Consider using a platform-specific macro or variable to support different operating systems (e.g., "libumf_proxy.dll" on Windows).

Copilot uses AI. Check for mistakes.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

At least 2 approving reviews are required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@bratpiorka

[8]ページ先頭

©2009-2025 Movatter.jp