-
Notifications
You must be signed in to change notification settings - Fork 87
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
Regression data update for clawpack/riemann#111 #236
Regression data update for clawpack/riemann#111 #236
Conversation
…: full or recursive garbage
Nope, was probably being lazy.
I agree that it does not make sense to keep the diffs. They can always be reconstructed via the commit hash anyway. |
Actually the diff's can't be reconstructed -- they show changes in the working directories that have not been committed. But the point is that we should check to see that there aren't any such changes and resolve them (or at least make sure they don't affect the tests being run) before creating new regression data. Once we've done that, we don't need to archive the diff file. We should probably also have a policy of rerunning the tests and recreating and committing the Note: Travis tests for this PR won't pass until we update clawpack/clawpack with the latest riemann commits. |
@mandli I think you used the relative import because otherwise it doesn't work on Travis, with the error below. I just tried moving the import statement up to the top of the file, thinking maybe it was in the output directory when the class was invoked, but that didn't help. There are a lot of confusing discussions on relative imports on stackoverflow, which didn't help much. I don't see what was wrong with the initial version since there is an @ketch, maybe you can shed light on this?
|
One alternative is to use the full absolute import (though it feels ugly to me):
I also think this will work:
(and then call |
@mandli: do you understand the error that the Python3 build now gives?
|
No idea. Do you have any idea where it's being raised? |
Not except what's in the Travis log. |
I saw this error message once recently but can't remember what turned out to be the issue. Will take a look later today. |
I'm a bit confused. As far as I can tell, the exception quoted by @rjleveque above is ignored; there are other exceptions that cause test failure, but they seem to be caused by building against old versions of other parts of clawpack. The first one is
But in master, line 90 of amrclaw/data.py is
Looking at |
Okay, it's clear now: the line in question was fixed in clawpack/amrclaw@b4f8b4e, but clawpack/clawpack is pointing to a slightly older version of AMRClaw. So I think updating clawpack/clawpack to a newer version of AMRClaw will get rid of some or all of the errors we're seeing here. |
I reran the regression tests using the new GeoClaw Riemann solver merged in clawpack/riemann#111.
Some issues:
In tests/bowl_slosh I got the following error and so I got rid of the relative import:
@mandli, was there a reason for this relative import?
I also removed the
claw_git_diff.txt
files from theregression_data
directories, because these files get filled up with a recursive bunch of garbage when they are committed to git and git does agit diff
on the old version to make a new version.I suggest in the future we only commit the
claw_git_status.txt
files, and in general the working directories should be clean when we do this so there won't be any uncommitted changes except in theregression_data
directory itself.