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

ci: add github action workflows #2596

Merged
merged 19 commits into from
Jun 23, 2021
Merged

Conversation

laojianzi
Copy link
Contributor

@laojianzi laojianzi commented Dec 29, 2020

Trying to solve: #2582

Merge before:

If the master branch changes, or if a problem occurs that does not necessarily occur, you can choose to re-run the github action job.

Differences from Travis CI:

  • Multiple os ubuntu-latest, macos-latest, windows-latest
  • No go master version
  • Sending gitter notifications using curl

Some of the problems I've encountered since using GitHub Action

path_test.go:85: 
   	Error Trace:	path_test.go:85
   	Error:      	Not equal: 
   	            	expected: float64(2010)
   	            	actual  : int(0)
   	Test:       	TestPathCleanMallocs
  • TestUnixSocket have a certain chance of failure (I don't know how to repair it 😕 )

Get http://127.0.0.1:49379/test: dial tcp 127.0.0.1:49379: bad file descriptor

@codecov
Copy link

codecov bot commented Jan 3, 2021

Codecov Report

❗ No coverage uploaded for pull request base (master@61a0cda). Click here to learn what that means.
The diff coverage is 97.99%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #2596   +/-   ##
=========================================
  Coverage          ?   98.69%           
=========================================
  Files             ?       41           
  Lines             ?     2072           
  Branches          ?        0           
=========================================
  Hits              ?     2045           
  Misses            ?       15           
  Partials          ?       12           
Impacted Files Coverage Δ
binding/msgpack.go 100.00% <ø> (ø)
binding/protobuf.go 100.00% <ø> (ø)
render/msgpack.go 100.00% <ø> (ø)
render/render.go 100.00% <ø> (ø)
response_writer.go 93.33% <33.33%> (ø)
render/json.go 85.29% <68.75%> (ø)
context.go 97.65% <94.85%> (ø)
gin.go 99.18% <98.14%> (ø)
auth.go 100.00% <100.00%> (ø)
binding/binding.go 100.00% <100.00%> (ø)
... and 24 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 61a0cda...d8f92db. Read the comment docs.

@thinkerou thinkerou added this to the v1.8 milestone Jan 11, 2021
@thinkerou thinkerou added the test label Jan 11, 2021
@thinkerou
Copy link
Member

open Setting > Secrets and set you'r gitter room id to GITTER_ROOM_ID
-- now only @javierprovecho can set it

@laojianzi
Copy link
Contributor Author

laojianzi commented Jan 14, 2021

open Setting > Secrets and set you'r gitter room id to GITTER_ROOM_ID
-- now only @javierprovecho can set it

- https://webhooks.gitter.im/e/7f95bf605c4d356372f4

@thinkerou Replace GITTER_ROOM_ID with 7f95bf605c4d356372f4, as in .travis.yml.

What do you think?

@thinkerou
Copy link
Member

open Setting > Secrets and set you'r gitter room id to GITTER_ROOM_ID
-- now only @javierprovecho can set it

- https://webhooks.gitter.im/e/7f95bf605c4d356372f4

@thinkerou Replace GITTER_ROOM_ID with 7f95bf605c4d356372f4, as in .travis.yml.

What do you think?

Yes, OK! thanks.

@laojianzi
Copy link
Contributor Author

https://github.com/gin-gonic/gin/runs/1706106769?check_suite_focus=true#step:6:32

--- FAIL: TestLoadHTMLFilesDebugMode (0.00s)
make: *** [test] Error 1
    debug_test.go:144: 
        	Error Trace:	debug_test.go:144
        	            				asm_amd64.s:1357
        	Error:      	Received unexpected error:
        	            	read |0: bad file descriptor
        	Test:       	TestLoadHTMLFilesDebugMode

bad file descriptor often occurs, suspected to be related to the use of goroutine in testing (speculation without any evidence)

@thinkerou thinkerou modified the milestones: v1.8, 1.7 Jan 15, 2021
@thinkerou thinkerou self-requested a review January 15, 2021 05:58
thinkerou
thinkerou previously approved these changes Jan 15, 2021
Copy link
Member

@thinkerou thinkerou left a comment

Choose a reason for hiding this comment

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

lgtm, thanks!

@thinkerou
Copy link
Member

@appleboy please review the pr, thanks!

continuous-integration/travis-ci Expected — Waiting for status to be reported
why still required?

@laojianzi
Copy link
Contributor Author

laojianzi commented Jan 15, 2021

@thinkerou Maybe it has something to do with this, only @javierprovecho can set it?

image

@laojianzi
Copy link
Contributor Author

- It should pass all tests in the available continuous integration systems such as TravisCI.

- It should pass all tests in the available continuous integration systems such as TravisCI.

[![Build Status](https://travis-ci.org/gin-gonic/gin.svg)](https://travis-ci.org/gin-gonic/gin)

@thinkerou I think these need to be replaced with GitHub Action, do they need to be updated here?

@thinkerou
Copy link
Member

- It should pass all tests in the available continuous integration systems such as TravisCI.

- It should pass all tests in the available continuous integration systems such as TravisCI.

[![Build Status](https://travis-ci.org/gin-gonic/gin.svg)](https://travis-ci.org/gin-gonic/gin)

@thinkerou I think these need to be replaced with GitHub Action, do they need to be updated here?

yes, please update, thanks!

@laojianzi
Copy link
Contributor Author

Thank

@appleboy add go version 1.16 to ci and fixed the conflicts
@thinkerou I didn't think it was necessary to keep .travis.yml after using github actions, so I deleted it

Please review again

@laojianzi laojianzi requested a review from appleboy March 27, 2021 09:47
@thinkerou
Copy link
Member

Thank

@appleboy add go version 1.16 to ci and fixed the conflicts
@thinkerou I didn't think it was necessary to keep .travis.yml after using github actions, so I deleted it

Please review again

ok, thanks!
wait @javierprovecho solve this: continuous-integration/travis-ci Expected — Waiting for status to be reported

appleboy
appleboy previously approved these changes Apr 6, 2021
@appleboy
Copy link
Member

appleboy commented Apr 6, 2021

@thinkerou Move the PR to v1.8 milestone?

@thinkerou
Copy link
Member

@thinkerou Move the PR to v1.8 milestone?

OK, merge to marster before removing continuous-integration/travis-ci Expected — Waiting for status to be reported

@thinkerou thinkerou modified the milestones: 1.7, v1.8 Apr 6, 2021
@thinkerou
Copy link
Member

@laojianzi please fix conflict and we will merge it, thanks!

@laojianzi
Copy link
Contributor Author

@thinkerou @appleboy https://golang.org/pkg/net/#pkg-note-BUG

Should tests requiring fd be skipped when run in windows?

@appleboy
Copy link
Member

@laojianzi We can skip the windows testing first and maybe create another PR to track the testing on Windows.

.github/workflows/gin.yml Outdated Show resolved Hide resolved
@appleboy
Copy link
Member

Waiting for @thinkerou approval.

Copy link
Member

@thinkerou thinkerou left a comment

Choose a reason for hiding this comment

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

lgtm, thanks a lot!

@thinkerou thinkerou merged commit fb8a113 into gin-gonic:master Jun 23, 2021
thinkerou added a commit that referenced this pull request Jun 24, 2021
…2751)

* Update tree.go (#2659)

delete more "()"

* updated comments for Get function for params (#2756)

* ci: add github action workflows (#2596)

* ci: add github action workflows

* test: fixed the TestUnixSocket test on windows (#20)

* ci: add github action workflows (#18)

* Remove .travis.yml

* ci: replace GITTER_ROOM_ID and upload coverage every time you go test

* ci: update coverage using codecov/codecov-action@v1

* Merge branch 'master' into github-actions

* repo: replace travis ci to github actions

* ci: add go version 1.16

* fix: go install requires a specific version

* chore(ci): remove go 1.12 support

* chore(ci): remove os windows-latest

Co-authored-by: thinkerou <thinkerou@gmail.com>
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* Setting trusted platform using an enum-like (#2739)

* gin.Context with fallback value from c.Request.Context()

* add test case

Co-authored-by: youzeliang <youzel@126.com>
Co-authored-by: Ashwani <ashwanisharma686@gmail.com>
Co-authored-by: Jeff <laojianzi1994@gmail.com>
Co-authored-by: thinkerou <thinkerou@gmail.com>
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Co-authored-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com>
thinkerou added a commit that referenced this pull request Nov 23, 2021
* ci: add github action workflows

* test: fixed the TestUnixSocket test on windows (#20)

* ci: add github action workflows (#18)

* Remove .travis.yml

* ci: replace GITTER_ROOM_ID and upload coverage every time you go test

* ci: update coverage using codecov/codecov-action@v1

* Merge branch 'master' into github-actions

* repo: replace travis ci to github actions

* ci: add go version 1.16

* fix: go install requires a specific version

* chore(ci): remove go 1.12 support

* chore(ci): remove os windows-latest

Co-authored-by: thinkerou <thinkerou@gmail.com>
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants