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

Fix race in integration testlogger #6556

Merged
merged 3 commits into from
Apr 11, 2019

Conversation

zeripath
Copy link
Contributor

@zeripath zeripath commented Apr 9, 2019

Unfortunately go testing will panic if you try to log after test has finished - this can cause a race in the integration test on drone. As we don't care about these logs - we should just catch the panic and just ignore it.

@zeripath zeripath added type/testing topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile labels Apr 9, 2019
@zeripath zeripath added this to the 1.9.0 milestone Apr 9, 2019
@codecov-io
Copy link

codecov-io commented Apr 9, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@346036d). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #6556   +/-   ##
=========================================
  Coverage          ?   40.37%           
=========================================
  Files             ?      405           
  Lines             ?    54260           
  Branches          ?        0           
=========================================
  Hits              ?    21905           
  Misses            ?    29340           
  Partials          ?     3015

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 346036d...8838f21. Read the comment docs.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Apr 9, 2019
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Apr 10, 2019
@lunny lunny merged commit c02c6a1 into go-gitea:master Apr 11, 2019
@zeripath zeripath deleted the fix-race-in-integration-test-logging branch April 11, 2019 15:17
@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. topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile type/testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants