Commit Graph

209 Commits

Author SHA1 Message Date
jichangjun
d951afb435 remove useless logic 2021-01-17 18:29:24 +08:00
tongjingran
cc35564b1d shadow symlink file instead of skip 2020-12-31 16:07:07 +08:00
tongjingran
c305472279 skip irregular files except dir 2020-12-31 11:26:48 +08:00
tongjingran
0be9c822e8 change build copy 2020-12-31 11:12:52 +08:00
Changjun Ji
51601902e2
Revert "optimize the file copy strategy of goc build" 2020-12-22 15:22:17 +08:00
Changjun Ji
7c8205500e
Revert "Improve performance of getting filelist to copy" 2020-12-22 15:21:31 +08:00
lyyyuna
711c14cad1 improve performance of getting filelist to copy 2020-12-21 13:18:49 +08:00
qiniu-bot
0d9db7f7af
Merge pull request #145 from CarlJi/1218
feature: add skipFile flag for profile API
2020-12-21 10:49:23 +08:00
qiniu-bot
b97f5f683f
Merge pull request #143 from tongjingran/buildCopy
optimize the file copy strategy of `goc build`
2020-12-21 10:27:23 +08:00
jichangjun
5cbf6c47ad doc: update wechat image 2020-12-20 20:16:06 +08:00
jichangjun
adfacd1713 feature: add e2e tests 2020-12-20 18:12:38 +08:00
jichangjun
89bb9bd8b6 feature: add unit tests 2020-12-20 18:12:38 +08:00
jichangjun
ede278cb64 feature: add skipFile flag for profile API 2020-12-20 18:12:38 +08:00
tongjingran
a72ede39bd change copy function name 2020-12-18 19:54:46 +08:00
tongjingran
2493847661 add ut 2020-12-15 20:43:52 +08:00
tongjingran
1fb530c9ab fix newGopath set & target name 2020-12-15 20:38:43 +08:00
tongjingran
d8cd308ce1 optmise the copy stratgy 2020-12-15 20:38:43 +08:00
gavwu
237bdb3af9 go fmt 2020-12-13 14:29:40 +08:00
gavwu
8c4a6e7e6f fix GetAll() potentially return an unprotected map 2020-12-10 23:35:15 +08:00
zhengjin
fb83028e8c Update as comments. 2020-11-14 13:52:53 +08:00
zhengjin
9cfec44091 Fix nil issue when failed to register with coverage center. 2020-11-11 20:17:37 +08:00
lyyyuna
55fb63917d update 2020-10-21 14:22:33 +08:00
lyyyuna
fcc160af52 fix unit test 2020-10-21 14:22:32 +08:00
lyyyuna
9a024aa009 do cover another way
fix

update

update injected http_cover_apis_auto_generated.go

fix legacy project

