-
Notifications
You must be signed in to change notification settings - Fork 2
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
catalog builder pkg usage updates #7
Conversation
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 is still in draft, but looks good so far!
Installing into conda environments through the github CI pipeline is not as easy as typing the commands into the shell interactively, unfortunately, we're learning.
@@ -47,7 +47,8 @@ def create_data_catalog(path, output="data-catalog"): | |||
yaml_path = Path(__file__).resolve().parent / "mdtf_timeslice_catalog.yaml" | |||
|
|||
# Hack to stop click from exiting. | |||
command = ["python3", "-m", "scripts.gen_intake_gfdl", str(path), output, | |||
# TODO we have to move create catalog as its own pytest in the conda environment perhaps, and avoid this hardcoding | |||
command = ["/usr/share/miniconda/envs/analysis-script-testing/bin/python", "-m", "catalogbuilder.scripts.gen_intake_gfdl", str(path), output, |
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.
When @ilaflott was digging into github CI pipelines last week, he found that one cannot run "conda activate" in the pipeline steps. I didn't understand why.. but you're clearly seeing the same rhing, as you have the conda activate
commented out, and then use that python's path later.
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.
Yeah, it's kinda murky with the init file set up perhaps. We can however activate it, but have to use something like https://github.com/marketplace/actions/setup-miniconda. However, the new pipeline (see new PR) will use the new changes in the catalogbuilder and we will no longer need this particular line.
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.
Do we still want this PR? Sorry for leaving this hanging here. The hard-coded path to the python here would only be used in the CI environments in practice so we could live with it.
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.
closing this PR as I forgot about this, and there is a new PR now that I got a chance to update this #12.
#6