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

Only use async pre-empt hack if go < 1.15 #12718

Merged
merged 2 commits into from
Sep 4, 2020

Conversation

zeripath
Copy link
Contributor

@zeripath zeripath commented Sep 4, 2020

Go 1.15 should have fixed the problems requiring setting GODEBUG=asyncpreempt=off. Therefore if we are running 1.15 we don't need to set this.

Signed-off-by: Andrew Thornton art27@cantab.net

Signed-off-by: Andrew Thornton <art27@cantab.net>
@zeripath zeripath added the type/feature Completely new functionality. Can only be merged if feature freeze is not active. label Sep 4, 2020
@zeripath zeripath added this to the 1.13.0 milestone Sep 4, 2020
@@ -130,7 +132,9 @@ func (c *Command) RunInDirTimeoutEnvFullPipelineFunc(env []string, timeout time.
}

// TODO: verify if this is still needed in golang 1.15
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// TODO: verify if this is still needed in golang 1.15

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps we should actually verify it first... 😛

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Sep 4, 2020
"strings"
"time"

"code.gitea.io/gitea/modules/process"
"github.com/mcuadros/go-version"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/mcuadros/go-version was archived !!!

we should switch to github.com/hashicorp/go-version

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll try to create a pr - it shold be a drop in replacement ...

@codecov-commenter
Copy link

codecov-commenter commented Sep 4, 2020

Codecov Report

Merging #12718 into master will increase coverage by 0.02%.
The diff coverage is 22.95%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #12718      +/-   ##
==========================================
+ Coverage   43.29%   43.31%   +0.02%     
==========================================
  Files         646      646              
  Lines       71592    71625      +33     
==========================================
+ Hits        30993    31022      +29     
+ Misses      35583    35581       -2     
- Partials     5016     5022       +6     
Impacted Files Coverage Δ
models/migrations/migrations.go 4.66% <ø> (ø)
models/migrations/v148.go 0.00% <0.00%> (ø)
models/user.go 53.56% <ø> (-0.20%) ⬇️
modules/git/command.go 86.40% <0.00%> (-1.83%) ⬇️
modules/graceful/server.go 47.00% <0.00%> (-0.41%) ⬇️
modules/highlight/highlight.go 24.69% <0.00%> (ø)
modules/migrations/gitlab.go 1.04% <0.00%> (-0.10%) ⬇️
modules/public/public.go 56.16% <0.00%> (ø)
modules/repofiles/action.go 53.29% <0.00%> (-10.95%) ⬇️
modules/session/virtual.go 60.20% <0.00%> (ø)
... and 30 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 482b0e6...46f9a6e. Read the comment docs.

Copy link
Member

@6543 6543 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wont block things because #12719 change more code as i thought and is WIP at the moment

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Sep 4, 2020
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Sep 4, 2020
@techknowlogick techknowlogick merged commit bda9e51 into go-gitea:master Sep 4, 2020
@zeripath zeripath deleted the remove-async-preempt-hack branch September 4, 2020 22:07
@6543 6543 added type/enhancement An improvement of existing functionality and removed type/feature Completely new functionality. Can only be merged if feature freeze is not active. labels Oct 14, 2020
@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
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants