-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CI for testing pyflask distributable #297
Conversation
Unfortunately to see if the workflow works, it must be merged to |
run: node tests/testPyinstallerExecutable.js ./build/nwb-guide/nwb-guide.exe | ||
|
||
- if: matrix.os != "windows-latest" | ||
name: Run test on build executable | ||
run: node tests/testPyinstallerExecutable.js ./build/nwb-guide/nwb-guide | ||
|
||
- name: Run test on distributed executable | ||
run: node tests/testPyinstallerExecutable.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was some confusion on my part about this - after double checking the flags to pyinstaller
, I see that the default path of your tests is indeed the 'distributable' (./build/flask/nwb-guide/nwb-guide.exe
) and not the 'build' (./build/nwb-guide/nwb-guide.exe
)
I've simply added the tests on the build, as PyInstaller refers to them, to be exhaustive in case there ever could be any difference between the two
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh sure. For some reason, I'd thought you meant that you'd target the dist/mac/NWB GUIDE.app/Contents/Resources/nwb-guide/nwb-guide
file that is produced after copying the distributable file to the Electron app.
TBH I'm never touching the 'build' version, which is contained in a folder that primarily contains Pyinstaller logs, so we might just ignore it since it's unused.
🎉Able to reproduce Mac indeed appears to be in some kind of infinite loop - your test should simply exit out if the server can launch successfully right? https://github.com/NeurodataWithoutBorders/nwb-guide/actions/runs/5898618230/job/15999924617?pr=297 |
And then Linux appears to be missing the json schema paths: any idea how to fix? https://github.com/NeurodataWithoutBorders/nwb-guide/actions/runs/5898618230/job/15999924554?pr=297 |
Actually, I didn't configure this properly for a test. Currently, there are errors thrown if the process fails—though the process remains open infinitely (as Flask does) if successful. I'm listening for startup time in the |
This is fixed in #284. We'd want to rebase to that branch if we want those changes here. |
In that case what I propose as the simplest approach is, despite the currently failures (they are not required to pass to merge) we go ahead and get this into What do you think? |
Yeah I agree. I'll definitely need to clean up the error catching (as the ones thrown by Mac aren't caught by my fix)—but at least this will let us test our current versions. My local builds are stalling, otherwise I'd fix it now. |
Should we wait for those test function improvements before merging this then? By stalling do you mean you're also seeing this infinite loop behavior? I think you mentioned it might have been because of those recent changes I made to the Flask version fetching so feel free to disable that if needed |
for more information, see https://pre-commit.ci
Just pushed a preliminary version of those so I don't lose the changes.
No, currently the build will run without logs as long as I wait (~5min). For some reason, my local build is being finicky. |
Does checking out a point on |
Actually this is also happening with |
Will yours run on Mac? Trying to add logs to determine the point of failure but it's as if nothing is actually run. |
Checking out and pulling latest I run into these kinds of things from time to time though - if you wipe everything (including git clone) and hard reinstall everything (including the |
Just restarted my computer and both work fine now. |
Good to hear - oh, hey, the mac test now fails with an actual errror! https://github.com/NeurodataWithoutBorders/nwb-guide/actions/runs/5904881769/job/16017892212?pr=297 |
Alright should be good to merge. Tests failed but my new code works to close the server if an error / success is detected. |
@garrettmflynn Cool, just need approval |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved! Let's see if this helps on the active branches.
Re-attempt #292 from a better base