-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
ENH: Explain rebuilds #6419
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
ENH: Explain rebuilds #6419
Conversation
Codecov Report
@@ Coverage Diff @@
## 2.0 #6419 +/- ##
==========================================
+ Coverage 83.73% 83.74% +<.01%
==========================================
Files 271 271
Lines 40977 40999 +22
Branches 6001 6002 +1
==========================================
+ Hits 34314 34336 +22
Misses 5335 5335
Partials 1328 1328
Continue to review full report at Codecov.
|
Sorry for late reviewing. Once, reading phase were consisted of both builder and environment. And it was hard to understand how building process works. After some refactoring, builder only goes reading phase now. The environment object behaves like a database. According to the design, environment does not show any console messages (there are some exceptions, I know). So I'd like to move these implementations to I think outputting messages across components is hard to understand. Also hard to control. Especially, this PR outputs partial some messages. It makes hard to call this method when you like. For example, creating another instance of environment will output message. Is this expected behavior? |
I can look to see how to do this. But it will probably require creating a new env property, is this okay? If so, any preferred name for it?
This part was intentional, yes. But I thought it was better to always explain why there is a rebuild (current behavior) than to only sometimes explain why there is a rebuild (i.e., if I got rid of the new environment message). |
I think creating an instance of environment does not related with rebuild always. In future, it might be helpful for parallel build. This message adds restriction for Sphinx to create only one environment during build. |
Okay I've refactored the code so that the printing is done in
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with nits.
I'm thinking about we should add a testcase for this or not. What do you think?
Comments addressed and tests added |
Rebased to latest 2.0 branch, changed my PR to be against that branch instead of |
There was a merge conflict so I rebased and force-pushed |
Travis failure looks like an unrelated |
Sorry for late response. Merging! |
Subject: Explain why rebuilds are being triggered
Feature or Bugfix
Purpose
Give reasons why a full build is being done.
Detail
On long sphinx builds, full rebuilds are painful. With this PR, the rebuild is explained in logging:
The "Config changed" and parenthetical for
updating environment
are new.