[issue44972] Add workflow_dispatch trigger for GitHub Actions jobs

2021-08-26 Thread Ryan Mast (nightlark)


Ryan Mast (nightlark)  added the comment:

> How is manually dispatched workflows different from just opening a PR to your 
> own fork? I do that from time to time in order to run the CI before opening a 
> PR against the CPython repo.

Here are a few thoughts on how it is different:
- They can be set up to take `inputs` that customize the behavior of the 
workflow run. Recently in another issue someone had asked about getting the 
Windows MSI installers from a CI build run but that workflow doesn't upload any 
artifacts; an input could be added that uploads the installers as artifacts in 
the cases they would useful while keeping the default behavior of not uploading 
artifacts for PRs, or an input could be added to enable additional debugging 
output/running extra tests to track down an issue
- Multiple builds of the same commit can be started; if there's a test that 
fails intermittently you could queue up 10 runs of a workflow and come back 
later to see if it is still happening from a larger sample size
- The jobs/workflows run can be more targeted; if you just want to build the 
docs part of a larger change set, you don't need to run the workflow for 
compiling + running tests. If all you care about is a generated installer, only 
that workflow needs to get run (less likely to hit the max concurrent builds 
for your account if you have workflows running in other non-cpython 
repositories)
- Temporary PRs don't need closing to keep subsequent commits from runnings 
jobs if you don't care about their results, or after the PR gets merged in the 
upstream CPython repo
- May be marginally faster to trigger a workflow run than opening a PR (in 
terms of slower loading pages/tabs on the GitHub website)

--

___
Python tracker 
<https://bugs.python.org/issue44972>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44974] Warning about "Unknown child process pid" in test_asyncio

2021-08-26 Thread Ryan Mast (nightlark)


Ryan Mast (nightlark)  added the comment:

I haven't gotten a chance to narrow it down much yet, it might be that it is 
occurs more often on systems with a low core count/higher load -- a bit hard to 
tell with it being intermittent though.

--

___
Python tracker 
<https://bugs.python.org/issue44974>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44972] Add workflow_dispatch trigger for GitHub Actions jobs

2021-08-23 Thread Ryan Mast (nightlark)


Ryan Mast (nightlark)  added the comment:

> On the main request, provided the workflow_dispatch is only triggerable by 
> non-contributors in their own fork (without any of our tokens/etc.) then it's 
> fine by me. If it allows anyone to trigger CI builds against the main repo, 
> I'd rather not.

It should require write permissions in a repository to use the trigger, so 
they'll only be able to run workflows in the context of their fork: 
https://github.community/t/who-can-manually-trigger-a-workflow-using-workflow-dispatch/128592/4

I think you could also test this out by going to my fork and seeing if it lets 
you trigger the workflow: 
https://github.com/nightlark/cpython/actions/workflows/build.yml

--

___
Python tracker 
<https://bugs.python.org/issue44972>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44972] Add workflow_dispatch trigger for GitHub Actions jobs

2021-08-23 Thread Ryan Mast (nightlark)


Ryan Mast (nightlark)  added the comment:

Another observation, first-time contributors need a maintainer to approve the 
workflows for their PRs -- from the looks of it that isn't an instant process 
and could take a few days, so this also gives first-time contributors a way to 
check their changes against the jobs that will run as part of the required CI 
checks.

--

___
Python tracker 
<https://bugs.python.org/issue44972>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44972] Add workflow_dispatch trigger for GitHub Actions jobs

2021-08-21 Thread Ryan Mast (nightlark)


Change by Ryan Mast (nightlark) :


--
nosy: +brett.cannon

___
Python tracker 
<https://bugs.python.org/issue44972>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44972] Add workflow_dispatch trigger for GitHub Actions jobs

2021-08-21 Thread Ryan Mast (nightlark)


Change by Ryan Mast (nightlark) :


--
nosy: +steve.dower

___
Python tracker 
<https://bugs.python.org/issue44972>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44972] Add workflow_dispatch trigger for GitHub Actions jobs

2021-08-21 Thread Ryan Mast (nightlark)


Change by Ryan Mast (nightlark) :


