Skip to content
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

Draft
wants to merge 16 commits into
base: main
Choose a base branch
from
Draft

Conversation

aradhakrishnanGFDL
Copy link
Contributor

#6

@aradhakrishnanGFDL aradhakrishnanGFDL marked this pull request as draft July 25, 2024 16:45
Copy link
Contributor

@ceblanton ceblanton left a 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,
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants