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

srds: remove scope from scope_name_by_hash_ in case the scope key changes #36702

Merged
merged 11 commits into from
Oct 30, 2024

Conversation

pianiststickman
Copy link
Contributor

Commit Message: srds: remove scope from scope_name_by_hash_ in case the scope key changes
Additional Description:
When a SRDS resource is updated such that its scope key changes, the scope_name_by_hash_ map used to detect scope key conflicts keeps the resource around under the old hash. This may cause spurious conflicts if the resource is removed and/or a resource is added with the old key, as demonstrated in the included tests.
Risk Level: low
Testing: CI, also added a DeltaXDS version of the test
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a

Copy link

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #36702 was opened by pianiststickman.

see: more, trace.

@pianiststickman pianiststickman marked this pull request as ready for review October 19, 2024 05:50
@mattklein123 mattklein123 self-assigned this Oct 21, 2024
@mattklein123
Copy link
Member

Thanks please add a release note for this fix.

/wait

Signed-off-by: Eugene Chan <[email protected]>
mattklein123
mattklein123 previously approved these changes Oct 22, 2024
@mattklein123
Copy link
Member

/retest

@mattklein123 mattklein123 enabled auto-merge (squash) October 22, 2024 21:53
@pianiststickman
Copy link
Contributor Author

/retest

1 similar comment
@pianiststickman
Copy link
Contributor Author

/retest

@mattklein123
Copy link
Member

Can you try merging main? CI has been undergoing a lot of changes lately.

auto-merge was automatically disabled October 24, 2024 19:53

Head branch was pushed to by a user without write access

@mattklein123
Copy link
Member

@phlax we can't seem to get this to pass CI? What is the recommended action?

@phlax
Copy link
Member

phlax commented Oct 25, 2024

looking ...

@phlax
Copy link
Member

phlax commented Oct 25, 2024

main merge should fix the checks/tsan issue

the other needs to switch kv_store_xds_delegate_integration_test - 6gig -> 2core

@phlax
Copy link
Member

phlax commented Oct 25, 2024

ill raise a PR now for the kv store test ...

@phlax
Copy link
Member

phlax commented Oct 25, 2024

#36834

@phlax
Copy link
Member

phlax commented Oct 25, 2024

landed - main merge should fix these issues

@phlax
Copy link
Member

phlax commented Oct 25, 2024

coverage fail is real, but not 100% if your PR is cause

/coverage

Copy link

Coverage for this Pull Request will be rendered here:

https://storage.googleapis.com/envoy-pr/36702/coverage/index.html

The coverage results are (re-)rendered each time the CI envoy-presubmit (check linux_x64 coverage) job completes.

🐱

Caused by: a #36702 (comment) was created by @phlax.

see: more, trace.

@phlax
Copy link
Member

phlax commented Oct 25, 2024

/retest cache fail

@pianiststickman
Copy link
Contributor Author

I think (hope?) it's unrelated, CI all passed when I opened this PR :)

/retest

@phlax
Copy link
Member

phlax commented Oct 29, 2024

apologies - we migrated to a new RBE backend and its been a case of juggling the worker allocations - it should be getting more stable now

@pianiststickman
Copy link
Contributor Author

No worries, thanks for all your help on this!

@pianiststickman
Copy link
Contributor Author

@mattklein123 could you re-approve and merge please? Thank you!

@mattklein123 mattklein123 merged commit 59e8fad into envoyproxy:main Oct 30, 2024
21 checks passed
pianiststickman added a commit to pianiststickman/envoy that referenced this pull request Oct 31, 2024
Merge artifact - we're checking this condition above, so this block
should never be executed. However, the logic was just tightened in
PR envoyproxy#36702 and isn't reflected in this block, so removing it.

Signed-off-by: Eugene Chan <[email protected]>
KBaichoo pushed a commit that referenced this pull request Nov 4, 2024
An extraneous if block was introduced merging #36702 into #36703. We're
checking this condition above in L282, so this block should never be
executed.

Commit Message: remove a redundant if block
Additional Description: n/a
Risk Level: low
Testing: existing CI
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a

Signed-off-by: Eugene Chan <[email protected]>
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.

3 participants