-
Notifications
You must be signed in to change notification settings - Fork 1
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
Async API, leverage rq+redis, use docker-compose for service setup #2
Conversation
And switch to use exceptions rather than return value based
5a9a84d
to
32d81ee
Compare
Default is 180 seconds which is too small for running multiple jobs.
df83fb0
to
ae679aa
Compare
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.
This looks good to me overall. I had one minor question about configuration. If you want to rework that docker-compose file into the code that's fine with me.
ade0a54
to
b35ba15
Compare
Use the create_app() pattern and current_app context. This makes it easier to test the application via Flask's test_client(). See the new tests/test_app.py file.
Make them run a bit longer.
This is untested and not re-worked due to broker builds not containing the needed broker-cluster-benchmark file. app.py is now quite shallow
Instead of unpacking the build.tgz archive, unpack it once into a volume (zeek_install_data) and mount the contents of that volume at /zeek/install. This reduces runtime by not redundantly extracting build.tgz and also simplifies the setup a bit as we do not need to set ZEEKPATH anymore (/zeek/install is where Zeek is configured to be installed).
...instead of subprocess.run() of /usr/bin/docker
Not available on Python 3.10 or Python 3.11 in GitHub actions :-(
We continue to use docker-compose, but it is now running the infrastructure. Containers are launched from the rq container via the docker Python library. Broker benchmarking is now definitely not working.
No need to install the git package for checking the validity of a branch name.
b35ba15
to
a5e0058
Compare
1907668
to
07f7a5d
Compare
@timwoj - feel free to take another looks. I mentioned the locations of the new database in DM if you want to look at some of the results. |
No description provided.