gitea 1.9.0rc - missing binaries on tagged version #3547

Closed
opened 2025-11-02 05:16:43 -06:00 by GiteaMirror · 8 comments
Owner

Originally created by @Cherrg on GitHub (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

Originally created by @Cherrg on GitHub (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
GiteaMirror added the topic/build label 2025-11-02 05:16:43 -06:00
Author
Owner

@mrsdizzie commented on GitHub (Jul 8, 2019):

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

@mrsdizzie commented on GitHub (Jul 8, 2019): It has not actually been released yet (per error above)
Author
Owner

@lunny commented on GitHub (Jul 8, 2019):

tag-test failed.

@lunny commented on GitHub (Jul 8, 2019): tag-test failed.
Author
Owner

@Cherrg commented on GitHub (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

@Cherrg commented on GitHub (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
Author
Owner

@lunny commented on GitHub (Jul 8, 2019):

It should not require others.

@lunny commented on GitHub (Jul 8, 2019): It should not require others.
Author
Owner

@techknowlogick commented on GitHub (Jul 8, 2019):

This is the test that fails: edc94c7041/modules/git/repo_test.go (L15)

It fails specifically by calling this function edc94c7041/modules/git/repo.go (L326) 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.

@techknowlogick commented on GitHub (Jul 8, 2019): This is the test that fails: https://github.com/go-gitea/gitea/blob/edc94c70413048107ea728ff330f32ca3de6df88/modules/git/repo_test.go#L15 It fails specifically by calling this function https://github.com/go-gitea/gitea/blob/edc94c70413048107ea728ff330f32ca3de6df88/modules/git/repo.go#L326 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.
Author
Owner

@lunny commented on GitHub (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.

@lunny commented on GitHub (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.
Author
Owner

@techknowlogick commented on GitHub (Jul 8, 2019):

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 commented on GitHub (Jul 8, 2019): 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.
Author
Owner

@techknowlogick commented on GitHub (Jul 8, 2019):

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

@techknowlogick commented on GitHub (Jul 8, 2019): Ok. I have a solution that I've created a PR.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3547