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

linkage_checker: test indirect dependencies. #17286

Merged
merged 1 commit into from
May 14, 2024
Merged

Conversation

MikeMcQuaid
Copy link
Member

@MikeMcQuaid MikeMcQuaid commented May 13, 2024

Check for indirect dependencies with linkage with linkage in strict test mode.

This should be done to ensure we accurately declare dependencies in homebrew/core.

Alternate/complementary approach in Homebrew/homebrew-test-bot#1059

@@ -78,8 +79,8 @@ def broken_library_linkage?(test: false, strict: false)

issues = [@broken_deps, @broken_dylibs]
if test
issues += [@unwanted_system_dylibs, @version_conflict_deps]
issues += [@undeclared_deps, @files_missing_rpaths, @executable_path_dylibs] if strict
issues += [@unwanted_system_dylibs, @version_conflict_deps, @indirect_deps, @undeclared_deps]
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 keep @undeclared_deps and @indirect_deps under strict for now, because their failures will make brew attempt a local source build after attempting a bottle install that fails these linkage tests

Copy link
Member Author

Choose a reason for hiding this comment

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

@carlocab Ah, good point. Do you think the approach in Homebrew/homebrew-test-bot#1059 of requiring strict instead makes more sense? Maybe should be gated to just official taps?

Copy link
Member Author

Choose a reason for hiding this comment

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

@carlocab updated this to add/keep them behind strict.

Copy link
Member

Choose a reason for hiding this comment

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

Not seeing the update. Did you forget to push? My connection is poor at the moment tho, so I may still be seeing an old version.

Copy link
Member Author

Choose a reason for hiding this comment

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

@carlocab Had bad airport internet, pushed now!

@MikeMcQuaid MikeMcQuaid changed the title linkage_checker: stricter linkage tests. linkage_checker: test indirect dependencies. May 13, 2024
Check for indirect dependencies with linkage with linkage in strict
test mode.

This should be done to ensure we accurately declare dependencies in
homebrew/core.
@carlocab carlocab merged commit 8378cc8 into master May 14, 2024
25 checks passed
@carlocab carlocab deleted the stricter_linkage_test branch May 14, 2024 03:59
@github-actions github-actions bot added the outdated PR was locked due to age label Jun 14, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants