Skip to content

make test -> fails #8089

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

Closed
6543 opened this issue Sep 4, 2019 · 9 comments
Closed

make test -> fails #8089

6543 opened this issue Sep 4, 2019 · 9 comments

Comments

@6543
Copy link
Member

6543 commented Sep 4, 2019

make test fail on linux 64bit

tested versions: 1.8.3; 1.9.2; current (4cb1bdd)

@6543
Copy link
Member Author

6543 commented Sep 4, 2019

runing ... on v1.9.2

go list ./... | grep -v /vendor/ | grep -v 'code.gitea.io/gitea/integrations' | while read line; do 
  GO111MODULE=on go test -mod=vendor -tags='sqlite sqlite_unlock_notify' $line
  error="$?"; [ "$error" == "0" ] || {
    echo "ERROR: $error; PACKAGE: $line" >> error.log
  }
done

result:

ERROR: 1; PACKAGE: code.gitea.io/gitea/models
ERROR: 1; PACKAGE: code.gitea.io/gitea/modules/git
ERROR: 1; PACKAGE: code.gitea.io/gitea/modules/repofiles

@6543
Copy link
Member Author

6543 commented Sep 4, 2019

code.gitea.io/gitea/models:

  • models/pull.go:225:apiFormat() [E] GetBranch[master]: no such file or directory
  • models/pull.go:225:apiFormat() [E] GetBranch[master]: no such file or directory
  • modules/base/tool.go:223:libravatarURL() [E] LibravatarService.FromEmail(email=): error mail: no address
  • modules/base/tool.go:223:libravatarURL() [E] LibravatarService.FromEmail(email=): error mail: no address
  • modules/base/tool.go:223:libravatarURL() [E] LibravatarService.FromEmail(email=): error mail: no address
  • models/org.go:308:isOrganizationOwner() [E] Organization does not have owner team: 2
  • models/org.go:308:isOrganizationOwner() [E] Organization does not have owner team: 9223372036854775807
  • odels/repo_mirror.go:243:runSync() [E] Failed to synchronize tags to releases for repository: GetTagCommitID: exit status 128 - fatal: mehrdeutiges Argument 'v0.2': unbekannter Commit oder Pfad existiert nicht
  • models/repo.go:1683:updateRepository() [E] Failed to update size for repository: UpdateSize: chdir /tmp/repos113439488/user11/repo9.git: no such file or directory

@6543
Copy link
Member Author

6543 commented Sep 4, 2019

GO111MODULE=on go test -mod=vendor -tags='sqlite sqlite_unlock_notify' code.gitea.io/gitea/modules/git
--- FAIL: TestRepoIsEmpty (0.00s)
    repo_test.go:34: 
        	Error Trace:	repo_test.go:34
        	Error:      	Received unexpected error:
        	            	check empty: exit status 128 - fatal: Ihr aktueller Branch 'master' hat noch keine Commits.
        	Test:       	TestRepoIsEmpty
FAIL
FAIL	code.gitea.io/gitea/modules/git	1.866s

@6543
Copy link
Member Author

6543 commented Sep 4, 2019

code.gitea.io/gitea/modules/repofiles

  • models/repo.go:499:mustOwnerName() [E] Error loading repository owner name: user does not exist [uid: 0, name: , keyid: 0]

@6543 6543 changed the title make test -> faile make test -> fails Sep 4, 2019
@6543
Copy link
Member Author

6543 commented Sep 4, 2019

modified alpinelinux/aports#10887 for now ... (alpinelinux/aports@b9a317f)

@techknowlogick
Copy link
Member

These tests are run via our CI. It also runs using linux 64bit.

These tests should be passing, if they are failing then something should be reviewed with how the tests are being run. Looking at some of the fails above, it looks like the data isn't available for the tests.

@6543
Copy link
Member Author

6543 commented Sep 11, 2019

I'll test on my local mashine ... and try to get the test passed

@6543
Copy link
Member Author

6543 commented Oct 5, 2019

with the current version test ...

  • passes on alpine edge
  • and fialed on my dev pc (archlinux)
  • and fialed also on a fresh archlinux container install

modules wich fail on arch:

ERROR: 1; PACKAGE: code.gitea.io/gitea/models
ERROR: 1; PACKAGE: code.gitea.io/gitea/routers/repo

@6543
Copy link
Member Author

6543 commented Oct 5, 2019

sudo pacman -S git-lfs

fixed it on the fresh arch install

so I'll close this for now ...

@6543 6543 closed this as completed Oct 5, 2019
@6543 6543 reopened this Oct 6, 2019
@6543 6543 closed this as completed Oct 6, 2019
@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
None yet
Projects
None yet
Development

No branches or pull requests

2 participants