Skip to content

Bookmark events in terminating VW#3900

Merged
kcp-ci-bot merged 2 commits intokcp-dev:mainfrom
ntnn:terminatingvw-bookmark
Mar 13, 2026
Merged

Bookmark events in terminating VW#3900
kcp-ci-bot merged 2 commits intokcp-dev:mainfrom
ntnn:terminatingvw-bookmark

Conversation

@ntnn
Copy link
Copy Markdown
Member

@ntnn ntnn commented Mar 12, 2026

Summary

ref: platform-mesh/security-operator#402

When watches are set up on the terminating VW with bookmarks the client logs an error with awaiting required bookmark event for initial events stream, no events received for 10.00949897s.
This was because the filter in the storage wrapper only allowed items with a deletion timestamp, which bookmark events don't have.

What Type of PR Is This?

/kind bug

Related Issue(s)

Fixes #

Release Notes

NONE

ntnn added 2 commits March 12, 2026 23:03
Signed-off-by: Nelo-T. Wallus <red.brush9525@fastmail.com>
Signed-off-by: Nelo-T. Wallus <n.wallus@sap.com>
Signed-off-by: Nelo-T. Wallus <red.brush9525@fastmail.com>
Signed-off-by: Nelo-T. Wallus <n.wallus@sap.com>
@kcp-ci-bot kcp-ci-bot added release-note-none Denotes a PR that doesn't merit a release note. kind/bug Categorizes issue or PR as related to a bug. dco-signoff: yes Indicates the PR's author has signed the DCO. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 12, 2026
@ntnn ntnn self-assigned this Mar 12, 2026
@gman0
Copy link
Copy Markdown
Contributor

gman0 commented Mar 13, 2026

/lgtm

@kcp-ci-bot kcp-ci-bot added the lgtm Indicates that a PR is ready to be merged. label Mar 13, 2026
@kcp-ci-bot
Copy link
Copy Markdown
Contributor

LGTM label has been added.

DetailsGit tree hash: de230aa6c7aab43d94dc7fd8a00f228dacdeb518

@ntnn ntnn added this to tbd Mar 13, 2026
@github-project-automation github-project-automation Bot moved this to Backlog in tbd Mar 13, 2026
@ntnn ntnn moved this from Backlog to In review in tbd Mar 13, 2026
Copy link
Copy Markdown
Contributor

@mjudeikis mjudeikis left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@kcp-ci-bot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mjudeikis

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kcp-ci-bot kcp-ci-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 13, 2026
@kcp-ci-bot kcp-ci-bot merged commit affd3ce into kcp-dev:main Mar 13, 2026
14 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in tbd Mar 13, 2026
Copy link
Copy Markdown
Member

@SimonTheLeg SimonTheLeg left a comment

Choose a reason for hiding this comment

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

okay since it merged 2 minutes before I could send it, then let's just leave it as a question here @ntnn

@@ -689,6 +686,91 @@ func TestTerminatingWorkspacesVirtualWorkspaceWatch(t *testing.T) {
}
}

func TestTerminatingWorkspacesVirtualWorkspaceWatchBookmark(t *testing.T) {
Copy link
Copy Markdown
Member

@SimonTheLeg SimonTheLeg Mar 13, 2026

Choose a reason for hiding this comment

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

Instead of writing another test, couldn't we just add AllowWatchBookmarks: true, to the existing test and then check for bookmark events as well? My current understanding is that these events get auto-created for clients which have specified the bookmark capability - or putting it another way, from client side there is no way to forcefully trigger these events, right?

https://github.com/ntnn/kcp/blob/d6e285fbc3b6776d1049c253d75f35ea0c303d2f/test/e2e/virtual/terminatingworkspaces/virtualworkspace_test.go#L620

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Correct; I was thinking about that last night as well but I think it makes sense to have a dedicated test for it - on one hand because it's quite important and on the other if we make another VW and look at other tests we have a focus on also specifically checking bookmark events

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm starting to lean towards smaller tests. CI is already running a lot, and having smaller tests per feature makes it easier to identify flakes.

@ntnn ntnn deleted the terminatingvw-bookmark branch March 13, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has signed the DCO. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants