GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Replace Netlify with Read the Docs build previews by hugovk · Pull Request #103843 · python/cpython Conversation
| ||||||||||||||||||||||||||||||
|
Nice idea! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
The docs still build without the config, but it's slower because it builds more than just html, and also installs the other default stuff we don't need when not overriding the build commands. Iirc about 5 mins to 2 mins. But yes, we can also merge first. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Great idea. Thanks @hugovk |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-authored-by: Oleg Iarygin <[email protected]> Co-authored-by: C.A.M. Gerlach <[email protected]>
| @@ -0,0 +1,24 @@ | |||
| name: Read the Docs PR preview | |||
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Somewhat unrelated to this specific PR, but I think it would be useful to add a comment (or a docstring-like description if there is a field for it) to document what the workflow is for. If it's not possible to do it here, we could document the workflows either in a README in the dir or somewhere in the devguide.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Good suggestion @ezio-melotti
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Added!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @hugovk !
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@Mariatta has created an RtD project https://readthedocs.org/projects/cpython-previews/ and added me and @ambv as maintainers. Anyone else to add? The first build passed!
On https://readthedocs.org/dashboard/cpython-previews/edit/ I added a "Description" and "Project homepage": On https://readthedocs.org/dashboard/cpython-previews/advanced/ I checked "Disable Analytics", "Show version warning" and "Build pull requests for this project": Everything else is the default. Let's merge this PR with the config, it'll make the build times quicker. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Pre-merge buildBuild took 430 seconds with Python 3.7, built html and htmlzip: https://readthedocs.org/projects/cpython-previews/builds/20337268/ Post-merge build with config fileBuild took 247 seconds with Python 3.11, built html only: https://readthedocs.org/projects/cpython-previews/builds/20337291/ PR deploy previewHere's #103457 showing the preview banner at https://cpython-previews--103457.org.readthedocs.build/en/103457/ |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@ewdurbin Please could you disable Netlify via https://app.netlify.com/sites/python-cpython-preview/settings/deploys: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Done. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
* main: (26 commits) pythongh-104028: Reduce object creation while calling callback function from gc (pythongh-104030) pythongh-104036: Fix direct invocation of test_typing (python#104037) pythongh-102213: Optimize the performance of `__getattr__` (pythonGH-103761) pythongh-103895: Improve how invalid `Exception.__notes__` are displayed (python#103897) Adjust expression from `==` to `!=` in alignment with the meaning of the paragraph. (pythonGH-104021) pythongh-88496: Fix IDLE test hang on macOS (python#104025) Improve int test coverage (python#104024) pythongh-88773: Added teleport method to Turtle library (python#103974) pythongh-104015: Fix direct invocation of `test_dataclasses` (python#104017) pythongh-104012: Ensure test_calendar.CalendarTestCase.test_deprecation_warning consistently passes (python#104014) pythongh-103977: compile re expressions in platform.py only if required (python#103981) pythongh-98003: Inline call frames for CALL_FUNCTION_EX (pythonGH-98004) Replace Netlify with Read the Docs build previews (python#103843) Update name in acknowledgements and add mailmap (python#103696) pythongh-82054: allow test runner to split test_asyncio to execute in parallel by sharding. (python#103927) Remove non-existing tools from Sundry skiplist (python#103991) pythongh-103793: Defer formatting task name (python#103767) pythongh-87092: change assembler to use instruction sequence instead of CFG (python#103933) pythongh-103636: issue warning for deprecated calendar constants (python#103833) Various small fixes to dis docs (python#103923) ...
| publish = "build/html" | ||
| # Do not trigger netlify builds if docs were not changed. | ||
| # Changed files should be in sync with `.github/workflows/doc.yml` | ||
| ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../netlify.toml" |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
You can keep something like this on RTD (cancel the build if there is no changes at Doc/ directory, for example) by running a test command that exits with code 183. Take a look at https://docs.readthedocs.io/en/latest/builds.html#cancelling-builds for more information.
We have something like this at Read the Docs itself in our config file: https://github.com/readthedocs/readthedocs.org/blob/main/.readthedocs.yml#L28
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Attempted in #104100.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @hugovk for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, @hugovk, I could not cleanly backport this to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-authored-by: Oleg Iarygin <[email protected]> Co-authored-by: C.A.M. Gerlach <[email protected]> (cherry picked from commit accb417)
|
GH-104083 is a backport of this pull request to the 3.11 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…104083) Co-authored-by: Oleg Iarygin <[email protected]> Co-authored-by: C.A.M. Gerlach <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.