-
Notifications
You must be signed in to change notification settings - Fork 3
RD2024-45: Setup test structure for ITs #13
Conversation
from flamingo.jobs.simple import SimpleJobConfig | ||
|
||
|
||
@ray.remote |
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.
I'm Ray-ifying
this entrypoint so we actually have something to test in the ITs
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.
Couple minor things
@@ -0,0 +1,60 @@ | |||
""" | |||
Flamingo integration test suite. |
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.
I may have missed this in earlier PRs but do we have some docs around testing?
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.
We don't really have docs yet. We should add to the contributing guide eventually
print(f"The magic number is {config.magic_number}") | ||
"""A simple entrypoint to demonstrate the Ray interface.""" | ||
# Connect to the Ray cluster (if not already running) | ||
ray.init(ignore_reinit_error=True) |
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.
@aittalam this is an example of launching a ray cluster if not already existing. I am able to run this on my local machine without explicitly launching a Ray cluster.
flamingo run simple --config examples/configs/simple_config.yaml
@binaryaaron as Vicki approved, and we discussed this a bit via Slack, I'm going to roll w/ this initial PR. We can iterate and add more tests as we progress. |
🚢 |
Sets up the basic pattern for unit/ITs in the repo.
unit
andintegration
folders undertests
, so we easily run each suite independentlyconftest.py
to integration that includes setup of a basic Ray cluster for testing. I leave docstring comments on things we probably want to iterate on here in the futuresimple
job entrypoint.I have not yet gone through extensively testing the production finetuning/eval jobs. I want to do this in a separate PR to avoid it being overwhelming.