Upgrade Go, use modules and enable CI on GitHub Actions#220
Upgrade Go, use modules and enable CI on GitHub Actions#220errordeveloper wants to merge 5 commits intodocker:masterfrom
Conversation
.github/workflows/ci.yaml
Outdated
| - run: cd tools && go install github.com/GeertJohan/fgt github.com/mattn/goveralls golang.org/x/lint golang.org/x/tools/cmd/cover | ||
| - run: script/validate-gofmt | ||
| - run: go vet ./... | ||
| # - run: fgt /home/runner/go/bin/lint ./... |
There was a problem hiding this comment.
I should probably make this work before merging...
|
@thaJeztah do you need to approve the new workflow for it to run on this PR or does need to land in master actually? (I've never contributed GitHub Actions setup to repos I don't have admin access to, so I don't know how is that supposed to work!) |
|
See tests results on my fork: https://github.com/errordeveloper/libkv/actions?query=branch%3Aci |
|
They don't run until initially merged, but you can create a PR on your own fork to run it (perhaps there's other tricks that @crazy-max knows to do the same though) |
We must have a dummy workflow on the default branch otherwise it will not triggered. See distribution/distribution#3314 |
| @@ -0,0 +1,44 @@ | |||
| name: CI | |||
There was a problem hiding this comment.
nit: lowercase/same as workflow filename is preferable (ptsd on my side ahah)
.travis.yml
Outdated
|
|
||
| go: | ||
| - 1.8.7 | ||
| - 1.17.5 |
There was a problem hiding this comment.
I guess your can simply remove the travis file.
There was a problem hiding this comment.
I'll just leave it unchanged ;)
There was a problem hiding this comment.
On a second thought, yes, probably should just remove it and avoid confusion!
|
|
||
| require ( | ||
| github.com/coreos/etcd v3.3.25+incompatible | ||
| github.com/go-zookeeper/zk v1.0.2 |
There was a problem hiding this comment.
I wonder if we should decide not (yet) to use a go.mod here, as that would also mean that these dependencies will always be required (without a module, only dependencies for the packages that are actually used will be added in moby (I think?)
There was a problem hiding this comment.
Can we move on this PR?
With go1.17 and pruned module graphs, I think this is no longer a issue.
|
@errordeveloper #221 is merged. Just rebase and it should work. |
Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
b003e81 to
96ceae9
Compare
|
@crazy-max looks like it still refused to run new workflow... let me try to rename it ;) |
|
There had been 4s & 5s timeouts that can lead to test failure, this rounds up both of these to 5s and provide LIBKV_TEST_SHORT_TIMEOUT for CI to override if needed. Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
|
@crazy-max somehow that still doesn't work... I think someone just need to approve the run, but maybe we could merge new workflow instead to make it simpler? |
|
You have created a new dummy.yaml and removed the dummy.yml that's why I think. You have to rename dummy.yml to ci.yml. See #220 (comment). |
|
Damn no dice :'( |
|
@errordeveloper Anyway you can check on your fork it seems to fail: https://github.com/errordeveloper/libkv/runs/4562356731?check_suite_focus=true |
|
@crazy-max I'll just remove |
a9ea9e6 to
1dba664
Compare
aba7ac6 to
7978b10
Compare
| @@ -136,11 +147,8 @@ func testPutGetDeleteExists(t *testing.T, kv store.Store) { | |||
|
|
|||
| func testWatch(t *testing.T, kv store.Store) { | |||
There was a problem hiding this comment.
I am really not sure what to do here... sending a sequence of value fixes the test on Consul and Zookeeper, but on etcd updates seem to come out of order :(
083d82c to
0032462
Compare
Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
- make the test more explicit about how watch method currently works on supported stores Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
|
The test are passing now! |
No description provided.