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

[pantsd] Clear the global state of subsystems earlier, plus refactorings #8130

Merged

Conversation

blorente
Copy link
Contributor

Problem

In DaemonPantsRunner, we were clearing the global options state after we had warmed the v1 graph and ran every v2 rule. This means that those runs were running with potentially old state.

Solution

Move the clearing of Subsystem and related global state to before we compute v2 rules.
This state is re-initialized in LocalPantsRunner.parse_options(), right after clearing.

Commits should be independently reviewable. The first commit are some refactorings unrelated to this change, the second one is the actual change. I deemed this a small enough change to bunch them together.

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.

Thanks!

@blorente blorente merged commit a63ce2f into pantsbuild:master Aug 1, 2019
@stuhood stuhood added this to the 1.19.x milestone Aug 1, 2019
stuhood pushed a commit that referenced this pull request Aug 1, 2019
…ngs (#8130)

**Problem**
In DaemonPantsRunner, we were clearing the global options state after we had warmed the v1 graph and ran every v2 rule. This means that those runs were running with potentially old state.

**Solution**
Move the clearing of Subsystem and related global state to before we compute v2 rules.
This state is re-initialized in LocalPantsRunner.parse_options(), right after clearing.

Commits should be independently reviewable. The first commit are some refactorings unrelated to this change, the second one is the actual change. I deemed this a small enough change to bunch them together.
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

2 participants