Skip to content

Conversation

@davidhassell
Copy link
Collaborator

Fixes #346

Copy link
Member

@sadielbartholomew sadielbartholomew left a comment

Choose a reason for hiding this comment

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

The fix looks sound, but I think the test (though promising and better than nothing, as-is) may need adjusting, because if I take this new test_cfa.py and try it on the master branch, test_cfa_base passes, implying the bug is not being exposed by it.

@davidhassell
Copy link
Collaborator Author

Good point on the test. I realise that do it wholly properly we would need to move the original and cfa files to a new location and read them. I'll try and add that.

@davidhassell
Copy link
Collaborator Author

How about: f4824d7? (I had to add a "u+w" chmod option so that test_cfa.sh didn't lose write permissions every time the test was run.)

@sadielbartholomew
Copy link
Member

How about: f4824d7? (I had to add a "u+w" chmod option so that test_cfa.sh didn't lose write permissions every time the test was run.)

Hmmm 🤔 , it's still passing for me when I copy both the test_cfa.py and test_cfa.sh over to master, including re-installing via pip install -e . to be certain it is running the master-state codebase. Is there maybe another subtlety being missed? If nothing comes to mind, you could also try these tests on master to confirm the results, as then I can check we are seeing the same outcome?

Copy link
Member

@sadielbartholomew sadielbartholomew left a comment

Choose a reason for hiding this comment

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

After external discussions, we've agreed that this is good enough to merge despite the remaining deficiency that:

if I take this new test_cfa.py and try it on the master branch, test_cfa_base passes, implying the bug is not being exposed by it

given the context (as part of code that won't be around for very much longer) and given that producing such a failure would be quite difficult. I am satisfied that the new unit test documents the issue at hand, which is better than nothing.

Thanks David, please merge.

@davidhassell davidhassell merged commit f8db7da into NCAS-CMS:master Apr 1, 2022
@davidhassell davidhassell added this to the 3.13.0 milestone Jun 23, 2022
@davidhassell davidhassell deleted the cfa-base branch November 15, 2022 09:34
@davidhassell davidhassell changed the title Cfa base CFA base Nov 15, 2023
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.

Setting the CFA "base" option to an empty string in cf.write results in incorrect relative path names in the output cfa_array attribute

2 participants