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

fix: build failure on testwaku #2337

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

NagyZoltanPeter
Copy link
Contributor

Description

test(peer-connection-managenent): Functional Tests (#2321) @ e9d083b introduced build error through ambigous function call, testwaku build failed on master.

It turned out, some commits ago a new - duplicated toBytes proc was introduced that makes build fail for testwaku.
Removed it and checked that all tests on master no runs fine.

Changes

  • [X ] tests/testlib/sequtils.nim removed unnecessary toBytes

…introduced build error through ambigous function call, testwaku build failed on master
Copy link

github-actions bot commented Jan 7, 2024

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:2337

Built from 725784c

Copy link
Collaborator

@Ivansete-status Ivansete-status left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for it!

Copy link
Contributor

@SionoiS SionoiS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! Thanks I just notice the same thing.

@AlejandroCabeza
Copy link
Contributor

Could somebody point me to the error, please?

@NagyZoltanPeter
Copy link
Contributor Author

Could somebody point me to the error, please?

I just got ambiguous method call error while compiling testwaku. It is in the ci as well. Removing the toBytes has just simple solve the issue as that one is part of nim/stew already.

Forex:
"2024-01-05T13:49:49.2883483Z /home/runner/work/nwaku/nwaku/tests/waku_relay/test_message_id.nim(16, 7) template/generic instantiation of suite from here
2024-01-05T13:49:49.2886447Z /home/runner/work/nwaku/nwaku/tests/waku_relay/test_message_id.nim(17, 8) template/generic instantiation of test from here
2024-01-05T13:49:49.2891738Z /home/runner/work/nwaku/nwaku/tests/waku_relay/test_message_id.nim(18, 48) Error: ambiguous call; both byteutils.toBytes(s: string) [func declared in /home/runner/work/nwaku/nwaku/vendor/nim-stew/stew/byteutils.nim(246, 6)] and sequtils.toBytes(str: string) [proc declared in /home/runner/work/nwaku/nwaku/tests/testlib/sequtils.nim(4, 6)] match for: (string)
2024-01-05T13:49:49.2981179Z stack trace: (most recent call last)"
From https://pipelinesghubeus23.actions.githubusercontent.com/giLWQ9JLwXuGUVzynkfhnBAF1P5iNvXJvR07AsnDDAhJHignjF/_apis/pipelines/1/runs/15650/signedlogcontent/10?urlExpires=2024-01-08T15%3A10%3A47.6397526Z&urlSigningMethod=HMACV1&urlSignature=OllbNtIewZrVELlIYu0HS7yhyPdjIkM5uAGAKZUODNQ%3D
which is from: https://github.com/waku-org/nwaku/actions/runs/7422608920/job/20198270558#step:5:902

Copy link
Contributor

@gabrielmer gabrielmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 🤩

@AlejandroCabeza
Copy link
Contributor

Could somebody point me to the error, please?

I just got ambiguous method call error while compiling testwaku. It is in the ci as well. Removing the toBytes has just simple solve the issue as that one is part of nim/stew already.

Forex: "2024-01-05T13:49:49.2883483Z /home/runner/work/nwaku/nwaku/tests/waku_relay/test_message_id.nim(16, 7) template/generic instantiation of suite from here 2024-01-05T13:49:49.2886447Z /home/runner/work/nwaku/nwaku/tests/waku_relay/test_message_id.nim(17, 8) template/generic instantiation of test from here 2024-01-05T13:49:49.2891738Z /home/runner/work/nwaku/nwaku/tests/waku_relay/test_message_id.nim(18, 48) Error: ambiguous call; both byteutils.toBytes(s: string) [func declared in /home/runner/work/nwaku/nwaku/vendor/nim-stew/stew/byteutils.nim(246, 6)] and sequtils.toBytes(str: string) [proc declared in /home/runner/work/nwaku/nwaku/tests/testlib/sequtils.nim(4, 6)] match for: (string) 2024-01-05T13:49:49.2981179Z stack trace: (most recent call last)" From https://pipelinesghubeus23.actions.githubusercontent.com/giLWQ9JLwXuGUVzynkfhnBAF1P5iNvXJvR07AsnDDAhJHignjF/_apis/pipelines/1/runs/15650/signedlogcontent/10?urlExpires=2024-01-08T15%3A10%3A47.6397526Z&urlSigningMethod=HMACV1&urlSignature=OllbNtIewZrVELlIYu0HS7yhyPdjIkM5uAGAKZUODNQ%3D which is from: https://github.com/waku-org/nwaku/actions/runs/7422608920/job/20198270558#step:5:902

Oh, okay, I just tried running them and I got the issue. Funny how I didn't get that before.

LGTM :)

@NagyZoltanPeter NagyZoltanPeter merged commit a34c39c into master Jan 8, 2024
10 checks passed
@NagyZoltanPeter NagyZoltanPeter deleted the fix-test-util-introduced-build-error branch January 8, 2024 15:45
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

Successfully merging this pull request may close these issues.

5 participants