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

Make the output reproducible #146

Merged
merged 1 commit into from Feb 28, 2018
Merged

Conversation

lamby
Copy link
Contributor

@lamby lamby commented Dec 12, 2017

Whilst working on the Reproducible Builds effort [0], we noticed
that pydoctor generates output that is not reproducible.

By iterating over the filesystem (which returns values in a non-
determinstic order) we end up with different id="" attributes in
the HTML.

This affects other packages such as "subvertpy" amongst others.

[0] https://reproducible-builds.org/

Whilst working on the Reproducible Builds effort [0], we noticed
that pydoctor generates output that is not reproducible.

By iterating over the filesystem (which returns values in a non-
determinstic order) we end up with different id="" attributes in
the HTML.

This affects other packages such as "subvertpy" amongst others.

 [0] https://reproducible-builds.org/
@codecov
Copy link

codecov bot commented Dec 12, 2017

Codecov Report

Merging #146 into master will increase coverage by 0.05%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #146      +/-   ##
==========================================
+ Coverage   62.31%   62.36%   +0.05%     
==========================================
  Files          21       20       -1     
  Lines        3375     3372       -3     
  Branches      707      707              
==========================================
  Hits         2103     2103              
+ Misses       1070     1067       -3     
  Partials      202      202
Impacted Files Coverage Δ
pydoctor/model.py 76.2% <100%> (ø) ⬆️
pydoctor/nevowhtml.py

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 db15907...31f962c. Read the comment docs.

@glyph
Copy link
Member

glyph commented Feb 28, 2018

Ideally this would come with a change, but it looks like a very straightforward change, and pydoctor doesn't have the greatest coverage to begin with :).

Thanks for this contribution!

@glyph glyph merged commit 9ca44b5 into twisted:master Feb 28, 2018
@lamby
Copy link
Contributor Author

lamby commented Feb 28, 2018

@glyph

Ideally this would come with a change,

Hm? :)

@ldanielburr
Copy link

@lamby I think @glyph meant to say "Ideally this would come with a test,..."

@lamby
Copy link
Contributor Author

lamby commented Feb 28, 2018

Ah! Thanks :)

@lamby lamby deleted the reproducible-output branch February 28, 2018 22:45
@glyph
Copy link
Member

glyph commented Mar 17, 2018

Indeed that is what I meant.

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