--
keywords: +patch
pull_requests: +26328
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/27873

___
Python tracker 
<https://bugs.python.org/issue44972>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44972] Add workflow_dispatch trigger for GitHub Actions jobs

2021-08-21 Thread Ryan Mast (nightlark)


Change by Ryan Mast (nightlark) :


--
nosy: +FFY00

___
Python tracker 
<https://bugs.python.org/issue44972>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44972] Add workflow_dispatch trigger for GitHub Actions jobs

2021-08-21 Thread Ryan Mast (nightlark)


Ryan Mast (nightlark)  added the comment:

* The main constraint is that the the `workflow_dispatch` trigger must be in 
the GHA workflow yaml files for the branch to be selectable as a target on the 
Actions tab when manually triggering a workflow. Having the change made to the 
main branch and backported would mean that new or rebased branches would have 
the trigger needed for manually running the CI job in forks.

--

___
Python tracker 
<https://bugs.python.org/issue44972>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44972] Add workflow_dispatch trigger for GitHub Actions jobs

2021-08-21 Thread Ryan Mast (nightlark)


New submission from Ryan Mast (nightlark) :

Adding a workflow_dispatch trigger for the GitHub Actions jobs makes it 
possible to run the GHA CI jobs for commits to branches in a fork without 
opening a "draft/WIP" PR to one of the main release branches. It also runs the 
SSL tests which normally get skipped for PRs.

The main constraint is that

--
components: Build
messages: 400036
nosy: pablogsal, rmast, vstinner, zach.ware
priority: normal
severity: normal
status: open
title: Add workflow_dispatch trigger for GitHub Actions jobs
type: enhancement
versions: Python 3.10, Python 3.11, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue44972>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41322] unittest: deprecate test methods returning non-None values

2021-08-20 Thread Ryan Mast (nightlark)


Ryan Mast (nightlark)  added the comment:

The new issue for the failing test is bpo-44968

--

___
Python tracker 
<https://bugs.python.org/issue41322>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44968] Fix/remove test_subprocess_wait_no_same_group from test_asyncio tests

2021-08-20 Thread Ryan Mast (nightlark)


New submission from Ryan Mast (nightlark) :

A deprecation made in bpo-41322 uncovered issues with 
test_subprocess_wait_no_same_group in test_asyncio that seems to have been 
broken for some time.

Reverting to a similar structure prior to the refactoring in 
https://github.com/python/cpython/commit/658103f84ea860888f8dab9615281ea64fee31b9
 using async/await avoids the deprecation error, though it still might not be 
running correctly.

With the change I tried in 
https://github.com/python/cpython/commit/658103f84ea860888f8dab9615281ea64fee31b9
 there is a message about an `unknown child process`, which makes me think 
there could be some issues with the subprocess exiting prior to the refactoring 
~8 years ago.

--
components: Tests
messages: 400018
nosy: asvetlov, ezio.melotti, michael.foord, rbcollins, rmast, yselivanov
priority: normal
severity: normal
status: open
title: Fix/remove test_subprocess_wait_no_same_group from test_asyncio tests
versions: Python 3.10, Python 3.11, Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue44968>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41322] unittest: deprecate test methods returning non-None values

2021-08-20 Thread Ryan Mast (nightlark)


Ryan Mast (nightlark)  added the comment:

Sure, I'll open a new issue.

--

___
Python tracker 
<https://bugs.python.org/issue41322>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41322] unittest: deprecate test methods returning non-None values

2021-08-20 Thread Ryan Mast (nightlark)


Ryan Mast (nightlark)  added the comment:

Would rewriting the test so that it doesn't yield be the right fix?

```
def test_subprocess_wait_no_same_group(self):
# start the new process in a new session
connect = self.loop.subprocess_shell(
functools.partial(MySubprocessProtocol, self.loop),
'exit 7', stdin=None, stdout=None, stderr=None,
start_new_session=True)
_, proto = yield self.loop.run_until_complete(connect)
self.assertIsInstance(proto, MySubprocessProtocol)
self.loop.run_until_complete(proto.completed)
self.assertEqual(7, proto.returncode)
```

to

