-
Notifications
You must be signed in to change notification settings - Fork 205
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
Upgrade Go, use modules and enable CI on GitHub Actions #220
base: master
Are you sure you want to change the base?
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
.github/workflows/ci.yaml
Outdated
@@ -0,0 +1,44 @@ | |||
name: CI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: lowercase/same as workflow filename is preferable (ptsd on my side ahah)
.travis.yml
Outdated
@@ -1,7 +1,7 @@ | |||
language: go | |||
|
|||
go: | |||
- 1.8.7 | |||
- 1.17.5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess your can simply remove the travis file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll just leave it unchanged ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <[email protected]>
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 <[email protected]>
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <[email protected]>
Signed-off-by: Ilya Dmitrichenko <[email protected]>
- make the test more explicit about how watch method currently works on supported stores Signed-off-by: Ilya Dmitrichenko <[email protected]>
The test are passing now! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.