Conversation
nklaassen
left a comment
There was a problem hiding this comment.
Looks okay but TestIntegrations/SessionRecordingModes/StrictMode/BeforeStartFailure is failing
|
Looks like audit on is flaky: |
|
@nklaassen That was flaky, I took a look and it doesn't look like my code change is related to anything in that test. |
@zmb3 It indeed does, but it looks to be related to the upload completer being late and not any of the timing-related fetching code changed in this PR as it errors on a seperate timeout that is only started after the changes made here execute. So I'd deem this out of scope. // wait for the upload of the right session to complete
timeoutC := time.After(10 * time.Second)
loop:
for {
select {
case event := <-teleport.UploadEventsC:
if event.SessionID != tracker.GetSessionID() {
t.Logf("Skipping mismatching session %v, expecting upload of %v.", event.SessionID, tracker.GetSessionID())
continue
}
break loop
case <-timeoutC:
dumpGoroutineProfile()
t.Fatalf("%s: Timeout waiting for upload of session %v to complete to %v",
tt.comment, tracker.GetSessionID(), tt.auditSessionsURI)
}
}
``` |
Sure, but the upload completer is based on the session tracker system and this PR fully cuts us over to the session tracker system, so it seems related enough to fix here unless it's a major effort. |
6ca54fb to
e34dc0e
Compare
|
@zmb3 Flake fixed. |
|
These could be unrelated, but Similar timeout for |
|
@zmb3 Those seem completely unrelated but we should probably fix them in another PR. |
8bb0d47 to
a394858
Compare
Paired with https://github.com/gravitational/teleport.e/pull/504
Removes the legacy session service since Moderated Sessions trackers are now used instead. All dependent usage on this service was phased out in v10 so I believe should be clear to do this.