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

non-deterministic test failure for test TestValidRequestResponse #217

Open
anz-rfc opened this issue Sep 10, 2020 · 0 comments
Open

non-deterministic test failure for test TestValidRequestResponse #217

anz-rfc opened this issue Sep 10, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@anz-rfc
Copy link
Contributor

anz-rfc commented Sep 10, 2020

Description

non-deterministic test failure for test TestValidRequestResponse

Steps to Reproduce

  1. run make all

Expected behavior

running make all from clean slate has same outcome

Actual behavior

sometimes running make all from a clean slate fails with

ok      github.com/anz-bank/sysl-go/codegen/tests/simple    0.036s  coverage: 27.3% of statements
--- FAIL: TestValidRequestResponse (0.00s)
    simplegrpc_test.go:78: 
            Error Trace:    simplegrpc_test.go:78
                                        simplegrpc_test.go:115
            Error:          Received unexpected error:
                            rpc error: code = Unimplemented desc = unknown service simplepb.SimpleGrpc
            Test:           TestValidRequestResponse
FAIL
coverage: 58.8% of statements

Your Environment

dockerised debian dev environment:

Define new file devenv.Dockerfile inside checkout of sysl-go repo:

FROM golang:1.14-stretch
  
WORKDIR /temp-deps/sysl
RUN curl -LJO https://github.com/anz-bank/sysl/releases/download/v0.207.0/sysl_0.207.0_linux-amd64.tar.gz && tar -xvf sysl_0.207.0_linux-amd64.tar.gz && mv sysl /bin/sysl

WORKDIR /temp-deps/arrai
RUN curl -LJO https://github.com/arr-ai/arrai/releases/download/v0.171.0/arrai_v0.171.0_linux-amd64.tar.gz && tar -xvf arrai_v0.171.0_linux-amd64.tar.gz && mv arrai /bin/arrai

WORKDIR /temp-deps/golangci-lint
RUN curl -LJO https://github.com/golangci/golangci-lint/releases/download/v1.29.0/golangci-lint-1.29.0-linux-amd64.tar.gz && tar -xvf golangci-lint-1.29.0-linux-amd64.tar.gz && mv golangci-lint-1.29.0-linux-amd64/golangci-lint /bin/golangci-lint

RUN go get golang.org/x/tools/cmd/goimports

RUN arrai info

COPY . /sysl-go
WORKDIR /sysl-go
RUN make -d all

then run it with docker:

docker build -f devenv.Dockerfile -t sysl-go-devenv:hack .

n.b. arrai info output is

Version    : v0.171.0
Git commit : 4e544ebba43503cb12e6d1a9bc2bfed01291b177
Date       : 2020-09-06T23:54:08Z
OS/arch    : linux/amd64
Go version : go1.14.8 linux/amd64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant