Repository navigation
bpo-37284: Add note to sys.implementation doc - #14328
Conversation
|
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA). Our records indicate we have not received your CLA. For legal reasons we need you to sign this before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. If you have recently signed the CLA, please wait at least one business day You can check yourself to see if the CLA has been received. Thanks again for your contribution, we look forward to reviewing it! |
There was a problem hiding this comment.
@potomak Thanks for the contribution! If you've already signed the CLA and it has been over 24 hours, try manually refreshing on status on GitHub (click on the "check yourself" link posted by the CLA bot @the-knights-who-say-ni). For mine, it was not automatically updated.
Usually when the tests are failing on documentation related PRs, it is a result of whitespace issues. You can attempt to correct this through GitHub's text editor, but the more reliable method is to locally clone the cpython repository using git clone, make your changes to Doc/library/sys.rst (or download Doc/library/sys.rst from your patch-1 branch into your local repo), use git add to add it to the checkout list, and then use the patchcheck utility (varies based on OS, let me know if you have further questions) to automatically correct whitespace issues. More details on this process can be found on the dev guide: https://devguide.python.org/pullrequest/?highlight=patchcheck#patchcheck
Add a brief note to indicate that any new required attributes must go through the PEP process.
|
Thanks @aeros167 for your help. I checked myself for the SLA signature and I updated the commit after running |
ericsnowcurrently
left a comment
There was a problem hiding this comment.
Thanks for working on this!
LGTM
I just have one small recommended tweak.
ericsnowcurrently
left a comment
There was a problem hiding this comment.
Oh, and add the missing NEWS entry. You should use the "blurb" tool.
See: https://devguide.python.org/committing/?highlight=blurb#what-s-new-and-news-entries
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
|
@ericsnowcurrently So in a case such as this where it's adding a note to the docs justifies adding news entry? I'm curious since I've been interested in helping with the label management on PRs with the upcoming triager role so I wanted to make sure I have a solid understanding of the appropriate usage of |
|
@aeros167, we definitely add NEWS entries for documentation. |
@ericsnowcurrently Oh no I didn't mean for documentation in general. My initial thought was that because this PR is only adding a note to an already existing section that it would justify the usage of a I've added news entries before when modifying sections in the docs, such as in this PR where I added the exceptions to the |
Add @ericsnowcurrently's suggestion. Co-Authored-By: Eric Snow <ericsnowcurrently@gmail.com>
|
I have made the requested changes; please review again |
|
Thanks for making the requested changes! @ericsnowcurrently: please review the changes made to this pull request. |
|
@aeros167, the tricky thing is that small doc changes can have a real impact on someone out there, even an impact that you or I may not realize. Since there isn't much cost to adding a NEWS entry, it is worth doing even for seemingly innocuous changes. Basically the only time I use the All that said, it would definitely be worth clarifying in the devguide. So feel free to add a PR there (and add me as a reviewer). You can also start a thread on the core-workflow list if you want to make sure you have the directions right. I certainly don't speak for everyone. :) |
ericsnowcurrently
left a comment
There was a problem hiding this comment.
LGTM
Thanks for doing this!
|
Thanks @potomak for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8. |
|
Thanks @potomak for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7. |
|
GH-14783 is a backport of this pull request to the 3.8 branch. |
Add a brief note to indicate that any new required attributes must go through the PEP process. https://bugs.python.org/issue37284 (cherry picked from commit 52693c1) Co-authored-by: Giovanni Cappellotto <gcappellotto@fb.com>
Add a brief note to indicate that any new required attributes must go through the PEP process. https://bugs.python.org/issue37284 (cherry picked from commit 52693c1) Co-authored-by: Giovanni Cappellotto <gcappellotto@fb.com>
|
GH-14784 is a backport of this pull request to the 3.7 branch. |
Add a brief note to indicate that any new required attributes must go through the PEP process. https://bugs.python.org/issue37284 (cherry picked from commit 52693c1) Co-authored-by: Giovanni Cappellotto <gcappellotto@fb.com>
Add a brief note to indicate that any new required attributes must go through the PEP process. https://bugs.python.org/issue37284 (cherry picked from commit 52693c1) Co-authored-by: Giovanni Cappellotto <gcappellotto@fb.com>
|
@ericsnowcurrently Thanks for the clarification, I appreciate it and I can definitely see where you're coming from. Since there's no real cost associated with adding the news entry, I can understand why it would be preferable to always do so when possible. Especially if it involves anything outward facing such as the docs or a public function.
I've been working on helping with the new GitHub triager role documentation, currently we're still in the early stages. The next component will be adding a summary explaining the general usage for each of the labels. I figured that the Thanks! (: |
Add a brief note to indicate that any new required attributes must go through the PEP process. https://bugs.python.org/issue37284
Add a brief note to indicate that any new required attributes must go through the PEP process. https://bugs.python.org/issue37284
Closes #4552. `github_read(method="checks")` used to ask `gh run list --json` for `attempt`. gh 2.46.0 rejected that field before reporting any CI. The reader now takes `run_attempt`, workflow path and run title from one bounded Actions REST page. Job reads and failed-log commands use the same repository and attempt. Polling stays on the original repository and commit. One page of completed runs does not imply that an omitted run finished. A successful empty page reports zero **Actions workflows**, not a passing test. An unreadable page identifies the failed source. A PR number also reads GitHub’s status rollup; a raw SHA does not read third-party checks or classic commit statuses. **Verified on `276a85f7`:** five public cases on each of the real gh 2.46.0 and 2.86.0 binaries through the registered handler. [Run 46110023991](https://github.com/razzant/ouroboros/actions/runs/46110023991) reported attempt 2, `failure`; the HTTP 502 for that attempt’s jobs was reported separately. [CPython #14328](python/cpython#14328) had no Actions runs. [kubernetes/website #59587](kubernetes/website#59587) had no Actions runs but reported three external check runs and three commit statuses by PR number. All five inputs had failed locally on gh 2.46.0 before the fix. All 16 final focused pytest cases passed, including a 403, timeout and malformed JSON for project and explicit hostless repositories, plus a neighboring Enterprise PR lookup. An earlier revision passed 118 focused cases; three earlier size checks failed on the unchanged `projects_registry.py` (#4584). No full-suite claim. The initial four-reader review found errors in polling and binding. A corrective read then caught a test expectation and missing no-effect metadata. The final corrective review confirmed both fixes on tree `333a6a8a`. **Compatibility:** pass `repo` as `[HOST/]OWNER/REPO` or omit it. Passing an HTTPS URL happened to work in this path on newer gh and is now rejected. The pre-existing ambiguity between an all-decimal 40-character SHA and a PR number is unchanged. Ouroboros qualification receipt (declarations are not host-observed PASS): - live_cli_compatibility: passed (author_declared); Five public inputs each on gh 2.46.0 and 2.86.0, registered github_read checks on the final product tree. An unreadable attempt's jobs remained distinct from the run outcome; PR rollup reported third-party runs and statuses absent from SHA-only reads. - final_resolver_tests: passed (author_declared); All 16 final cases passed in one isolated serial pytest run; verified individual outcomes in JUnit. An earlier revision separately passed 118 focused tests. - merge_preview: passed (author_declared); GitHub's preview 35571ed has parents 5b525a2 and 276a85f and tree 333a6a8, identical to the final tested and reread tree. - independent_review: passed (author_declared); Corrective reread on the final tree: Astra PASS, no critical findings. The earlier four-model review was FAIL. The intermediate two-seat reread had no quorum; one participant found two issues, now corrected. This is not a full-panel PASS on the final tree. - size_ratchet: failed (author_declared); Earlier 5/8 passed; three failures identified the pre-existing 1601-line projects_registry.py tracked in #4584, outside this five-file change. Not repeated on the final tree. - full_battery: not_run (author_declared); Targeted tests and live CLI compatibility in this work; cross-platform range checks are read separately after merge. - cost_contract: not_run (author_declared); No pricing or model-call changes; no separate cost suite was run. - Review: observed PASS (record settled, subject relation at the merge request unknown); author declared - Post-merge check: not run yet. Ouroboros-Qualification: {"schema": 1, "checks": [{"name": "live_cli_compatibility", "status": "passed", "detail": "Five public inputs each on gh 2.46.0 and 2.86.0, registered github_read checks on the final product tree. An unreadable attempt's jobs remained distinct from the run outcome; PR rollup reported third-party runs and statuses absent from SHA-only reads.", "source": "author_declared"}, {"name": "final_resolver_tests", "status": "passed", "detail": "All 16 final cases passed in one isolated serial pytest run; verified individual outcomes in JUnit. An earlier revision separately passed 118 focused tests.", "source": "author_declared"}, {"name": "merge_preview", "status": "passed", "detail": "GitHub's preview 35571ed has parents 5b525a2 and 276a85f and tree 333a6a8, identical to the final tested and reread tree.", "source": "author_declared"}, {"name": "independent_review", "status": "passed", "detail": "Corrective reread on the final tree: Astra PASS, no critical findings. The earlier four-model review was FAIL. The intermediate two-seat reread had no quorum; one participant found two issues, now corrected. This is not a full-panel PASS on the final tree.", "source": "author_declared"}, {"name": "size_ratchet", "status": "failed", "detail": "Earlier 5/8 passed; three failures identified the pre-existing 1601-line projects_registry.py tracked in #4584, outside this five-file change. Not repeated on the final tree.", "source": "author_declared"}, {"name": "full_battery", "status": "not_run", "detail": "Targeted tests and live CLI compatibility in this work; cross-platform range checks are read separately after merge.", "source": "author_declared"}, {"name": "cost_contract", "status": "not_run", "detail": "No pricing or model-call changes; no separate cost suite was run.", "source": "author_declared"}], "review": {"observed": "PASS", "state": "settled", "relation": "unknown", "declared": ""}, "post_merge": {"status": "not_run", "detail": "The post-merge check follows this merge."}}
Add a brief note to indicate that any new required attributes must go through the PEP process.
https://bugs.python.org/issue37284