1. 29 Jul, 2022 1 commit
  2. 14 Jul, 2022 1 commit
    • 6543's avatar
      update xorm.io/xorm v1.3.2-0.20220714055524-c3bce556200f (#20371) (#20372) · 4c1f4ee8
      6543 authored
      Backport #20371
      
      Xorm 1.3.2-0.20220714055524 contains a fix for interpreting db column sizes. Prior to this fix xorm would assume that the size of a column was within the range of an `int`. This is correct on 64bit machines where `int` is typical equivalent to `int64` however, on 32bit machines `int` tends to be `int32`. 
      
      Unfortunately the size of a LONGTEXT field is actually `max_uint32`, thus using `strconv.Atoi` on these fields will fail and thus #20161 occurs on 32 bit arm. Xorm 1.3.2-0.20220714055524 changes this field to use int64 instead.
      
      Fix  #20161
      4c1f4ee8
  3. 09 Jul, 2022 1 commit
  4. 04 Jul, 2022 1 commit
  5. 18 Jun, 2022 1 commit
    • zeripath's avatar
      Add fgprof pprof profiler (#20005) · 90f3365d
      zeripath authored
      fgprof is a sampling Go profiler that allows you to analyze On-CPU as
      well as Off-CPU (e.g. I/O) time together.
      
      Go's builtin sampling CPU profiler can only show On-CPU time, but it's
      better than fgprof at that. Go also includes tracing profilers that can
      analyze I/O, but they can't be combined with the CPU profiler.
      
      fgprof is designed for analyzing applications with mixed I/O and CPU
      workloads. This kind of profiling is also known as wall-clock profiling.
      
      Whilst fgprof can cause significant STW latencies in applications with a
      lot of goroutines (> 1-10k), these latencies only occur if the profile
      is requested - it doesn't cause a delay by simply being available.
      
      The fgprof profile is mounted on
      `http://localhost:6060/debug/fgprof?seconds=3`
      
      Signed-off-by: default avatarAndrew Thornton <art27@cantab.net>
      90f3365d
  6. 10 Jun, 2022 1 commit
  7. 09 Jun, 2022 1 commit
  8. 08 Jun, 2022 1 commit
  9. 05 Jun, 2022 1 commit
  10. 04 Jun, 2022 1 commit
  11. 15 May, 2022 1 commit
  12. 10 May, 2022 1 commit
    • 6543's avatar
      Update go deps (#19665) · 65ccff54
      6543 authored
      * update gitea.com/go-chi/binding
      * update github.com/42wim/sshsig
      * update github.com/PuerkitoBio/goquery
      * update github.com/blevesearch/bleve/v2
      * update github.com/caddyserver/certmagic
      * update github.com/duo-labs/webauthn
      * update github.com/editorconfig/editorconfig-core-go/v2
      * update github.com/emirpasic/gods
      * update github.com/gliderlabs/ssh
      * update github.com/go-chi/cors
      * update github.com/go-enry/go-enry/v2
      * update github.com/go-git/go-git/v5
      * update github.com/go-ldap/ldap/v3
      * update github.com/golang-jwt/jwt/v4
      * update github.com/google/pprof
      * update github.com/klauspost/compress
      * update github.com/lib/pq
      * update github.com/markbates/goth
      * update github.com/minio/minio-go/v7
      * update github.com/olivere/elastic/v7
      * update github.com/unrolled/render
      * update github.com/urfave/cli
      * update github.com/xanzy/go-gitlab
      * update github.com/yuin/goldmark
      * adopt breaking changes of certmagic
      65ccff54
  13. 03 Apr, 2022 1 commit
    • wxiaoguang's avatar
      Remove legacy unmaintained packages, refactor to support change default locale (#19308) · d242511e
      wxiaoguang authored
      Remove two unmaintained vendor packages `i18n` and `paginater`. Changes:
      * Rewrite `i18n` package with a more clear fallback mechanism. Fix an unstable `Tr` behavior, add more tests.
      * Refactor the legacy `Paginater` to `Paginator`, test cases are kept unchanged.
      
      Trivial enhancement (no breaking for end users):
      * Use the first locale in LANGS setting option as the default, add a log to prevent from surprising users.
      d242511e
  14. 01 Apr, 2022 2 commits
  15. 31 Mar, 2022 2 commits
    • Kevin Burke's avatar
      go.mod: update kevinburke/ssh_config to v1.2.0 (#19286) · 242d7103
      Kevin Burke authored
      Previously if you tried to read a HostName in a config file that
      looked like this:
      
      ```
      Host github
          HostName github.com        # This is the host for code review
      ```
      
      DefaultUserSettings.Get("HostName") would return "github.com        ",
      which I think is unintuitive and unexpected.
      
      This behavior is fixed in v1.2 which would return "github.com" in the
      above example.
      242d7103
    • zeripath's avatar
      Add Goroutine stack inspector to admin/monitor (#19207) · c88547ce
      zeripath authored
      
      Continues on from #19202.
      
      Following the addition of pprof labels we can now more easily understand the relationship between a goroutine and the requests that spawn them. 
      
      This PR takes advantage of the labels and adds a few others, then provides a mechanism for the monitoring page to query the pprof goroutine profile.
      
      The binary profile that results from this profile is immediately piped in to the google library for parsing this and then stack traces are formed for the goroutines.
      
      If the goroutine is within a context or has been created from a goroutine within a process context it will acquire the process description labels for that process. 
      
      The goroutines are mapped with there associate pids and any that do not have an associated pid are placed in a group at the bottom as unbound.
      
      In this way we should be able to more easily examine goroutines that have been stuck.
      
      A manager command `gitea manager processes` is also provided that can export the processes (with or without stacktraces) to the command line.
      Signed-off-by: default avatarAndrew Thornton <art27@cantab.net>
      c88547ce
  16. 30 Mar, 2022 1 commit
    • Justin Sievenpiper's avatar
      Add Redis Sentinel Authentication Support (#19213) · a2c20a6c
      Justin Sievenpiper authored
      Gitea was not able to supply any authentication parameters to it. So this brings support to do that, along with some light extraction of a couple of bits into some separate functions for easier testing.
      
      I looked at other libraries supporting similar RedisUri-style connection strings (e.g. Lettuce), but it looks like this type of configuration is beyond what would typically be done in a connection string. Since gitea doesn't have configuration options for manually specifying all this redis connection detail, I went ahead and just chose straightforward names for these new parameters.
      a2c20a6c
  17. 24 Mar, 2022 1 commit
  18. 16 Mar, 2022 3 commits
  19. 09 Mar, 2022 1 commit
  20. 08 Mar, 2022 1 commit
    • techknowlogick's avatar
      bump go deps (#19021) · 1546580f
      techknowlogick authored
      
      * update gitea.com/go-chi/binding
      
      * update gitea.com/go-chi/cache
      
      * update github.com/42wim/sshsig
      
      * update github.com/PuerkitoBio/goquery
      
      * update github.com/blevesearch/bleve/v2
      
      * update github.com/caddyserver/certmagic
      
      * update github.com/denisenkom/go-mssqldb
      
      * update github.com/duo-labs/webauthn
      
      * update github.com/dustin/go-humanize
      
      * update github.com/editorconfig/editorconfig-core-go/v2
      
      * update github.com/ethantkoenig/rupture
      
      * update github.com/go-chi/chi/v5
      
      * update github.com/go-git/go-git/v5
      
      * update github.com/go-ldap/ldap/v3
      
      * update github.com/go-redis/redis/v8
      
      * update github.com/go-swagger/go-swagger
      
      * update github.com/gogs/chardet
      
      * update github.com/golang-jwt/jwt/v4
      
      * update github.com/hashicorp/go-version
      
      * update github.com/jaytaylor/html2text
      
      * update github.com/klauspost/compress
      
      * update github.com/lib/pq
      
      * update github.com/markbates/goth
      
      * update github.com/mattn/go-sqlite3
      
      * update github.com/mholt/archiver/v3
      
      * update github.com/microcosm-cc/bluemonday
      
      * update github.com/minio/minio-go/v7
      
      * update github.com/msteinert/pam
      
      * update github.com/niklasfasching/go-org
      
      * update github.com/olivere/elastic/v7
      
      * update github.com/prometheus/client_golang
      
      * update github.com/quasoft/websspi
      
      * update github.com/stretchr/testify
      
      * update github.com/unknwon/i18n
      
      * update github.com/unrolled/render
      
      * update github.com/xanzy/go-gitlab
      
      * update github.com/yuin/goldmark
      
      * update github.com/yuin/goldmark-highlighting
      
      * update github.com/yuin/goldmark-meta
      
      * post make vendor
      Signed-off-by: default avatarAndrew Thornton <art27@cantab.net>
      
      * add make vendor back into update_dependencies.sh
      Signed-off-by: default avatarAndrew Thornton <art27@cantab.net>
      
      * Update update_dependencies.sh
      
      * Update contrib/update_dependencies.sh
      Co-authored-by: default avatarzeripath <art27@cantab.net>
      
      * update mvdan.cc/xurls/v2
      Co-authored-by: default avatarAndrew Thornton <art27@cantab.net>
      Co-authored-by: default avatarwxiaoguang <wxiaoguang@gmail.com>
      1546580f
  21. 04 Mar, 2022 1 commit
  22. 27 Feb, 2022 1 commit
    • Gusted's avatar
      Update go-org to v1.6.1 (#18932) · 79c7219b
      Gusted authored
      - v1.6.0 has a inconsistency with the proxy and github's tagged version,
      updating to v1.6.1 should fix this issue.
      - Resolves #18864
      79c7219b
  23. 20 Feb, 2022 1 commit
  24. 06 Feb, 2022 2 commits
  25. 29 Jan, 2022 1 commit
  26. 26 Jan, 2022 2 commits
  27. 22 Jan, 2022 1 commit
  28. 20 Jan, 2022 1 commit
  29. 18 Jan, 2022 1 commit
  30. 14 Jan, 2022 1 commit
  31. 07 Jan, 2022 1 commit
  32. 05 Jan, 2022 1 commit
  33. 01 Jan, 2022 2 commits