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

Merging main into the branch #196

Merged
merged 72 commits into from
Oct 1, 2024
Merged

Merging main into the branch #196

merged 72 commits into from
Oct 1, 2024

Conversation

Ciheim
Copy link
Collaborator

@Ciheim Ciheim commented Oct 1, 2024

Describe your changes

Issue ticket number and link (if applicable)

Checklist before requesting a review

  • I ran my code
  • I tried to make my code readable
  • I tried to comment my code
  • I wrote a new test, if applicable
  • I wrote new instructions/documentation, if applicable
  • I ran pytest and inspected it's output
  • I ran pylint and attempted to implement some of it's feedback

- this is for later organization and parsing when yamls are combined
- another `-e` option was added to represent the experiment name
- combine model, compile, and platform yaml
- parse combined yaml
- added `-e` experiment and `--execute` options
- redefine variables with parsed information
- createCheckout: fix checkout script running if `--execute` used and checkour script already created
- this is done in the separate tool `combine-yamls`
- certain variables were overwritten when bind mode is implemented
- these variables are saved in `BACKUP` variables
- accidentally removed
- combine-yamls here if tool wasn't used
- reflects changes in `fre yamltools combine-yamls`
- references defined `init_pp_yamls` class in `combine-yamls` to make combining a default behavior (on top of tool still being available if user wants to combine separately)
- update schema.json for pp combined yaml
- classes were created so combining yamls can be done if user doesn't want to use `combine-yamls` tool
- still keeps option to use `combine-yamls` as a separate tool
- class for combining compile yamls
- class for combining pp yamls
Chris Blanton and others added 29 commits September 10, 2024 18:12
- new test for validation of combiend yamls
- new fail test for if compile yaml path not correct
- new fail test for if a value in the compile.yaml is not of right data type
- there was a false success with the previous schema
- update paths in test script based on reorganizations
- update test_combine_yamls for validation test, wrong compile file test, wrong data type (invalid yaml) test
Previously, the test verified the exit code and message for

(fre-cli) c2b:~/git/fre-cli%>fre catalog builder                                                                                                                                          134
No paths given, using yaml configuration

(fre-cli) c2b:~/git/fre-cli%>echo $status                                                                                                                                                 135
1

Recently, the message was updated to be:

(fre-cli) c2b:~/git/fre-cli%>fre catalog builder                                                                                                                                          134
Missing: input_path or output_path. Pass it in the config yaml or as command-line option

(fre-cli) c2b:~/git/fre-cli%>echo $status                                                                                                                                                 135
1

So let's continue to check for the exit code and not require an exact error message.
Previously, the test verified the exit code and message for

    (fre-cli) c2b:~/git/fre-cli%>fre catalog builder
    No paths given, using yaml configuration

    (fre-cli) c2b:~/git/fre-cli%>echo $status
    1

    Recently, the message was updated to be:

    (fre-cli) c2b:~/git/fre-cli%>fre catalog builder
    Missing: input_path or output_path. Pass it in the config yaml or as command-line option

    (fre-cli) c2b:~/git/fre-cli%>echo $status
    1

So the test needs a corresponding change to test for the updated error message
Update "fre catalog builder" test after upstream CatalogBuilder change
Otherwise, the cmor test will fail when run afterwards
Compile yaml integration and parse correctly
@Ciheim Ciheim merged commit 6b9f06e into 191.UpdateDocs Oct 1, 2024
2 checks passed
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.

3 participants