fix lint
2020-10-21 14:22:32 +08:00
lyyyuna
f1d32e7baf check error 2020-10-21 11:36:19 +08:00
lyyyuna
382a28f775 implement set for filestore 2020-10-21 11:36:19 +08:00
lyyyuna
57a56c2d68 add remove command 2020-10-21 11:36:19 +08:00
lyyyuna
a22229cd1b add store remove 2020-10-21 11:36:19 +08:00
tongjingran
cc7ae82b4f new a goc server with New func 2020-09-25 20:54:36 +08:00
tongjingran
c175816849 convert cover.GocServer to a struct and support set presistence file 2020-09-25 20:54:31 +08:00
tongjingran
8aa7057b86 fix no profiles 2020-09-14 16:35:46 +08:00
lyyyuna
81485d7702 add test 2020-09-12 16:59:35 +08:00
lyyyuna
c4e12e6d86 fix ci 2020-09-11 16:06:35 +08:00
lyyyuna
15caa56c73 clear coverage by service&addr 2020-09-11 15:45:45 +08:00
jichangjun
a02988fb3a add more case for filterProfile method 2020-09-07 15:09:54 +08:00
jichangjun
ff8f840b14 add case for profile api with coverfile flag 2020-09-05 18:32:55 +08:00
jichangjun
c00f871f80 add e2e for goc profile with coverfile flag 2020-09-05 16:53:27 +08:00
jichangjun
3f29fd78ca redesign profile api 2020-09-05 15:52:27 +08:00
jichangjun
d648bef19e add case for filterProfile func 2020-09-02 22:22:01 +08:00
jichangjun
ca15b18860 goc profile: add coverpkg flag 2020-09-02 21:06:37 +08:00
tongjingran
eee494b4a0 change do to get http response 2020-08-24 11:51:21 +08:00
lyyyuna
accc02a02d alter log 2020-08-12 16:55:32 +08:00
lyyyuna
5890daa417 add integration test 2020-08-12 14:06:13 +08:00
lyyyuna
98b32214fc update test samples 2020-08-12 10:42:47 +08:00
lyyyuna
4dfd0bc735 add support for go.mod contains replace directive 2020-08-11 20:14:24 +08:00
lyyyuna
288f5404b2 add merge command 2020-08-05 17:50:56 +08:00
memoryliu
81d69dea54 Fix cover service listen port issue for #74 2020-08-05 14:42:00 +08:00
tongjingran
9d7791dd3c fix misspell 2020-07-31 15:58:54 +08:00
tongjingran
6244624e53 fix golint and ineffassign 2020-07-31 15:26:13 +08:00
tongjingran
4536d67c83 add comments for exported method and fix fmt
move mock struct to test file
2020-07-30 17:00:27 +08:00
tongjingran
dc72708d64 mock qiniu, gihub, artifacts client 2020-07-27 10:40:45 +08:00
tongjingran
8c719effc8 ut case add 2020-07-27 10:38:12 +08:00
jichangjun
2814fe9d4f fix golint err 2020-07-26 18:18:46 +08:00
jichangjun
51dad73b05 enhance doc 2020-07-26 17:46:35 +08:00
jichangjun
249a931f6c fix golint error 2020-07-26 17:03:47 +08:00
lyyyuna
628629cbe7 add unittes case & add e2e sample 2020-07-23 15:43:16 +08:00
qiniu-bot
30c54957da
Merge pull request #77 from lyyyuna/master
Enhance "file lock sync" logic
2020-07-20 16:13:44 +08:00
lyyyuna
eeb549518d enhance "file lock sync" logic 2020-07-17 20:20:07 +08:00
tongjingran
627d7e14ee standardize naming 2020-07-17 18:29:45 +08:00
tongjingran
67e5906bd1 optimize statement and encapsulate logic 2020-07-17 17:08:21 +08:00
qiniu-bot
a2a0880ff7
Merge pull request #75 from lyyyuna/goc-70
Add some e2e tests
2020-07-17 14:49:42 +08:00
lyyyuna
72bf6b265d update run e2e test case 2020-07-17 14:27:00 +08:00
tongjingran
273ccbfbf2 add uts and optimize expression 2020-07-16 12:28:41 +08:00
tongjingran
f96a73f219 change server name register to server and process duplicate flag values 2020-07-16 12:27:01 +08:00
tongjingran
3e5f0e1a81 add flags for cmd profile 2020-07-16 12:26:15 +08:00
lyyyuna
590461c281 goc build goc
update

update

update

update

update

update

update

update

update

update

update

update

update

update

update

update
2020-07-11 08:31:05 +08:00
lyyyuna
735dbb078f add test for internal package
add codecov configuration

delete
2020-07-10 15:17:33 +08:00
lyyyuna
0efacf0ca9 add unit test for #43 2020-07-10 11:05:54 +08:00
memoryliu
ac34f416da Add agentport flag check 2020-07-09 16:03:09 +08:00
qiniu-bot
6398d4f028
Merge pull request #54 from memoryliu/feature_52
Add particular port for registered service when goc build
2020-07-03 23:59:09 +08:00
lyyyuna
60727d8903 support for new packages that need downloading.
log stderr as well

fix gofmt
2020-07-03 22:29:53 +08:00
Lei,Liu
24040459f2 Add particular port for registered service when goc build 2020-07-03 21:28:12 +08:00
jichangjun
3de6ec5a2d doc: be consistent and remove noise 2020-06-27 13:24:57 +08:00
jichangjun
64fe1e5f1a doc: fix typo 2020-06-19 15:00:11 +08:00
jichangjun
f6a9ce3aac do not print host for goc agaent by default 2020-06-19 14:03:40 +08:00
lyyyuna
5892de106b fix unit test
add test for cover package

