Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: resolve flake test on manager#17702

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mafredri merged 8 commits intomainfrominternal-544
May 8, 2025
Merged

fix: resolve flake test on manager#17702

mafredri merged 8 commits intomainfrominternal-544
May 8, 2025

Conversation

defelmnq
Copy link
Contributor

@defelmnqdefelmnq commentedMay 7, 2025
edited by mafredri
Loading

@defelmnqdefelmnq requested a review frommafredriMay 7, 2025 13:57
@defelmnqdefelmnq self-assigned thisMay 7, 2025
Copy link
Member

@mafredrimafredri left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏻

@@ -141,6 +141,7 @@ func (m *Manager) Run(ctx context.Context) {
m.log.Info(ctx, "started")

m.runOnce.Do(func() {
m.notifier = newNotifier(ctx, m.cfg, uuid.New(), m.log, m.store, m.handlers, m.helpers, m.metrics, m.clock)
Copy link
Member

Choose a reason for hiding this comment

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

Let's add a comment still why we're initializing this here so it doesn't move by accident 👍🏻

defelmnq reacted with thumbs up emoji
Copy link
Member

Choose a reason for hiding this comment

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

I think@defelmnq is on PTO,@mafredri would you mind adding the comment so we can merge it?

PS. not sure what happened that 9 CI jobs failed here...

Copy link
Member

@mafredrimafredriMay 8, 2025
edited
Loading

Choose a reason for hiding this comment

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

I think the Run and Close of the manager is still racy, probably needs a mutex to avoid Run after Close, etc.

@mafredrimafredri requested a review frommtojekMay 8, 2025 12:48
// SETUP

// nolint:gocritic // Unit test.
ctx := dbauthz.AsSystemRestricted(testutil.Context(t, testutil.WaitSuperLong))
Copy link
Member

Choose a reason for hiding this comment

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

nit:testutil.WaitSuperLong - can we shorten the period?

Copy link
Member

Choose a reason for hiding this comment

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

For sure, this was copy 🍝

@mafredrimafredri merged commit1bb96b8 intomainMay 8, 2025
29 checks passed
@mafredrimafredri deleted the internal-544 branchMay 8, 2025 13:49
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsMay 8, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@mafredrimafredrimafredri approved these changes

@mtojekmtojekmtojek approved these changes

Assignees

@defelmnqdefelmnq

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

flake: Data race incoderd/notifications.(*Manager) (loop/Stop assign/read of m.notifier)
3 participants
@defelmnq@mafredri@mtojek

[8]ページ先頭

©2009-2025 Movatter.jp