```
def test_subprocess_wait_no_same_group(self):
# start the new process in a new session
connect = self.loop.subprocess_shell(
functools.partial(MySubprocessProtocol, self.loop),
'exit 7', stdin=None, stdout=None, stderr=None,
start_new_session=True)
transp, proto = self.loop.run_until_complete(connect)
self.assertIsInstance(proto, MySubprocessProtocol)
self.loop.run_until_complete(proto.completed)
self.assertEqual(7, proto.returncode)
transp.close()
```

--

___
Python tracker 
<https://bugs.python.org/issue41322>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41322] unittest: deprecate test methods returning non-None values

2021-08-20 Thread Ryan Mast (nightlark)


Ryan Mast (nightlark)  added the comment:

It looks like since GH-27748 got merged, `test_subprocess_wait_no_same_group` 
in `test_asyncio` has been failing for the Ubuntu SSL tests.

--
nosy: +rmast

___
Python tracker 
<https://bugs.python.org/issue41322>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20041] TypeError when f_trace is None and tracing.

2021-08-17 Thread Ryan Mast (nightlark)


Change by Ryan Mast (nightlark) :


--
nosy: +rmast

___
Python tracker 
<https://bugs.python.org/issue20041>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26545] [doc] os.walk is limited by python's recursion limit

2021-08-17 Thread Ryan Mast (nightlark)


Change by Ryan Mast (nightlark) :


--
nosy: +rmast

___
Python tracker 
<https://bugs.python.org/issue26545>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15373] copy.copy() does not properly copy os.environment

2021-08-17 Thread Ryan Mast (nightlark)


Change by Ryan Mast (nightlark) :


--
nosy: +rmast

___
Python tracker 
<https://bugs.python.org/issue15373>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44942] Add number pad enter bind to TK's simpleDialog

2021-08-17 Thread Ryan Mast (nightlark)


Ryan Mast (nightlark)  added the comment:

I'm new to this system, if I'm understanding 
https://devguide.python.org/triaging/#nosy-list then it looks like the people 
listed for `tkinter` should be added to the Nosy List?

--
nosy: +gpolo, serhiy.storchaka

___
Python tracker 
<https://bugs.python.org/issue44942>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44942] Add number pad enter bind to TK's simpleDialog

2021-08-17 Thread Ryan Mast (nightlark)


New submission from Ryan Mast (nightlark) :

Tk the number pad enter and main enter keys separately. The number pad enter 
button should be bound to `self.ok` in simpleDialog's `Dialog` class so that 
both enter buttons have the same behavior.

A PR for this change has been submitted on GitHub by Electro707.

--
components: Tkinter
messages: 399816
nosy: rmast
priority: normal
pull_requests: 26272
severity: normal
status: open
title: Add number pad enter bind to TK's simpleDialog
type: behavior
versions: Python 3.11

___
Python tracker 
<https://bugs.python.org/issue44942>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24905] Allow incremental I/O to blobs in sqlite3

2021-08-17 Thread Ryan Mast (nightlark)


Ryan Mast (nightlark)  added the comment:

It looks like this has a PR that just needs rebasing, then it will be ready for 
another review.

--
nosy: +rmast

___
Python tracker 
<https://bugs.python.org/issue24905>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33140] shutil.chown should not be defined in Windows

2021-08-17 Thread Ryan Mast (nightlark)


Ryan Mast (nightlark)  added the comment:

If this function were to be implemented on Windows would the preferred  
approach be the one described in the initial message for this issue of creating 
a Windows `os.set_owner` function that uses the appropriate Windows API calls 
to change owner/group settings, and then using that for Windows in the 
`shutil.chown` function?

--
nosy: +rmast

___
Python tracker 
<https://bugs.python.org/issue33140>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30924] RPM build doc_files needs files separated into separate lines

2021-08-17 Thread Ryan Mast


Ryan Mast  added the comment:

Should this be closed? It looks like the PR is only changing a file in 
distutils, and according to https://bugs.python.org/issue30925#msg386350 
distutils is deprecated and only release blocking issues will be considered.

--
nosy: +rmast

___
Python tracker 
<https://bugs.python.org/issue30924>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com