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

Add action for setting up parameters docs #2450

Merged
merged 11 commits into from
Aug 24, 2020

Conversation

hdoupe
Copy link
Collaborator

@hdoupe hdoupe commented Aug 4, 2020

@MaxGhenis When you get a chance, can you post the commands needed to create the parameters docs? You're also welcome to add commits to this PR with the commands.

Once those are up, I'll try to deploy this on my fork and see if it works.

@MaxGhenis
Copy link
Contributor

Sorry for the delay, it's just python docs/guide/make/make_uguide.py

@hdoupe
Copy link
Collaborator Author

hdoupe commented Aug 20, 2020

@MattHJensen #2450 is ready. Hope it works! 🤞

@MattHJensen
Copy link
Contributor

@hdoupe, would you mind restating what this new action is going to do, and when?

@hdoupe
Copy link
Collaborator Author

hdoupe commented Aug 20, 2020

It updates the parameter docs after each release is published. This way the parameter docs are stable in between releases even if new parameters are added/removed on the master branch.

@hdoupe
Copy link
Collaborator Author

hdoupe commented Aug 20, 2020

The chat logs for a little posterity:
Screenshot from 2020-08-20 13-07-55

@codecov
Copy link

codecov bot commented Aug 20, 2020

Codecov Report

Merging #2450 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2450   +/-   ##
=======================================
  Coverage   99.92%   99.92%           
=======================================
  Files          13       13           
  Lines        2582     2582           
=======================================
  Hits         2580     2580           
  Misses          2        2           
Impacted Files Coverage Δ
taxcalc/policy.py 100.00% <0.00%> (ø)

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 8e86cbc...61248df. Read the comment docs.

@MattHJensen
Copy link
Contributor

I'm not sure that I have a problem with this -- still need to think about it -- but I want to clarify: the downside of this approach is that broken docs won't be caught until after the release. At that point, the build will fail and we'll have to scramble to issue a new bugfix release. Is that right?

@MaxGhenis
Copy link
Contributor

How about adding it to https://github.com/PSLmodels/Tax-Calculator/blob/master/.github/workflows/check_jupyterbook.yml to avoid Matt's concern?

@MattHJensen
Copy link
Contributor

How about adding it to https://github.com/PSLmodels/Tax-Calculator/blob/master/.github/workflows/check_jupyterbook.yml to avoid Matt's concern?

This makes sense to me.

@hdoupe
Copy link
Collaborator Author

hdoupe commented Aug 21, 2020

@MaxGhenis and @MattHJensen I removed the parameters github action and moved the parameter docs deploy command to the regular jupyterbook deploy action.

@MattHJensen
Copy link
Contributor

@hdoupe, I think @MaxGhenis's suggestion was to keep your new action to deploy on Releases but to test the deploy on PRs. I may have misunderstood though.

@@ -29,6 +29,8 @@ jobs:
pip install -e .
cd docs
Copy link
Contributor

Choose a reason for hiding this comment

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

Need to run make_uguide.py first. These four lines could be consolidated to:

python docs/guide/make/make_uguide.py
jb build docs/.

Or could cd docs once at the beginning.

@MaxGhenis
Copy link
Contributor

@hdoupe, I think @MaxGhenis's suggestion was to keep your new action to deploy on Releases but to test the deploy on PRs. I may have misunderstood though.

Yes, though consolidating deploy actions also makes sense.

@MattHJensen
Copy link
Contributor

MattHJensen commented Aug 21, 2020

Yes, though consolidating deploy actions also makes sense.

Yea, I'm now ok with whatever is easiest here, even if it means these get deployed on every PR to master. I am planning to open an issue next week discussing how the project can work towards continuous deployment, which would resolve any concerns about docs and releases being out of sync.

@hdoupe
Copy link
Collaborator Author

hdoupe commented Aug 23, 2020

@MaxGhenis can you give #2450 another look over when you get a chance? Sorry for misunderstanding your comment earlier. Now, things are set up so:

  • On PR's, the make_uguide.py script is run along with the other Jupyter Book build commands.
  • On release, the updated parameter docs are deployed.

Is this what you and @MattHJensen had in mind?

@MaxGhenis
Copy link
Contributor

LGTM, thanks @hdoupe

@MattHJensen
Copy link
Contributor

@hdoupe, thanks a lot for your work on this, and @MaxGhenis, thanks for the review and suggestions.

@hdoupe, drop the WIP tag when this is ready to go and I'll give it a last look and merge.

Co-authored-by: Max Ghenis <mghenis@gmail.com>
@hdoupe
Copy link
Collaborator Author

hdoupe commented Aug 24, 2020

@MattHJensen sure thing! Sorry for the delay on getting the updates in. I just added @MaxGhenis's commit. Once the tests pass, this will be good to go.

@hdoupe hdoupe changed the title [WIP] Add action for setting up parameters docs Add action for setting up parameters docs Aug 24, 2020
@MattHJensen
Copy link
Contributor

I'm not sure why the linux 3.8 build has been queued for hours. I'm going to restart the tests,

@MattHJensen MattHJensen reopened this Aug 24, 2020
@MattHJensen
Copy link
Contributor

Merging!

@MattHJensen MattHJensen merged commit 483a4e4 into PSLmodels:master Aug 24, 2020
@hdoupe hdoupe deleted the docs-action branch August 24, 2020 20:32
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.

3 participants