-
Notifications
You must be signed in to change notification settings - Fork 54
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
Actions for Generating and Checking Jupyter Notebooks #258
Actions for Generating and Checking Jupyter Notebooks #258
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## RC_v1.5.0 #258 +/- ##
=============================================
+ Coverage 47.41% 54.73% +7.32%
=============================================
Files 14 15 +1
Lines 2708 3144 +436
=============================================
+ Hits 1284 1721 +437
+ Misses 1424 1423 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
I have adjusted the trigger events according to the suggestions of @w-k-jones. |
ha, that's amazing. Your CI discovers a bug before even being implemented. I love it. We should probably fix that. I think the notebooks in |
I agree, running on the notebooks on |
Alright, thank you both for the clarification! The "Generate Jupyter Notebooks" action currently does not run on the notebooks in |
I think that I would be a good idea to make it run on the notebooks in |
I agree with you @w-k-jones, I have updated the path in the corresponding |
@lettlini Are you happy for this to be reviewed and moved into an active PR? Given that your new action will fail (due to bugs in the notebooks), we should probably fix the notebook bugs before merging. That's probably a new issue and PR, and should be done before releasing v1.5.0. |
I think this PR is ready for being reviewed. I agree with you @freemansw1, we should fix the errors in the notebooks before merging this PR. |
Great, awesome work @lettlini ! Do you have time to fix the notebook bugs or should someone else pick that up? |
I think I already found the problem. I am going to create a PR shortly |
It seems to have been just one notebook that was causing errors. I think I fixed the problem with #269. |
It seems that
What do you think is the best course of action? |
It's funny; we had a whole conversation about this. I'm inclined for option 2, although longer-term, I'm inclined to have pandas save to non-HDF formats (well, longer term, this is irrelevant due to the xarray transition) |
I think for now we should be keep |
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.
Looks good overall. My only comments are regarding whether we need a specific version of python, as this may lead to a bit more overhead in future. It's very minor, so not a blocking issue
I'm not opposed to this, but we did explicitly remove it (#119 ) and I'm hesitant to then re-add it. |
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.
This is excellent work, and I'm happy for this to be merged once @w-k-jones's last comments around version and pytables
are resolved.
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.
Great! Thanks for the fixes @lettlini , I think this is now ready to merge. The more general pytables
issue can be left for another day, as it's been handled within the scope of this PR
@lettlini I think we're ready to merge if you are. |
I'm happy for this to be merged. |
Ok, potential problem here. When running the workflow after merging this the following error occurred on the
The repository has read and write permissions enabled for workflow actions, so I'm not sure what is going on here. Perhaps the write protections are preventing the commit to the RC branch? |
Sorry this is causing problems! I think you are right with the assumption that this issue is caused by the branch protection rules. I simply overlooked this. |
https://github.com/orgs/community/discussions/13836 may be a good resource here. Happy to edit the branch protections as needed for this use case. |
Thank you @freemansw1 for the reference. After looking at this problem again I am unfortunately convinced that there is no easy solution to this problem. I think the branch protection rules are a very good idea and should definitely be kept. So I would like to suggest that we disable this action for now and look for another way the jupyter notebook generation can be automated. Since the |
There is a potential workaround; we can exclude specific accounts from the protection rules. Would it be possible to make an action account for tobac and use that to submit the generated notebooks? |
According to the link posted by @freemansw1 that could work. I'm just not really convinced that this is a good solution. |
@lettlini I'd like to understand more about your reasoning here... it seems to me like making an app under our organization with these special permissions wouldn't be too bad. |
If I understand this correctly, @w-k-jones is proposing the following:
(Summarized from https://github.com/orgs/community/discussions/13836#discussion-3973425) Is this what you meant @w-k-jones? |
@lettlini I was thinking of making the action an app, rather than tied to a user, as is done here: https://github.com/orgs/community/discussions/13836#discussioncomment-4851440 . We should be able to make an app under the tobac-project organization and give the CI that access token without it being a new user account, I think? This is unclear to me. |
I'm going to open an issue on this. I think resolving this one way or another needs to be a blocking issue before v1.5 is released. I'd like to resolve it such that we generate the notebooks through CI, but if that's not possible, we will need to manually regenerate them before release. |
This pull request adds actions for
examples/
(pushing generated notebooks)examples/
run without any errors