add unit test
2020-06-18 20:24:12 +08:00
lyyyuna
7916d1ee68 get current working directory only once 2020-06-18 17:03:14 +08:00
lyyyuna
b02d49c2be enhance error handling 2020-06-18 16:20:54 +08:00
lyyyuna
a5f358576d add unit test
add unit test for install

fix unit test

add  license

add test
2020-06-17 15:01:20 +08:00
lyyyuna
40bdcf21d4 fix go1.11 go1.12 pkg.Root issue 2020-06-17 14:55:29 +08:00
lyyyuna
272e4a858b fix ci
fix ci - ginkgo
2020-06-17 14:55:29 +08:00
lyyyuna
57498dd11f fix #14 2020-06-17 14:55:29 +08:00
jichangjun
2c101f62f1 add test cases 2020-06-15 19:33:20 +08:00
jichangjun
76b03178c0 adjust log behavior for goc server and agent 2020-06-15 17:34:54 +08:00
jichangjun
99fe3e5fe4 only save services informaion into memory for goc run mode 2020-06-15 17:16:50 +08:00
jichangjun
3dd2c9cd21 capture logs when executing goc run 2020-06-15 15:54:36 +08:00
jichangjun
c82e61dcfe use viper to get value of debug flag 2020-06-15 15:29:49 +08:00
jichangjun
4ad2bc3fd7 feature: add run command 2020-06-15 15:24:26 +08:00
jichangjun
0fb0487dbb refactor cover method 2020-06-15 15:24:26 +08:00
jichangjun
346530150c show debug flag 2020-06-14 13:28:41 +08:00
jichangjun
3115bead40 add unit tests for register and list api 2020-06-14 11:46:31 +08:00
jichangjun
8f95da9041 add register command 2020-06-14 11:46:31 +08:00
jichangjun
45612d6f63 add list command 2020-06-14 11:46:31 +08:00
lyyyuna
dac858ef07 fix #14 2020-06-14 09:15:48 +08:00
lyyyuna
13c7b6ba8c add test 2020-06-13 22:30:31 +08:00
lyyyuna
5a2a6cd199 fix gofmt 2020-06-13 21:22:00 +08:00
lyyyuna
be87886315 -o compatible with go1.11,go1.2 2020-06-13 20:11:09 +08:00
lyyyuna
3717c2d29f refactor build/install command 2020-06-13 18:15:51 +08:00
lyyyuna
cd302c790d update 2020-06-12 17:51:10 +08:00
qiniu-bot
d80dfa6ef4
Merge pull request #31 from CarlJi/0531
do retry when connecting github failed
2020-06-08 11:03:31 +08:00
jichangjun
f07d0a1312 add new command 'goc init' 2020-06-07 14:07:53 +08:00
jichangjun
89efcb2215 do retry when connecting github failed 2020-06-07 11:59:27 +08:00
chupei
6129354cbd github comment set header without uppercase set 2020-06-01 18:01:49 +08:00
chupei
50ffb7980b goc add diff cmd 2020-06-01 18:01:49 +08:00
Lei,Liu
9795355196 1.Add code coverage counter clear API
2.Refact core cover method and add cover unit test
2020-05-27 19:35:10 +08:00
jichangjun
46027e2a00 update copyright with qiniu.com url 2020-05-26 00:21:54 +08:00
Changjun Ji
a39187f6df
add goc profile command (#11) 2020-05-23 10:14:11 +08:00
Li Yiyang
c2391c5b18
Migrate qbox/goc to qiniu/goc (#8)
* build/install

* all branches

* e2e test

* goc binary

PATH

add checkout code

add +x

test github action

test for github action

test for github actions

test for github actions

test for github actions

fix ci

fix

fix temp path error

* go1.11 1.10 not support go env command

fix

* fix build dir error for go 1.11/1.12 mod project

* e2e test

test

test

fix yaml syntax error

fix

fix

fix

* fix env error

fix

fix

* add unit test

* add unit test coverage report

update

update

* add license
2020-05-21 14:30:41 +08:00
Changjun Ji
0a36185ebe
add coverage server (#4)
* add coverage server

* remove noise comments
2020-05-13 16:27:19 +08:00