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

Integration test fix #6

Merged
merged 5 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,13 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GOVERSION }}
- run: go test -cover ./...
- run: make test

integration_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GOVERSION }}
- run: make integration-test
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ integration-test: clean coroc
go run -tags durable ./dispatchtest/integration # durable mode

clean:
find . -name '*_durable.go' -delete
@find . -name '*_durable.go' -delete

coroc:
@which coroc &>/dev/null \
|| echo "Installing coroc..." \
&& go install github.com/dispatchrun/coroutine/compiler/cmd/coroc@latest
@which coroc >/dev/null || go install github.com/dispatchrun/coroutine/compiler/cmd/coroc@latest
2 changes: 2 additions & 0 deletions dispatchclient/client.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !durable

package dispatchclient

import (
Expand Down
2 changes: 2 additions & 0 deletions dispatchclient/serde.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !durable

package dispatchclient

import "github.com/dispatchrun/coroutine/types"
Expand Down
2 changes: 2 additions & 0 deletions dispatchcoro/volatile.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !durable

package dispatchcoro

import (
Expand Down
2 changes: 2 additions & 0 deletions dispatchproto/any.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !durable

package dispatchproto

import (
Expand Down
2 changes: 2 additions & 0 deletions dispatchproto/error.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !durable

package dispatchproto

import (
Expand Down
2 changes: 2 additions & 0 deletions dispatchproto/function.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !durable

package dispatchproto

import "context"
Expand Down
2 changes: 2 additions & 0 deletions dispatchproto/id.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !durable

package dispatchproto

// ID is an identifier for a dispatched function call.
Expand Down
2 changes: 2 additions & 0 deletions dispatchproto/proto.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !durable

package dispatchproto

import (
Expand Down
2 changes: 2 additions & 0 deletions dispatchproto/serde.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !durable

package dispatchproto

import (
Expand Down
2 changes: 2 additions & 0 deletions dispatchproto/status.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !durable

package dispatchproto

import (
Expand Down
2 changes: 2 additions & 0 deletions dispatchproto/unsafe.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !durable

package dispatchproto

import (
Expand Down
2 changes: 2 additions & 0 deletions dispatchserver/endpoint.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !durable

package dispatchserver

import (
Expand Down
2 changes: 2 additions & 0 deletions dispatchserver/server.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !durable

package dispatchserver

import (
Expand Down
2 changes: 2 additions & 0 deletions dispatchtest/endpoint.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !durable

package dispatchtest

import (
Expand Down
1 change: 1 addition & 0 deletions dispatchtest/integration/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,6 @@ func run() error {
if output != "88888888" {
return fmt.Errorf("unexpected output: %q", output)
}
fmt.Println("OK")
return nil
}
2 changes: 2 additions & 0 deletions dispatchtest/key.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !durable

package dispatchtest

import (
Expand Down
2 changes: 2 additions & 0 deletions dispatchtest/run.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !durable

package dispatchtest

import (
Expand Down
2 changes: 2 additions & 0 deletions dispatchtest/server.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !durable

package dispatchtest

import (
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
connectrpc.com/connect v1.16.2
connectrpc.com/validate v0.1.0
github.com/aws/aws-lambda-go v1.47.0
github.com/dispatchrun/coroutine v0.9.0
github.com/dispatchrun/coroutine v0.9.1
github.com/offblocks/httpsig v0.8.1
golang.org/x/sys v0.21.0
google.golang.org/protobuf v1.34.2
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ github.com/bufbuild/protovalidate-go v0.6.2/go.mod h1:4BR3rKEJiUiTy+sqsusFn2ladO
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/dispatchrun/coroutine v0.9.0 h1:OKDggtjKVbEYP6DRKzRSvwcFHlXnLuhncqpH/bUf7Bg=
github.com/dispatchrun/coroutine v0.9.0/go.mod h1:4/Lb6fpuR+IQa3CPWBBbVG5gbZEIBqC48Q/PgWmRxKM=
github.com/dispatchrun/coroutine v0.9.1 h1:EYJEXrB2ogbXnN4pJGTxzv260vxgAmZnstouTzqwA/E=
github.com/dispatchrun/coroutine v0.9.1/go.mod h1:4/Lb6fpuR+IQa3CPWBBbVG5gbZEIBqC48Q/PgWmRxKM=
github.com/dunglas/httpsfv v1.0.2 h1:iERDp/YAfnojSDJ7PW3dj1AReJz4MrwbECSSE59JWL0=
github.com/dunglas/httpsfv v1.0.2/go.mod h1:zID2mqw9mFsnt7YC3vYQ9/cjq30q41W+1AnDwH8TiMg=
github.com/envoyproxy/protoc-gen-validate v1.0.4 h1:gVPz/FMfvh57HdSJQyvBtF00j8JU4zdyUgIUNhlgg0A=
Expand Down
2 changes: 2 additions & 0 deletions internal/auth/key.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !durable

package auth

import (
Expand Down
2 changes: 2 additions & 0 deletions internal/auth/signature.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !durable

package auth

import (
Expand Down
2 changes: 2 additions & 0 deletions internal/env/env.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !durable

package env

import "strings"
Expand Down
Loading