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

DM-35792: Check config existence before making it a dependency. #110

Merged
merged 1 commit into from Aug 1, 2022

Conversation

ktlim
Copy link
Contributor

@ktlim ktlim commented Aug 1, 2022

No description provided.

@codecov
Copy link

codecov bot commented Aug 1, 2022

Codecov Report

Merging #110 (bbd554a) into main (7374e9d) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #110      +/-   ##
==========================================
- Coverage   19.73%   19.72%   -0.02%     
==========================================
  Files          18       18              
  Lines        1956     1957       +1     
  Branches      519      520       +1     
==========================================
  Hits          386      386              
- Misses       1536     1537       +1     
  Partials       34       34              
Impacted Files Coverage Δ
python/lsst/sconsUtils/builders.py 10.15% <0.00%> (-0.04%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7374e9d...bbd554a. Read the comment docs.

@ktlim ktlim merged commit 5b9212a into main Aug 1, 2022
@ktlim ktlim deleted the tickets/DM-35792 branch August 1, 2022 21:46
self.results.extend(config)
if os.path.exists(config):
env.Depends(doc, config)
self.results.extend(config)
Copy link
Member

@kfindeisen kfindeisen Aug 1, 2022

Choose a reason for hiding this comment

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

I'm trying to understand this change for DM-35793, and I've managed to get very confused.

At first glance, this looks like a shadowing problem (config refers to two different objects over the lifetime of the function), but on second thought the original code makes a lot more sense.

At this point, config is a Command object that, if the doxygen.conf.in file is missing, has a target (doxygen.conf) but no source. So it seems strange that calling env.Depends on this object would introduce a dependency on doxygen.conf.in when the object appears to have been constructed to not know about it. Instead, the new code looks like it avoids creating doxygen.conf entirely, which I assume is still needed to get the right dependencies (tag files), base.inc setttings, etc.

Am I missing something?

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