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

test: await-connectivity is too optimistic #4622

Merged
merged 7 commits into from
Sep 19, 2024

Conversation

jiceatscion
Copy link
Contributor

@jiceatscion jiceatscion commented Sep 17, 2024

Found this in the wake of #4606
I believe that await-connectivity could mistake core segments for up segments (i.e. assuming that only up segments could be found). It still makes the optimistic assumption that down segments are registered
immediately after up segments are obtained. We have to be content with that because in hidden paths test cases the down segments cannot all be found via a simple REST API query.

It seems (by reading the code and trying things by hand) that await_connectivity could be satisfied by core segments while looking for up-segments.

So, I made the part checking for leaf connectivity more picky. It also waits for the matching down segment to be registered (although, contrary to what I thought, it happens quickly).

That seems to negate the need for an extra 10s delay, so removed it.
@jiceatscion
Copy link
Contributor Author

This change is Reviewable

@jiceatscion jiceatscion requested a review from oncilla September 17, 2024 10:10
Copy link
Contributor

@oncilla oncilla left a 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 r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @jiceatscion)

Copy link
Contributor

@oncilla oncilla left a 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 r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @jiceatscion)

@jiceatscion jiceatscion enabled auto-merge (squash) September 19, 2024 08:50
@jiceatscion jiceatscion merged commit 20bba9f into scionproto:master Sep 19, 2024
5 checks passed
@jiceatscion jiceatscion deleted the fix4606 branch September 19, 2024 09:34
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.

2 participants