Skip to content

Conversation

@guillep2k
Copy link
Member

PR #8046 causes integration tests to fail:

pull_create_test.go:103:
                Error Trace:    pull_create_test.go:103
                                                        git_helper_for_declarative_test.go:77
                                                        pull_create_test.go:75
                Error:          Not equal:
                                expected: "<i>XSS PR</i>"
                                actual  : "<strike>&lt;i&gt;XSS PR&lt;/i&gt;</strike>"

                                Diff:
                                --- Expected
                                +++ Actual
                                @@ -1 +1 @@
                                -&lt;i&gt;XSS PR&lt;/i&gt;
                                +<strike>&lt;i&gt;XSS PR&lt;/i&gt;</strike>
                Test:           TestPullCreate_TitleEscape
FAIL

This PR fixes that.

@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Sep 2, 2019
@techknowlogick techknowlogick added this to the 1.10.0 milestone Sep 2, 2019
guillep2k added a commit to guillep2k/gitea that referenced this pull request Sep 2, 2019
@guillep2k
Copy link
Member Author

Note: this PR will still fail CI because of the vendor problem. See #8057.

@guillep2k guillep2k mentioned this pull request Sep 2, 2019
techknowlogick pushed a commit that referenced this pull request Sep 2, 2019
* Use export GOPROXY=https://goproxy.cn before build

* Add go version to generate command

* Reproduced the entire build procedure - see notes

I've used:

sudo go clean -i -r -cache -testcache -modcache
make clean
make generate
make golangci-lint
make revive
make swagger-check
make swagger-validate
make test-vendor            <--- this now fails
make vendor                 <--- this now produced changes
git commit -a               <--- this commit

* Add fix from #8059 to complete CI tests
@guillep2k
Copy link
Member Author

Closing because this was included in #8057

@guillep2k guillep2k closed this Sep 2, 2019
@guillep2k guillep2k deleted the fix-8046-test branch September 2, 2019 19:16
@codecov-io
Copy link

Codecov Report

Merging #8059 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8059      +/-   ##
==========================================
- Coverage   41.59%   41.57%   -0.02%     
==========================================
  Files         480      480              
  Lines       64144    64144              
==========================================
- Hits        26678    26667      -11     
- Misses      34009    34018       +9     
- Partials     3457     3459       +2
Impacted Files Coverage Δ
modules/avatar/avatar.go 48% <0%> (-6%) ⬇️
models/repo_indexer.go 64.63% <0%> (-2.04%) ⬇️
models/gpg_key.go 55.83% <0%> (-0.84%) ⬇️

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 765be70...eeedc1b. Read the comment docs.

@lunny lunny removed this from the 1.10.0 milestone Sep 3, 2019
@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/need 1 This PR needs approval from one additional maintainer to be merged. type/testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants