-
Notifications
You must be signed in to change notification settings - Fork 23
ci(doc): add doc build examples caching #2342
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
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
d60d3c8
ci(doc): add doc build caching
PProfizi 676d60a
Add generated examples to cached build directory
PProfizi 70c9e45
Workaround immutable cache
PProfizi ede4392
Merge branch 'master' into ci/add_doc_build_cache
PProfizi 67c8c06
Improve cache key logic
PProfizi ec9a34b
Print DPF server path at beginning of doc generation
PProfizi 3cd65e4
Merge branch 'master' into ci/add_doc_build_cache
PProfizi eae0f80
clean examples only in doc-clean tox environment
PProfizi 16a9b75
Cache the doc/source/examples folder
PProfizi 9cd9511
Generate examples in doc/source/examples
PProfizi cb3c999
Fix autoapi detection of changed configuration
PProfizi 544630e
Try with sphinx-autoapi instead of ansys-sphinx-theme[autoapi] extension
PProfizi c32650d
Add autosectionlabel_prefix_document = True in conf.py
PProfizi b59ff8b
Revert "Try with sphinx-autoapi instead of ansys-sphinx-theme[autoapi…
PProfizi 39dae0d
Fix suppress_warnings config in conf.py
PProfizi a749326
Target the dev branch of ansys-sphinx-theme for testing the autoapi c…
PProfizi ddd1e2c
Merge branch 'master' into ci/add_doc_build_cache
PProfizi e31af90
Target released ansys-sphinx-theme==1.5.3
PProfizi c68d46d
Merge branch 'master' into ci/add_doc_build_cache
PProfizi ba22ac7
Try caching only examples
PProfizi 7c76627
Fix cache restore-keys
PProfizi cbc9e34
Remove run-id from cache key
PProfizi 0364e39
Merge branch 'master' into ci/add_doc_build_cache
PProfizi 35f2ffd
Add run_id back into the key
PProfizi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| # | ||
| def reset_servers(gallery_conf, fname, when): | ||
| import gc | ||
|
|
||
| import psutil | ||
|
|
||
| from ansys.dpf.core import server | ||
|
|
||
| gc.collect() | ||
| server.shutdown_all_session_servers() | ||
|
|
||
| proc_name = "Ans.Dpf.Grpc" | ||
| nb_procs = 0 | ||
| for proc in psutil.process_iter(): | ||
| try: | ||
| # check whether the process name matches | ||
| if proc_name in proc.name(): | ||
| proc.kill() | ||
| nb_procs += 1 | ||
| except psutil.NoSuchProcess: | ||
| pass | ||
| print(f"Counted {nb_procs} {proc_name} processes {when} example {fname}.") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.