-
Notifications
You must be signed in to change notification settings - Fork 43
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
Bump scionproto and rains dependencies #246
Conversation
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.
Thanks for starting this @martenwallewein. Some first comments below.
Reviewed 23 of 25 files at r1, all commit messages.
Reviewable status: 23 of 25 files reviewed, 5 unresolved discussions / 0 of 1 LGTMs obtained / 0 of 1 approvals obtained
go.mod
line 24 at r1 (raw file):
) // replace github.com/netsec-ethz/rains => ../rains/
Remember to remove this again before finalizing the PR.
pkg/pan/path.go
line 32 at r1 (raw file):
type Path struct { source IA destination IA
What's the reason for this change?
Code quote:
source IA
destination IA
pkg/pan/policy.go
line 188 at r1 (raw file):
func (p snetPathWrapper) Destination() addr.IA { panic("not implemented") } // TODO: I'm not sure if it's fine to panic here...
Remember to clean this up again before finalizing the PR.
pkg/pan/quic_listen.go
line 61 at r1 (raw file):
// Listener: listener, // conn: conn, //}, nil
Remove this old code, history will be preserved by Git.
pkg/pan/raw.go
line 110 at r1 (raw file):
Source: snet.SCIONAddress{ IA: addr.IA(src.IA), Host: addr.MustParseHost(src.IP.IPAddr().IP.String()),
It's good to have PRs that focus on single issue but here I think the correct way to handle this is to go ahead and replace inet.af/netaddr by net/netip like in scionproto/scion@c43f942
Hey @marcfrei thanks for the helpful comments! Although it's an early stage for this PR, it's great to already have this kind of feedback! Especially the hint for replacing inet.af/netaddr by net/netip and the link to the commit are really helpful, I wasn't aware that similar changes were done in scionproto! Will keep you in loop when I've tackled the comments. |
@martenwallewein building the latest on this branch works for me and the binaries basic functionality (--help) seems good. Nice job! Consider updating the |
The hellodrkey is now maintained in scionproto/scion as demo/drkey.
@martenwallewein I took the liberty to push to your branch; I've updated the _examples, fixed the lint errors and updated the SCION setup for the integration tests. I think this is ready now (except for Marc's comments, that is). |
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.
Reviewed 1 of 25 files at r1.
Reviewable status: 6 of 63 files reviewed, 5 unresolved discussions / 0 of 1 LGTMs obtained / 0 of 1 approvals obtained
go.mod
line 24 at r1 (raw file):
Previously, marcfrei (Marc Frei) wrote…
Remember to remove this again before finalizing the PR.
Done, by Marten
pkg/pan/path.go
line 32 at r1 (raw file):
Previously, marcfrei (Marc Frei) wrote…
What's the reason for this change?
Done, reverted. Was probably a change due to a somewhat confusing wrapper to use pan.Path
as snet.Path
.
pkg/pan/policy.go
line 188 at r1 (raw file):
Previously, marcfrei (Marc Frei) wrote…
Remember to clean this up again before finalizing the PR.
Done, by Marten.
pkg/pan/quic_listen.go
line 61 at r1 (raw file):
Previously, marcfrei (Marc Frei) wrote…
Remove this old code, history will be preserved by Git.
Done, by Marten.
pkg/pan/raw.go
line 110 at r1 (raw file):
Previously, marcfrei (Marc Frei) wrote…
It's good to have PRs that focus on single issue but here I think the correct way to handle this is to go ahead and replace inet.af/netaddr by net/netip like in scionproto/scion@c43f942
Done. This is a relatively big change, please review!
@matzf thanks for updating My build environment:
A few tests of the tools inside SCiONLabs:
|
Hey @matzf, thanks a lot for picking this up! I was on vacation until today and didn't had a chance to look at this since my last commit. Since I was quite lost with some changes, especially to PAN, I really appreciate that you tackled these issues! Looking forward to have scion-apps running the latest scion version! 🥳 |
Is there anything left to do before getting this merged? |
From my side, this is complete, pending @marcfrei's review. I left a "BUG" comment on the pan.ListenQUIC API, which is now somewhat broken, because it can no longer properly close the underlying socket. The issue is that the quic-go library changed the listener from an interface type to a struct, which cannot be wrapped as easily. This is probably not a huge practical problem as our demo applications only open one listener for the duration of the program. |
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.
@martenwallewein: what do you think, should I merge the PR?
Reviewed 17 of 25 files at r3, 1 of 1 files at r4, 39 of 39 files at r5, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved
Yeah sure, if you reviewed @matzf and my changes and everything looks good, then we can go ahead from my side. Looking at the issue #244 we agreed to merge this in a To summarize it: Yeah it can be merged, in a |
The only use of drkey in the scion-apps was the |
Perfect, so no objections from me to merge into master 👍 |
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.
Reviewed 1 of 1 files at r6, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved
Hey guys, following this issue #244
to have scion-apps aligned with the newest scionproto and also quic-go version I started to migrate this (or at least to give it a try ^^). It currently waits for this PR netsec-ethz/rains#242 to be merged beforehand, but overall the changes look doable.
Will keep you in loop!
This change is