Skip to content

[fix] Use 'profile_build' (if given) to create graph for the test_package functionality - #7182

Merged
danimtb merged 8 commits into
conan-io:developfrom
jgsogo:fix/xbuild-test_package
Jun 30, 2020
Merged

danimtb merged 8 commits into
conan-io:developfrom
jgsogo:fix/xbuild-test_package

Conversation

@jgsogo

@jgsogo jgsogo commented Jun 10, 2020

Copy link
Copy Markdown
Contributor

Changelog: Fix: Graph created for the test_package/conanfile.py recipe takes the profile:build if given.
Docs: omit

Related to some comments in #7132 (comment)

The test_package functionality was not taking into account the profile:build so the tools.cross_building tool was not able to identify context properly... and build_requires in the test_package recipe didn't assign to the proper context.

@jgsogo
jgsogo marked this pull request as draft June 10, 2020 15:25

@jgsogo jgsogo left a comment

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.

Still some doubts I need to test

Comment thread conans/client/cmd/build.py Outdated
Comment thread conans/client/graph/graph_manager.py Outdated
Comment thread conans/client/graph/graph_manager.py Outdated
@jgsogo jgsogo self-assigned this Jun 10, 2020
@jgsogo jgsogo added this to the 1.27 milestone Jun 19, 2020

@memsharded memsharded left a comment

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.

I'd say this is already good as-is, despite other possible fixes or other open issues

Comment thread conans/test/functional/cross_building/test_package_test.py Outdated
@jgsogo
jgsogo marked this pull request as ready for review June 29, 2020 14:50
@jgsogo

jgsogo commented Jun 29, 2020

Copy link
Copy Markdown
Contributor Author

I've removed the TODOs and refactor the new tests to avoid duplicated code. I also think it is good as it is.

@jgsogo
jgsogo requested a review from memsharded June 29, 2020 14:51
@jgsogo jgsogo assigned danimtb and unassigned jgsogo Jun 29, 2020
@danimtb
danimtb merged commit 64599cf into conan-io:develop Jun 30, 2020
@jgsogo
jgsogo deleted the fix/xbuild-test_package branch June 30, 2020 11:47
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.

3 participants