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

Update test_fre_cli.py #150

Merged
merged 2 commits into from
Aug 8, 2024
Merged

Update test_fre_cli.py #150

merged 2 commits into from
Aug 8, 2024

Conversation

ilaflott
Copy link
Member

@ilaflott ilaflott commented Aug 7, 2024

catalogbuilder's API changed, causing fre catalog builder to throw an error. the tests should catch this but do not currently.

updating with a test that will fail, which should show itself in the pipeline.

`catalogbuilder`'s API changed. the tests should catch this but do not.

updating with a test that will fail
@ilaflott
Copy link
Member Author

ilaflott commented Aug 7, 2024

hooray! we have a test that will catch this now:

https://github.com/NOAA-GFDL/fre-cli/actions/runs/10291762258/job/28484761124

#149

@ilaflott
Copy link
Member Author

ilaflott commented Aug 7, 2024

normally i would say do-not merge because the tests are failing, but this is an exception 🤣. @Ciheim is working on the fix- i just wanted to make sure the test we define fails under the right conditions.

Copy link
Collaborator

@cwhitlock-NOAA cwhitlock-NOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me! This sounds like the tests caught exactly the kind of thing that they should catch.

Copy link
Collaborator

@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.

hooray! Nice one.

@ceblanton ceblanton merged commit 784ad8c into main Aug 8, 2024
3 checks passed
@ceblanton ceblanton deleted the this_test_should_fail branch August 8, 2024 17:37
@ilaflott ilaflott restored the this_test_should_fail branch August 8, 2024 17:42
@ilaflott
Copy link
Member Author

ilaflott commented Aug 8, 2024

This actually was not complete. i should have put it in draft mode, that was my mistake.

This test was designed to catch a current issue (CatalogBuilder CI update), the name of the branch, "test_test_should_fail" indicated it's pipeline should have failed, but in fact, it succeeded. ergo, this code will not catch future errors, yet, and wasn't really ready for merge.

I'm not sure what kind of real review is being given to PRs, but i'd appreciate it if we all had a more careful eye

@cwhitlock-NOAA
Copy link
Collaborator

About line 155 on this page sounds like it describes that behavior:

https://github.com/NOAA-GFDL/fre-cli/actions/runs/10291762258/job/28484761124

=========================== short test summary info ============================
FAILED fre/tests/test_fre_cli.py::test_cli_fre_catalog_builder - assert 1 == 0

  • where 1 = <Result AttributeError("module 'catalogbuilder.scripts.gen_intake_gfdl' has no attribute 'main'")>.exit_code
    ======== 1 failed, 64 passed, 2 skipped, 8 warnings in 85.71s (0:01:25) ========
    Error: Process completed with exit code 1.

Is there something else that I should have been looking for?

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