Closed rsdunlapiv closed 2 years ago
@ryanlong1004 I update the test procedure to include a "repeat push" step: https://github.com/esmf-org/esmf-profiler/wiki/Testing-Procedures#push-profile-to-github
The theory about there being no update to push does not seem to make sense on second thought. At a mimumum, the timestamp in the site.json will be different each time -- so it seems that there should always be at least some diff that needs to be pushed. Needs further investigation into the error.
See screenshot below.
Git only returns 0 on success and 1 on failure (even a successful failure).
If not stderr is returned, send stdout to stdout and continue as no error.
If there is stderr, reraise the exception and send a message to stderr.
Describe the bug
Running the esmf-profiler twice in a row with the push option results in an error:
First push is successful:
Second push results in an error:
The issue might be that there are no changes to commit the second time, so the git commit command is failing. In that case, the tool should still exit cleanly with a message saying there are no changes to the profile, so there is nothing to commit.
To Reproduce Run the command above twice in a row.
Expected behavior User should be able to repeat the push and succeed. If there are no changes, then the command should still not fail, even if no push is required.