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

Provide capability for clients to build a node and walk the rule result info for the node and its dependencies #693

Closed
wants to merge 1 commit into from

Conversation

akyrtzi
Copy link
Member

@akyrtzi akyrtzi commented Aug 29, 2020

This is implemented by having the client optionally pass an implementation of a RuleResultsWalker which receives the related information for the nodes.
I preferred this method of allowing the client to "hook" in and get the info before the build call returns and does its clean up and any related "teardown".
That way we ensure the data is readily available for the client to inspect.
This method also allows to restrict the rule result queries only to the nodes related to the just built node, which simplifies things compared to exposing general APIs for querying any node, even if it wasn't involved in the build.

Related to rdar://67816715

@akyrtzi
Copy link
Member Author

akyrtzi commented Aug 29, 2020

@swift-ci smoke test

@akyrtzi
Copy link
Member Author

akyrtzi commented Aug 29, 2020

@swift-ci smoke test OS X platform

@akyrtzi akyrtzi force-pushed the walk-built-nodes-67816715 branch 2 times, most recently from bc15d6a to b4d3c1e Compare August 30, 2020 03:51
@akyrtzi
Copy link
Member Author

akyrtzi commented Aug 30, 2020

@swift-ci smoke test

…lt info for the node and its dependencies

This is implemented by having the client optionally pass an implementation of a `RuleResultsWalker` which receives the related information for the nodes.
I preferred this method of allowing the client to "hook" in and get the info before the `build` call returns and does its clean up and any related "teardown".
That way we ensure the data is readily available for the client to inspect.
This method also allows to restrict the rule result queries only to the nodes related to the just built node, which simplifies things compared to exposing general APIs for querying any node, even if it wasn't involved in the build.

Related to rdar://67816715
@akyrtzi
Copy link
Member Author

akyrtzi commented Aug 30, 2020

@swift-ci smoke test

@ddunbar
Copy link
Member

ddunbar commented Aug 31, 2020

I am not sure about this, as a direction... I’d like to understand what the motivation and trade offs are here before tackling this at a PR review level.

Do you have a high level proposal of what and why?

@akyrtzi
Copy link
Member Author

akyrtzi commented Aug 31, 2020

@shahmishal shahmishal closed this Oct 6, 2020
@shahmishal
Copy link
Member

The Swift project moved the default branch to main and deleted master branch, so GitHub automatically closed the PR. Please re-create pull request with main branch.

More detail about the branch update - https://forums.swift.org/t/updating-branch-names/40412

@akyrtzi akyrtzi deleted the walk-built-nodes-67816715 branch October 14, 2020 16:10
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.

None yet

3 participants