-
Notifications
You must be signed in to change notification settings - Fork 15
Make docs builds fail on notebook execution errors and fix all doc issues #369
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 docs builds fail on notebook execution errors and fix all doc issues #369
Conversation
Co-authored-by: saulshanabrook <[email protected]>
Co-authored-by: saulshanabrook <[email protected]>
CodSpeed Performance ReportMerging #369 will degrade performances by 11.3%Comparing Summary
Benchmarks breakdown
Footnotes |
… updating API usage Co-authored-by: saulshanabrook <[email protected]>
Co-authored-by: saulshanabrook <[email protected]>
saulshanabrook
left a comment
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.
@copilot Can you respond adjust based on this review?
Also, can you change:
egraph.run(10)
print(egraph.extract(x_mult_y.ncols()))
egraph.run(10)
print(egraph.extract(x_mult_y.nrows()))
To just run once, like:
egraph.run(10)
print(egraph.extract(x_mult_y.ncols()))
print(egraph.extract(x_mult_y.nrows()))
…_times.rst, fix double run Co-authored-by: saulshanabrook <[email protected]>
Co-authored-by: saulshanabrook <[email protected]>
|
@codex can you fix the remaining two docs here so they work? Can you also run the required formatting so it passes in CI? |
|
Summary
Testing
|
|
@actions-user changelog |
…ocs-builds-fail-on-notebook-execution Fix docs execution for community talk and indexing notebooks
…-4c89-a867-98c9c8bbfad8
6dd4810 to
4bcad9a
Compare
💡 Codex ReviewLines 67 to 71 in 6dd4810
The new ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Documentation tutorials used deprecated
@egraph.class_decorator causing AttributeError, but docs builds were passing becausenb_execution_raise_on_error = Falsesilently ignored execution failures.Changes
nb_execution_raise_on_error = Trueto fail builds on notebook errorsconf.pyfrom being processed as a notebook (it's a Sphinx config file)docs/sg_execution_times.rst(auto-generated file)@egraph.class_decorator (classes now inherit directly fromExpr)@egraph.function→@functionegraph.simplify(expr, n)→egraph.run(n)+egraph.extract(expr)egraph.run(10)call@egraph.class_and@egraph.functionusages@egraph.class_decoratorcheck()to useeq().to()instead of==@function(default=)syntaxTemporary exclusions
Only 2 notebooks excluded due to unrelated errors (not @egraph.class_ issues):
explanation/2024_03_17_community_talk.ipynb- sklearn configuration errorexplanation/indexing_pushdown.ipynb- array_api_module NameErrorBefore:
After:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.