Skip to content

bpo-37284: Add note to sys.implementation doc - #14328

Merged
miss-islington merged 3 commits into
python:masterfrom
potomak:patch-1
Jul 15, 2019
Merged

miss-islington merged 3 commits into
python:masterfrom
potomak:patch-1

Conversation

@potomak

@potomak potomak commented Jun 24, 2019 •

Copy link
Copy Markdown
Contributor

Add a brief note to indicate that any new required attributes must go through the PEP process.

https://bugs.python.org/issue37284

@the-knights-who-say-ni

Copy link
Copy Markdown

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
before our records are updated.

You can check yourself to see if the CLA has been received.

Thanks again for your contribution, we look forward to reviewing it!

@aeros aeros left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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.
@potomak

potomak commented Jul 7, 2019

Copy link
Copy Markdown
Contributor Author

Thanks @aeros167 for your help.

I checked myself for the SLA signature and I updated the commit after running make patchcheck as you suggested.

@nanjekyejoannah

Copy link
Copy Markdown
Contributor

cc @ericsnowcurrently

@ericsnowcurrently
ericsnowcurrently self-requested a review July 9, 2019 16:51

@ericsnowcurrently ericsnowcurrently left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this!

LGTM

I just have one small recommended tweak.

Comment thread Doc/library/sys.rst Resolved

@ericsnowcurrently ericsnowcurrently left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@bedevere-bot

Copy link
Copy Markdown

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 I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@aeros

aeros commented Jul 12, 2019

Copy link
Copy Markdown
Contributor

@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 skip news. There's currently no specifications on it over on the devguide.

@ericsnowcurrently

Copy link
Copy Markdown
Member

@aeros167, we definitely add NEWS entries for documentation. Documentation is dedicated section. :)

@aeros

aeros commented Jul 12, 2019

Copy link
Copy Markdown
Contributor

we definitely add NEWS entries for documentation. Documentation is dedicated section. :)

@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 skip news label. So my question was asking whether or not this would apply more broadly to other PRs as well. In general, it can be a little bit difficult to tell whether or not a skip news label is appropriate. Usually my "rule of thumb" has been that if the message conveyed is at all changed, then it should have a news entry.

I've added news entries before when modifying sections in the docs, such as in this PR where I added the exceptions to the os.chdir() summary: #14611.

potomak and others added 2 commits July 13, 2019 08:48
Add @ericsnowcurrently's suggestion.

Co-Authored-By: Eric Snow <ericsnowcurrently@gmail.com>
@potomak

potomak commented Jul 13, 2019

Copy link
Copy Markdown
Contributor Author

I have made the requested changes; please review again

@bedevere-bot

Copy link
Copy Markdown

Thanks for making the requested changes!

@ericsnowcurrently: please review the changes made to this pull request.

@ericsnowcurrently

Copy link
Copy Markdown
Member

@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 skip news label is for PRs that are already covered by a NEWS entry for an earlier PR.

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 ericsnowcurrently left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks for doing this!

@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @potomak for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖

@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @potomak for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

@bedevere-bot

Copy link
Copy Markdown

GH-14783 is a backport of this pull request to the 3.8 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 15, 2019
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>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 15, 2019
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>
@bedevere-bot

Copy link
Copy Markdown

GH-14784 is a backport of this pull request to the 3.7 branch.

miss-islington added a commit that referenced this pull request Jul 15, 2019
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>
miss-islington added a commit that referenced this pull request Jul 15, 2019
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>
@aeros

aeros commented Jul 15, 2019

Copy link
Copy Markdown
Contributor

@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.

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. :)

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 skip news was one that was particularly important to get right, so I wanted to get clarification from the core devs as to when they think it's most appropriate. In the PR for adding in the labels section, I'll @ mention you (I don't think that I have the ability to add anyone as a reviewer as a contributor, currently only GitHub Python organization members can do that).

Thanks! (:

@potomak
potomak deleted the patch-1 branch July 16, 2019 02:14
lisroach pushed a commit to lisroach/cpython that referenced this pull request Sep 10, 2019
Add a brief note to indicate that any new required attributes must go through the PEP process.





https://bugs.python.org/issue37284
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
Add a brief note to indicate that any new required attributes must go through the PEP process.





https://bugs.python.org/issue37284
ouroboros-agent added a commit to razzant/ouroboros that referenced this pull request Dec 1, 2026
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."}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants