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

Create a pants.init package. #4356

Merged
merged 1 commit into from Mar 23, 2017

Conversation

benjyw
Copy link
Sponsor Contributor

@benjyw benjyw commented Mar 21, 2017

Provides some sanity to the dependencies of the init sequence:
previously they looped between packages, creating package-level,
and in some cases even target-level cycles.

Moves all code related to pants startup (options initialization,
plugin loading, daemon running etc.) to a single package.
Breaks up dependency cycles by passing a reference to
clean_global_runtime_state() into the PantsDaemon and a
reference to the pantsd launcher into the PantsDaemonKill
task (via the context).

@stuhood
Copy link
Sponsor Member

stuhood commented Mar 21, 2017

Argh, sorry: I think this will be affected by 52e2648 having left the native_engine_version floating. Will fix with either #4340 or #4357

@benjyw
Copy link
Sponsor Contributor Author

benjyw commented Mar 21, 2017 via email

@kwlzn
Copy link
Member

kwlzn commented Mar 22, 2017

filed #4359 for it

@benjyw benjyw force-pushed the fix_init_sequence_cycle branch 2 times, most recently from 04d430d to 68c8b2e Compare March 22, 2017 04:45
@benjyw benjyw requested a review from kwlzn March 22, 2017 05:48
Provides some sanity to the dependencies of the init sequence:
previously they looped between packages, creating package-level,
and in some cases even target-level cycles.

Moves all code related to pants startup (options initialization,
plugin loading, daemon running etc.) to a single package.
Breaks up dependency cycles by passing a reference to
clean_global_runtime_state() into the PantsDaemon and a
reference to the pantsd launcher into the PantsDaemonKill
task (via the context).
@benjyw
Copy link
Sponsor Contributor Author

benjyw commented Mar 23, 2017

?

Sorry to nag, but I've got a tower of comments waiting on this one... And the sooner we can get on the new python pipeline the better, I reckon.

@stuhood
Copy link
Sponsor Member

stuhood commented Mar 23, 2017

Apologies... saw the iteration on CI, and wasn't sure it was ready. Looking.

Copy link
Sponsor Member

@stuhood stuhood left a comment

Choose a reason for hiding this comment

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

Looks great. Thank you!

Copy link
Member

@kwlzn kwlzn left a comment

Choose a reason for hiding this comment

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

lgtm

@benjyw benjyw merged commit ba0994e into pantsbuild:master Mar 23, 2017
@benjyw benjyw deleted the fix_init_sequence_cycle branch March 23, 2017 21:56
lenucksi pushed a commit to lenucksi/pants that referenced this pull request Apr 25, 2017
Provides some sanity to the dependencies of the init sequence:
previously they looped between packages, creating package-level,
and in some cases even target-level cycles.

Moves all code related to pants startup (options initialization,
plugin loading, daemon running etc.) to a single package.
Breaks up dependency cycles by passing a reference to
clean_global_runtime_state() into the PantsDaemon and a
reference to the pantsd launcher into the PantsDaemonKill
task (via the context).
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