Closed corentincarton closed 3 years ago
Hi @corentincarton unfortunately, we ran out of external seats for repositories. We will discuss how to address this.
About the failing test, it was my error in writing it, because it depends on the dev machine OS (the test fails as soon as it finds a difference, so on some systems it checks 1.map first but it's not true in general. We need to make it independent from this kind of things. I'm going to fix it. Meanwhile, we'll try to find a solution to add more collaborators.
Thanks!
Hi @domeniconappo,
No worries, I just asked because it's sometimes easier to communicate suggestions using pull requests but there's no rush. Keep me posted when you push the fix.
Cheers, Corentin
@corentincarton fixed
let me know if you still experience problems
Hi @domeniconappo,
test_compare seems to be fixed but now I get the following errors for test_cutmaps:
ERROR: clone map 'tests/data/cutmaps/ldd_europe.map' does not exist
I guess some test data files are missing... Closest thing I could only find in this folder was ldd_eu.nc.
@corentincarton sorry..I forgot to add that file to repository.
Now it should be fine
@domeniconappo, thanks it's working fine now and all the tests are passing.
I don't know if you were there when we discussed that but I would suggest trying out the "Actions" feature of GitHub. For instance you could set it up to run the unit tests when someone is trying to merge a branch to master. That would ensure the stability of the master branch. It's quite straightforward to use but it may be behind a paywall. I'm just dropping this here because we have something similar in place at ECMWF on our bitbucket and it really helps for the code maintenance :)
Cheers, Corentin
@corentincarton yes, it will help for sure.
I'm going to try to setup an action for this repo...
Hi,
I'm creating a testing environment at ECWMF which will test all the lisflood repos and how they interact together. I noticed that the unit test were not passing for lisflood-utilities. I get the following error:
I could fix it by changing the assertion on line 154 from
assert 'tests/data/folder_a/1.map different from tests/data/folder_b/1.map' in str(excinfo.value)
toassert 'tests/data/folder_a/4.map different from tests/data/folder_b/4.map' in str(excinfo.value)
but I don't have to necessary rights on this repo to create a pull request. Would it be possible to add me as developer for lisflood-utilities and for lisflood-calibration so that I can directly create pull requests in the future?
Cheers, Corentin