Skip to content
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

gitea 1.9.0rc - missing binaries on tagged version #7382

Closed
Cherrg opened this issue Jul 8, 2019 · 8 comments · Fixed by #7388
Closed

gitea 1.9.0rc - missing binaries on tagged version #7382

Cherrg opened this issue Jul 8, 2019 · 8 comments · Fixed by #7388
Labels
topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile

Comments

@Cherrg
Copy link
Contributor

Cherrg commented Jul 8, 2019

Shouldn't there be some build binaries and changelog on release list?

-> I don't know the whole workflow so I just asked.

drone build failed on tag-test https://drone.gitea.io/go-gitea/gitea/10493/1/11

@mrsdizzie
Copy link
Member

It has not actually been released yet (per error above)

@lunny lunny added the topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile label Jul 8, 2019
@lunny
Copy link
Member

lunny commented Jul 8, 2019

tag-test failed.

@Cherrg
Copy link
Contributor Author

Cherrg commented Jul 8, 2019

I tried to reproduce on local machine by make test. Are there some requirements to run those tests?
-> I got more and other error messages

@lunny
Copy link
Member

lunny commented Jul 8, 2019

It should not require others.

@techknowlogick
Copy link
Member

This is the test that fails:

func TestGetLatestCommitTime(t *testing.T) {

It fails specifically by calling this function

func GetLatestCommitTime(repoPath string) (time.Time, error) {
which calls CLI git for-each-ref --sort=-committerdate refs/heads/ --count 1 --format=%(committerdate)

I've been able to replicate locally:

mkdir test
cd test
git init
git remote add origin https://github.com/go-gitea/gitea
git fetch origin +refs/tags/v1.9.0-rc1
git for-each-ref --sort=-committerdate refs/heads/ --count 1 --format=%\(committerdate\)

The last command returns `` which on a standard repo clone, or even a repo that has clone depth 200 it'll return a formatted date.

@lunny
Copy link
Member

lunny commented Jul 8, 2019

Yes, it needs a full clone I think but why it didn't fail before maybe because we changed .drone.yml to new format this release.

@techknowlogick
Copy link
Member

It only failed with this tag because we introduced this test since release of 1.8 with merge of other git repo (now stored at modules/git). I don't think a full clone is needed, only something at refs/head so code will have something to reference.

@techknowlogick
Copy link
Member

Ok. I have a solution that I've created a PR.

jeffliu27 pushed a commit to jeffliu27/gitea that referenced this issue Jul 18, 2019
* Fetch refs for successful testing for tag

Fix go-gitea#7382

* Update .drone.yml
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants