allennlp
allennlp copied to clipboard
Added for saving git info
Change proposed in this pull request: Saving git repo infos in meta class along with metadata of model archives after going through #4862 issue
Before submitting
- [x] I've read and followed all steps in the Making a pull request
section of the
CONTRIBUTINGdocs. - [x] I've updated or added any relevant docstrings following the syntax described in the
Writing docstrings section of the
CONTRIBUTINGdocs. - [ ] If this PR fixes a bug, I've added a test that will fail without my fix.
- [ ] If this PR adds a new feature, I've added tests that sufficiently cover my new functionality.
After submitting
- [ ] All GitHub Actions jobs for my pull request have passed.
- [ ]
codecov/patchreports high test coverage (at least 90%). You can find this under the "Actions" tab of the pull request once the other checks have finished.
Looks good. Can you also add a changelog entry?
Looks good. Can you also add a changeling entry?
Do you mean adding it into the changelog?
Yes, sorry for the typo. Autocorrect, am I right? 😅
Haha, happens to the best of us.
Hey @dirkgr this is my first time working on open source and I think by mistake I disabled auto-merge. Also, I have no clue why the tests are not passing. Could you give me some ideas on where and how to start? It will be really helpful.
I think auto-merge automatically disables itself when you make a change. Otherwise anyone could push to the branch and it would get merged. It's a safety feature in GitHub.
Let's see if those tests are even still failing.
I'm afraid this is a real test failure. The tests now seem to require your git repo to be in a very defined state. We can't have that. It breaks our own tests, and it'll certainly break the tests that @h-vetinari runs in conda-forge.
So what should be done next?
Look at the error and decide on a path to fix it. It looks to me like it's trying to determine the name of the current branch. What should happen if there isn't a current branch? What should happen if the code is run outside of a git repository?