You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules
mrsdizzie 922a239079
Disable new signal-based asynchronous goroutine preemption from GO 1.14 in git env (#11237)
As seen in trouble shooting #11032 the new feature of Go 1.14 is causing several second delays in startup in certain situations. Debugging shows it spending several seconds handling SIGURG commands during init:

```
6922:04:51.984234 trace init() ./modules/queue/unique_queue_wrapped.go
remote: ) = 69 <0.000012>
remote: [pid 15984] 22:04:51 write(1, "\ttime taken: 236.761\302\265s\n\n", 25    time taken: 236.761µs
remote:
remote: ) = 25 <0.000011>
remote: [pid 15984] 22:04:51 --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=15984, si_uid=0} ---
remote: [pid 15984] 22:04:52 --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=15984, si_uid=0} ---
remote: [pid 15984] 22:04:52 --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=15984, si_uid=0} ---
```

This causes up to 20 seconds added to a push in some cases as it happens for each call of the gitea hook command. This is likely the cause of #10661 as well and would start to effect users once we release 1.12 which would be the first release compiled with Go 1.14. I suspect this is just a slight issue with the upstream implementatation as there have been a few very similar bugs fixed and reported:

 https://github.com/golang/go/issues/37741
 https://github.com/golang/go/issues/37942

We should revisit this in the future and see if a newer version of Go has solved it, but for now disable this option in the environment that gitea hook runs in to avoid it.
4 years ago
..
analyze Migrate to go-enry new version (#10906) 4 years ago
auth Add option to increase provided OAuth2 token maximum size (#11180) 4 years ago
avatar Improve handling of non-square avatars (#7025) 5 years ago
base Add gitea-vet (#10948) 4 years ago
cache make avatar lookup occur at image request (#10540) 4 years ago
charset deps: update and fix chardet import (#9351) 5 years ago
context Fix release counter on API repository info (#10968) 4 years ago
convert Prevent merge of outdated PRs on protected branches (#11012) 4 years ago
cron Refactor repository check and sync functions (#9854) 5 years ago
generate Add gitea-vet (#10948) 4 years ago
git Disable new signal-based asynchronous goroutine preemption from GO 1.14 in git env (#11237) 4 years ago
gitgraph Move git graph from models to modules/graph (#9027) 5 years ago
graceful Prevent panic during wrappedConn close at hammertime (#11219) 4 years ago
highlight Add a lot of extension to language mappings for syntax highlights (#7741) 5 years ago
httplib Add golangci (#6418) 5 years ago
indexer Log the indexer path on failure (#11172) 4 years ago
lfs Add gitea-vet (#10948) 4 years ago
log modules/log: remove noop written variables (#10182) 4 years ago
markup Prevent panic during wrappedConn close at hammertime (#11219) 4 years ago
metrics Prometheus endpoint (#5256) 6 years ago
migrations When migrating from Gitlab map Approvals to approving Reviews (#11147) 4 years ago
notification add request review from specific reviewers feature in pull request (#10756) 4 years ago
options Rename scripts to build and add revive command as a new build tool command (#10942) 4 years ago
password Add password requirement info on error (#9074) 5 years ago
pprof Add golangci (#6418) 5 years ago
private Upgrade golangci-lint to 1.24.0 (#10894) 4 years ago
process Add gitea-vet (#10948) 4 years ago
public Send 404 immediately for known public requests (#11117) 4 years ago
queue Improve config logging when WrappedQueue times out (#11174) 4 years ago
recaptcha fixed reCAPTCHA URL (#9083) 5 years ago
references Accept punctuation after simple+cross repository issue references (#10091) 4 years ago
repofiles Fix GetContents(): Dont't ignore Executables (#11192) 4 years ago
repository Fix forked repo has no icon and language stat. (#10791) 4 years ago
secret Integrate OAuth2 Provider (#5378) 5 years ago
session Use gitea forked macaron (#7933) 5 years ago
setting Use AJAX for notifications table (#10961) 4 years ago
ssh log.Fatal on failure to listen to SSH port (#10795) 4 years ago
structs Add support for migrating from Gitlab (#9084) 4 years ago
sync Fix missing unlock in uniquequeue (#9790) 5 years ago
task Move create/fork repository from models to modules/repository (#9489) 5 years ago
templates [ui] Change icon type for review action in action page (#11191) 4 years ago
test Add Organization Wide Labels (#10814) 4 years ago
timeutil Use gitea forked macaron (#7933) 5 years ago
upload Fix upload file type check (#7890) 5 years ago
user Add gitea-vet (#10948) 4 years ago
util inform participants on UI too (#10473) 4 years ago
validation [API] Get a single commit via Ref (#10915) 4 years ago
webhook Add Matrix webhook (#10831) 4 years ago