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

Experiment Architecture Doc [Resolves #579] #580

Merged
merged 1 commit into from
Feb 14, 2019
Merged

Conversation

thcrock
Copy link
Contributor

@thcrock thcrock commented Jan 28, 2019

  • Fill in experiment architecture document
  • Add markdown inline graphviz to embed dependency graphs without
    needing to prerender anything.

@codecov-io
Copy link

codecov-io commented Jan 28, 2019

Codecov Report

Merging #580 into master will increase coverage by 0.25%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #580      +/-   ##
==========================================
+ Coverage   82.23%   82.49%   +0.25%     
==========================================
  Files          84       83       -1     
  Lines        4875     4833      -42     
==========================================
- Hits         4009     3987      -22     
+ Misses        866      846      -20
Impacted Files Coverage Δ
src/triage/validation_primitives.py 70.96% <0%> (-3.32%) ⬇️
src/triage/component/results_schema/schema.py 97.6% <0%> (-0.06%) ⬇️
src/triage/experiments/base.py 96.05% <0%> (-0.06%) ⬇️
src/triage/component/catwalk/evaluation.py 97.41% <0%> (-0.03%) ⬇️
src/triage/util/db.py 100% <0%> (ø) ⬆️
...c/versions/0bca1ba9706e_add_matrix_uuid_to_eval.py
src/triage/component/catwalk/storage.py 92.4% <0%> (+0.21%) ⬆️
src/triage/experiments/validate.py 76% <0%> (+0.31%) ⬆️

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 d4cc6dd...9e42e09. Read the comment docs.

docs/mkdocs.yml Outdated
@@ -5,6 +5,9 @@ repo_url: http://github.com/dssg/triage
edit_uri: blob/master/docs/templates
site_description: 'Documentation for Triage.'

markdown_extensions:
- inline_graphviz
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure why I'm getting Config value: 'markdown_extensions'. Error: Failed loading extension "inline_graphviz". when I ran mkdocs serve.

Copy link
Member

Choose a reason for hiding this comment

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

Same issue here.

Not sure if this applies.

@thcrock Any reason you can think of that we'd see that discrepancy between our machines?

Copy link
Member

Choose a reason for hiding this comment

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

The change suggested in that Github issue, changing the markdown extension reference to "mdx_inline_graphviz," gets docs to serve.

However, this is the error I see when I navigate to the architecture docs page (/experiments/architecture/):

image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wonder if the difference in my machine is that I have graphviz itself installed (on the system!) while it's probably not in requirements. I'll look into it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't see a possibility for pure python graphviz: achieving this inline may be impossible without also having the user install graphviz on their own. The graphviz python package generates DOT files using Python but depends on the dot executable to run.

It may be easier to just bundle the DOT files, render these as images, and making it a needed step to rerender them to update the doc. Not as cool as inline, but may be necessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Or....it looks like instead of graphviz I can do this with Mermaid: squidfunk/mkdocs-material#693

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It actually looks way better with mermaid, even though there is a bit more work to get it started in a doc. Pushing changes soon

Copy link
Member

Choose a reason for hiding this comment

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

Works. And, agreed, much nicer.

Copy link
Member

@jesteria jesteria left a comment

Choose a reason for hiding this comment

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

looks good. some trivial editing, and issues with compiling the documentation locally.

requirement/dev.txt Outdated Show resolved Hide resolved
docs/mkdocs.yml Outdated
@@ -5,6 +5,9 @@ repo_url: http://github.com/dssg/triage
edit_uri: blob/master/docs/templates
site_description: 'Documentation for Triage.'

markdown_extensions:
- inline_graphviz
Copy link
Member

Choose a reason for hiding this comment

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

Same issue here.

Not sure if this applies.

@thcrock Any reason you can think of that we'd see that discrepancy between our machines?

docs/mkdocs.yml Outdated
@@ -5,6 +5,9 @@ repo_url: http://github.com/dssg/triage
edit_uri: blob/master/docs/templates
site_description: 'Documentation for Triage.'

markdown_extensions:
- inline_graphviz
Copy link
Member

Choose a reason for hiding this comment

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

The change suggested in that Github issue, changing the markdown extension reference to "mdx_inline_graphviz," gets docs to serve.

However, this is the error I see when I navigate to the architecture docs page (/experiments/architecture/):

image

docs/sources/experiments/architecture.md Show resolved Hide resolved
docs/sources/experiments/architecture.md Show resolved Hide resolved
@jesteria
Copy link
Member

I say :shipit:

@tweddielin, look good to you?

@jesteria
Copy link
Member

@thcrock Out of place, I know; but, in reviewing, I saw the "upgrading an experiment" links were garbled. So, fixed, in a piggy-backed commit.

image

@thcrock thcrock assigned tweddielin and unassigned jesteria Feb 5, 2019
- Fill in experiment architecture document
- Use mermaid to embed dependency graphs without having to prerender
anything
@tweddielin tweddielin merged commit d21dcc8 into master Feb 14, 2019
@tweddielin tweddielin deleted the architecture_doc branch February 14, 2019 19:19
@jesteria
Copy link
Member

FYI, I recommitted my "out of place" change to master; but, the inline review suggestions, which had been accepted and committed, appear to have been lost in the force-push, (I assume because they weren't first pulled down from Github/origin).

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.

4 participants