-
Notifications
You must be signed in to change notification settings - Fork 56
Run pytest with Fluent docker image #200
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
Conversation
At the moment, we use a private license server implemented in: as specified by the GitHub secret: A few notes about secrets and how we secure the license server IP.
|
ceadcf0 to
2c900d0
Compare
Hi @akaszynski, sorry about my ignorance, what is a private license server and how to set up one? I assume it will be specified by an ip address which is visible by github runners. Is this something we should request IT to set up or is something available at pyansys level? Thanks for the notes about github secrets. |
In the latest revision, I'm pulling the Fluent docker image using my github id and PAT. Only the license server configuration is remaining. |
|
@mkundu1, licensing server IP sent via private communication. |
|
Added the private license server sent by Alex in github secrets. The unittest that connects with Fluent docker image runs fine now in github CI. |
|
I think we're going to have to rethink the way we do tests, especially starting the container outside of While I'm not opposed with doing it this way, this approach assumes that you have docker and the fluent image locally. I think it's preferable to start the fluent service outside of the unit testing suite and then attempting to connect from within the If you intend to keep this unit test, allow it to be skipped if not running on CI, especially as users will want to be able to run local unit testing without pulling docker (if available). Also, instead of waiting a fixed amount of time, rather keep trying to form the connection persistently. This should be handled in the timeout = time.time() + 60 # 60 second timeout
while time.time() < timeout:
# attempt server connection
if session.check_health() == "SERVING":
break
session.check_health() == "SERVING" |
Thanks, I'll think about these in a subsequent PR. Right now, we are trying to get the doc CI passing (in PR #222) which will connect with a Fluent's docker container. |
|
Closing this as we'll first pull the docker image during the doc CI run (PR #222) |
Demonstrate usage of pytest with a custom docker image that runs a test grpc server. This PR is for figuring out what is needed to run pytest with a docker image. For the Fluent image, following additional items will be needed:
ghcr.io.Update: Everything is in place to connect to Fluent docker container within github CI.