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.7.6 -> 1.8.0 #60014

Merged
merged 1 commit into from Apr 22, 2019
Merged

gitea: 1.7.6 -> 1.8.0 #60014

merged 1 commit into from Apr 22, 2019

Conversation

etu
Copy link
Contributor

@etu etu commented Apr 22, 2019

Motivation for this change

Changelog: https://github.com/go-gitea/gitea/releases/tag/v1.8.0

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@etu
Copy link
Contributor Author

etu commented Apr 22, 2019

@GrahamcOfBorg build gitea nixosTests.gitea

@srhb srhb merged commit a115006 into NixOS:master Apr 22, 2019
@etu etu deleted the update-gitea-180 branch April 23, 2019 05:22
@nyanloutre
Copy link
Member

should this be backported as there are security fixes ?

@etu
Copy link
Contributor Author

etu commented Apr 23, 2019

@nyanloutre Hard to say since gitea tend to sometimes break things in minor versions... But they also abandon minor versions quite fast...

@ajs124
Copy link
Member

ajs124 commented Apr 23, 2019

I think this breaks with databases other than sqlite right now, but I'm not 100% sure.

gitea[22208]: panic: default addr for network '/var/lib/gitea/data' unknown
gitea[22208]: goroutine 1 [running]:
gitea[22208]: code.gitea.io/gitea/vendor/github.com/go-macaron/session.Sessioner(0xc000607560, 0x1, 0x1, 0x8, 0x9)
gitea[22208]:     /build/go/src/code.gitea.io/gitea/vendor/github.com/go-macaron/session/session.go:155 +0x23e
gitea[22208]: code.gitea.io/gitea/routers/routes.NewMacaron(0xc0002272c0)
gitea[22208]:     /build/go/src/code.gitea.io/gitea/routers/routes/routes.go:142 +0xafe
gitea[22208]: code.gitea.io/gitea/cmd.runWeb(0xc0002272c0, 0x0, 0x0)
gitea[22208]:     /build/go/src/code.gitea.io/gitea/cmd/web.go:125 +0xae
gitea[22208]: code.gitea.io/gitea/vendor/github.com/urfave/cli.HandleAction(0x14af380, 0x172d400, 0xc0002272c0, 0xc000602300, 0x0)
gitea[22208]:     /build/go/src/code.gitea.io/gitea/vendor/github.com/urfave/cli/app.go:471 +0xad
gitea[22208]: code.gitea.io/gitea/vendor/github.com/urfave/cli.Command.Run(0x16c0a60, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x16e3ed7, 0x16, 0x0, ...)
gitea[22208]:     /build/go/src/code.gitea.io/gitea/vendor/github.com/urfave/cli/command.go:191 +0x928
gitea[22208]: code.gitea.io/gitea/vendor/github.com/urfave/cli.(*App).Run(0xc000608000, 0xc00000e060, 0x2, 0x2, 0x0, 0x0)
gitea[22208]:     /build/go/src/code.gitea.io/gitea/vendor/github.com/urfave/cli/app.go:241 +0x658
gitea[22208]: main.main()
gitea[22208]:     /build/go/src/code.gitea.io/gitea/main.go:57 +0x426
systemd[1]: gitea.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
systemd[1]: gitea.service: Failed with result 'exit-code'.

The module should probably be changed to not specify [database] → PATH = …, when the database type is not sqlite.

@srhb
Copy link
Contributor

srhb commented Apr 24, 2019

@ajs124 As far as I know, the path setting is simply ignored for everything but sqlite. Notice also that the tests for gitea in NixOS are run for mysql, postgresql and sqlite (and succeeded with this PR.)

This error looks fishy, though: gitea[22208]: panic: default addr for network '/var/lib/gitea/data' unknown

@etu
Copy link
Contributor Author

etu commented Apr 24, 2019

I think this breaks with databases other than sqlite right now, but I'm not 100% sure.

gogs and gitea have always had the promise that "it's just a binary that you run and you don't have to care". Both for running and upgrading. Hence they kinda promise that they will migrate the database as well, otherwise the upgrades wouldn't be smooth as they promise.

I know that we once did an upgrade of gitea in a backport, and one user got upset because it broke because of locales that we copied to the statedir, so with the upgrades the user had the wrong locales. This was fixed in a098cc9 so we put the symlink to the currently running versions locales in the statedir. So the locales won't ever break again on upgrades.

So I think it would be smooth to backport this.

@aanderse
Copy link
Member

I support a backport as @etu does. It might be worth enabling the dump option by default given how frequently important updates occur. This might save some grief for anyone misguided enough to run gitea without proper backups (what was I thinking?!)...

@etu
Copy link
Contributor Author

etu commented May 1, 2019

It might be worth enabling the dump option by default given how frequently important updates occur.

That change would not be backported though... :-)

etu added a commit to etu/nixpkgs that referenced this pull request May 1, 2019
@etu etu mentioned this pull request May 1, 2019
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants