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

feat(HACBS-2422): add finalizer to Release PRs #236

Merged
merged 1 commit into from
Aug 31, 2023
Merged

Conversation

davidmogar
Copy link
Collaborator

This change adds a finalizer to Release PipelineRuns to avoid their deletion by external entities until the Release service has finished processing them.

Notice that tests relying on finalizeRelease don't check if the PipelineRun was successfully deleted anymore. The removal of the finalizer is not instant so to test that, we would have to use Eventually blocks, which we know are flaky.

tekton/pipeline_run.go Outdated Show resolved Hide resolved
johnbieren
johnbieren previously approved these changes Aug 16, 2023
@openshift-ci openshift-ci bot added the lgtm label Aug 16, 2023
@mmalina mmalina self-requested a review August 17, 2023 07:34
mmalina
mmalina previously approved these changes Aug 17, 2023
johnbieren
johnbieren previously approved these changes Aug 17, 2023
@openshift-ci openshift-ci bot added the lgtm label Aug 17, 2023
@davidmogar
Copy link
Collaborator Author

/retest

@davidmogar
Copy link
Collaborator Author

/retest

1 similar comment
@davidmogar
Copy link
Collaborator Author

/retest

controllers/release/adapter_test.go Outdated Show resolved Hide resolved
controllers/release/adapter.go Outdated Show resolved Hide resolved
controllers/release/adapter.go Outdated Show resolved Hide resolved
controllers/release/adapter_test.go Show resolved Hide resolved
controllers/release/adapter_test.go Show resolved Hide resolved
@davidmogar davidmogar force-pushed the hacbs2422 branch 2 times, most recently from a6eb27f to 080bfab Compare August 31, 2023 13:05
@codecov
Copy link

codecov bot commented Aug 31, 2023

Codecov Report

Patch coverage: 67.85% and project coverage change: -0.40% ⚠️

Comparison is base (3ba7874) 85.45% compared to head (69ea4a0) 85.05%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #236      +/-   ##
==========================================
- Coverage   85.45%   85.05%   -0.40%     
==========================================
  Files          23       23              
  Lines        1437     1459      +22     
==========================================
+ Hits         1228     1241      +13     
- Misses        150      156       +6     
- Partials       59       62       +3     
Files Changed Coverage Δ
controllers/release/adapter.go 84.54% <66.66%> (-1.79%) ⬇️
tekton/pipeline_run.go 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

This change adds a finalizer to Release PipelineRuns to avoid their
deletion by external entities until the Release service has finished
processing them.

Signed-off-by: David Moreno García <[email protected]>
@openshift-ci openshift-ci bot added the lgtm label Aug 31, 2023
@johnbieren johnbieren merged commit 1488f91 into main Aug 31, 2023
6 checks passed
@johnbieren johnbieren deleted the hacbs2422 branch August 31, 2023 15:02
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.

3 participants