Skip to content

fix: context being cancelled prematurely and adjusting flux api version for objects#1830

Merged
fabianburth merged 12 commits into
open-component-model:mainfrom
Skarlso:fix-flaky-controller-test
Feb 24, 2026
Merged

fix: context being cancelled prematurely and adjusting flux api version for objects#1830
fabianburth merged 12 commits into
open-component-model:mainfrom
Skarlso:fix-flaky-controller-test

Conversation

@Skarlso

@Skarlso Skarlso commented Feb 24, 2026

Copy link
Copy Markdown
Contributor

What this PR does / why we need it

There have been a couple test failures in unit tests now https://github.com/open-component-model/open-component-model/actions/runs/22314682631/job/64556121953.

It looks like the context is cancelled before things have the chance to shut down properly.

This prevents that from happening. I think this is a fix, but it might not be 100% true.

It's two phase problem. First, the environment was tearing down too fast. Second, set a graceful shutdown deadline for the manager so it doesn't just hang around for too long after receiving a shutdown.

Which issue(s) this PR fixes

Testing

How to test the changes
Verification
  • I have tested the changes locally by running ocm

On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
@Skarlso Skarlso requested a review from a team as a code owner February 24, 2026 08:34
@Skarlso

Skarlso commented Feb 24, 2026

Copy link
Copy Markdown
Contributor Author

Well, this didn't work. I'll look further.

@Skarlso Skarlso marked this pull request as draft February 24, 2026 11:12
Skarlso and others added 2 commits February 24, 2026 12:18
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
@Skarlso

Skarlso commented Feb 24, 2026

Copy link
Copy Markdown
Contributor Author

Looks like this is okay now. 🤞

@Skarlso Skarlso marked this pull request as ready for review February 24, 2026 12:08
Comment thread kubernetes/controller/internal/controller/component/suite_test.go Outdated
Comment thread kubernetes/controller/internal/controller/component/suite_test.go Outdated
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
…omponent-model into fix-flaky-controller-test
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
@Skarlso

Skarlso commented Feb 24, 2026

Copy link
Copy Markdown
Contributor Author

Oh, this time it's the e2e test. :D

On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
@github-actions github-actions Bot added the size/m Medium label Feb 24, 2026
@Skarlso

Skarlso commented Feb 24, 2026

Copy link
Copy Markdown
Contributor Author

Damn it. This is passing locally 😭

On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
@Skarlso

Skarlso commented Feb 24, 2026

Copy link
Copy Markdown
Contributor Author

Found it, I believe. :)

Skarlso and others added 2 commits February 24, 2026 17:33
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
@Skarlso Skarlso changed the title fix: context being cancelled prematurely fix: context being cancelled prematurely and adjusting flux api version for objects Feb 24, 2026
@frewilhelm

Copy link
Copy Markdown
Contributor

PR to upgrade docs is also ready open-component-model/ocm-website#728

morri-son pushed a commit to open-component-model/ocm-website that referenced this pull request Feb 24, 2026
Related to
open-component-model/open-component-model#1830

(Flux promoted `source.toolkit.fluxcd.io/v1beta2` to
`source.toolkit.fluxcd.io/v1`)

Signed-off-by: Frederic Wilhelm <frederic.wilhelm@sap.com>
ocmbot Bot pushed a commit to open-component-model/ocm-website that referenced this pull request Feb 24, 2026
Related to
open-component-model/open-component-model#1830

(Flux promoted `source.toolkit.fluxcd.io/v1beta2` to
`source.toolkit.fluxcd.io/v1`)

Signed-off-by: Frederic Wilhelm <frederic.wilhelm@sap.com> cc4b69a
@fabianburth fabianburth merged commit 3b01058 into open-component-model:main Feb 24, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants