| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
@rmadsen-ks, thanks! @vmuriart, @davidanthoff, @yagweb, @filmor and @tonyroberts, please review this. |
Sorry, something went wrong.
Codecov Report
@@ Coverage Diff @@
## master #450 +/- ##
==========================================
- Coverage 77.4% 76.31% -1.09%
==========================================
Files 63 62 -1
Lines 5589 5569 -20
Branches 892 888 -4
==========================================
- Hits 4326 4250 -76
- Misses 970 1026 +56
Partials 293 293
Continue to review full report at Codecov.
|
Sorry, something went wrong.
| /// initSigs can be set to 1 to do default python signal configuration. This will override the way signals are handled by the application. | ||
| /// </remarks> | ||
| public static void Initialize(IEnumerable<string> args, bool setSysArgv = true) | ||
| public static void Initialize(IEnumerable<string> args, bool setSysArgv = true, int initSigs = 0) |
There was a problem hiding this comment.
initSigs should be a bool.
Sorry, something went wrong.
|
@denfromufa, it seems some of the builds takes an extraordinary amount of time (59 min). Is there some way of canceling the builds so we dont have to wait for timeout? |
Sorry, something went wrong.
|
@rmadsen-ks you may need to have access to CI build servers to cancel the builds, what do you think @vmuriart ? |
Sorry, something went wrong.
|
@rmadsen-ks @filmor @vmuriart do you guys agree on removing the test for this behavior and merge pull request without the tests in CI? We can leave the original issue open, until proper testing is added. Here is a user in need of this pull request: |
Sorry, something went wrong.
|
@denfromufa, unfortunately I dont have the bandwidth to figure how to make a unit test that works reliably. It turned out to be harder than expected to signal CTRL+C to an application running in the console on windows. Also I had decided to use CSharpProvider for runtime assembly generation, which I think is not compatible with .NET core, so that will probably need to move to Roslyn. Do you have another idea of how to test this in an automated way? In any case, the non-test part I think is low risk, but I suggest you do a bit of manual testing first anyway. |
Sorry, something went wrong.
|
I did not understand the part about CSharpProvider :) But the Ctrl+c keyboard interrupt can be emulated with this threading call: thread.interrupt_main() # raises KeyboardInterrupt More details in this new issue that I linked above. |
Sorry, something went wrong.
|
@denfromufa, thread.interrupt_main() does not work in our case because we have a C# console application running embedded python code. This is why I wanted to use CSharpProvider. I wanted to build a short console application that delays for a few s, but is interrupted by a keyboard interrupt. This I could also do by adding an assembly to the git repo, but I figured that would not be a popular decision. In any case, i have not been able to emulate CTRL+C on windows. In my testing running _thread.interrupt_main() (python 3) as the embedded python script does not have the desired effect. |
Sorry, something went wrong.
|
Let's continue work on this one in #724. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Note: This PR is not ready yet. I just added the PR to see if it builds.
What does this implement/fix? Explain your changes.
Avoiding overriding signals from the application so that CTRL-C might be handled.
Using Py_InitializeEx(0) (instead Py_Initialize) to avoid overriding signals.
Does this close any currently open issues?
This fixes #449
...
Any other comments?
...
Checklist
Check all those that are applicable and complete.