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

Build has been failed in local #229

Closed
kination opened this issue May 4, 2023 · 3 comments
Closed

Build has been failed in local #229

kination opened this issue May 4, 2023 · 3 comments

Comments

@kination
Copy link

kination commented May 4, 2023

Describe the bug
Build has been failed when following the guide here https://github.com/aklivity/zilla#build-from-source

To Reproduce
Run following command

./mvnw clean install

Expected behavior
Creates a local docker image with version develop-SNAPSHOT.

Actual behavior

...
[INFO] Compiling 4 source files to /Users/kination/workspace/public/zilla/specs/engine.spec/target/test-classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] error reading /Users/kination/.m2/repository/org/eclipse/yasson/2.0.3/yasson-2.0.3.jar; zip file is empty
[ERROR] /Users/kination/workspace/public/zilla/specs/engine.spec/src/test/java/io/aklivity/zilla/specs/engine/streams/ApplicationIT.java:[16,1] cannot access io.aklivity.zilla.specs.engine.streams
  zip END header not found
[ERROR] /Users/kination/workspace/public/zilla/specs/engine.spec/src/test/java/io/aklivity/zilla/specs/engine/config/SchemaTest.java:[16,1] cannot access io.aklivity.zilla.specs.engine.config
  zip END header not found
[ERROR] /Users/kination/workspace/public/zilla/specs/engine.spec/src/test/java/io/aklivity/zilla/specs/engine/internal/CoreFunctionsTest.java:[16,1] cannot access io.aklivity.zilla.specs.engine.internal
  zip END header not found
[ERROR] /Users/kination/workspace/public/zilla/specs/engine.spec/src/test/java/io/aklivity/zilla/specs/engine/streams/NetworkIT.java:[29,8] cannot access io.aklivity.zilla.specs.engine
  zip END header not found
[ERROR] /Users/kination/workspace/public/zilla/specs/engine.spec/src/test/java/io/aklivity/zilla/specs/engine/streams/NetworkIT.java:[31,19] cannot find symbol
  symbol:   class K3poRule
  location: class io.aklivity.zilla.specs.engine.streams.NetworkIT
[ERROR] /Users/kination/workspace/public/zilla/specs/engine.spec/src/test/java/io/aklivity/zilla/specs/engine/streams/NetworkIT.java:[34,19] cannot find symbol
  symbol:   class TestRule
  location: class io.aklivity.zilla.specs.engine.streams.NetworkIT
[ERROR] /Users/kination/workspace/public/zilla/specs/engine.spec/src/test/java/io/aklivity/zilla/specs/engine/streams/NetworkIT.java:[37,18] cannot find symbol
  symbol:   class TestRule
  location: class io.aklivity.zilla.specs.engine.streams.NetworkIT

Desktop (please complete the following information):

  • OS: MacOS (M1)
@kination
Copy link
Author

kination commented May 6, 2023

It seems error above is problem of maven. But there are still issue after fixing it

...
[ERROR] io.aklivity.zilla.runtime.engine.internal.ReconfigureHttpIT.shouldReconfigureWhenModifiedHttpEtagNotSupported
[ERROR]   Run 1: ReconfigureHttpIT.shouldReconfigureWhenModifiedHttpEtagNotSupported Specified behavior did not match expected:<... "GET"
read closed

[write await CONNECTED
write http:status "200" "OK"
write http:content-length
write '---\n'
     'name: test\n'
     'bindings:\n'
     '  net1:\n'
     '    type: test\n'
     '    kind: proxy\n'
     '    exit: app1\n'
write close


accept "zilla://streams/app0"
     option zilla:window 8192
     option zilla:transmission "duplex"

accepted
connected
write notify CONNECTED

read aborted
write aborted

accept "zilla://streams/app1"
     option zilla:window 8192
     option zilla:transmission "duplex"

accepted
connected

#
# Copyright 2021-2022 Aklivity Inc.
#
# Aklivity licenses this file to you under the Apache License,
# version 2.0 (the "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at:
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#

connect "zilla://streams/net0"
        option zilla:transmission "duplex"
        option zilla:window 8192
connected

write aborted
read abort

connect await CONFIG_CHANGED
        "zilla://streams/net0"
        option zilla:transmission "duplex"
        option zilla:window 8192
connect aborted

connect await CONFIG_CHANGED
        "zilla://streams/net1"
        option zilla:transmission "duplex"
        option zilla:window 8192
connected]
> but was:<... "GET"
read closed

[

accept "zilla://streams/app0"
     option zilla:window 8192
     option zilla:transmission "duplex"

accept "zilla://streams/app1"
     option zilla:window 8192
     option zilla:transmission "duplex"

#
# Copyright 2021-2022 Aklivity Inc.
#
# Aklivity licenses this file to you under the Apache License,
# version 2.0 (the "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at:
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#

connect "zilla://streams/net0"
        option zilla:transmission "duplex"
        option zilla:window 8192

]
>
[ERROR]   Run 2: ReconfigureHttpIT.shouldReconfigureWhenModifiedHttpEtagNotSupported:126 » TestTimedOut

Seems there are problem on connection. How can make this work?

@jfallows
Copy link
Contributor

jfallows commented May 6, 2023

@kination yes, the first issue above looks like a file corruption during download of Maven dependencies during the build, glad you managed to sort it out already. 👍

This remaining issue reported above does not reproduce locally for us or on GitHub Actions build, so we need more information to help diagnose the cause.

Please repeat your local build with the following command line from zilla top level directory above specs, runtime, etc.

./mvnw clean install  -Dfailsafe.skipAfterFailureCount=1

This will have the effect of not running any additional integration tests if ReconfigureHttpIT.shouldReconfigureWhenModifiedHttpEtagNotSupported fails locally for you.

After the build breaks, please run the following command to create an archive of the ReconfigureHttpIT integration test working files.

tar czvf /tmp/zilla-229.tgz runtime/engine/target/zilla-itests

Then please upload the resulting /tmp/zilla-229.tgz file here for us to take a look. 🙂

What is the output of ./mvnw -v in your local build environment?

@jfallows
Copy link
Contributor

@kination we cannot reproduce this - please let us know if you need us to reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants