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

Add failed SIPs/PIPs buckets #930

Merged
merged 1 commit into from
Oct 21, 2024
Merged

Conversation

jraddaoui
Copy link
Collaborator

@jraddaoui jraddaoui commented Apr 24, 2024

If there is an error before the SIP is sent to preservation, copy the
downloaded SIP file to a failed SIPs bucket. If there is an error on
preservation, send a copy of the PIP to a failed PIPs bucket, with all
the transformations made before it was sent to preservation.

  • Add failed buckets configuration.
  • Use temporal-activities/bucketupload registered with two different
    names for each failed bucket.
  • Modify Kubernetes jobs to set up and re-create buckets.

Refs #929.

@jraddaoui jraddaoui marked this pull request as draft April 24, 2024 00:53
@jraddaoui jraddaoui force-pushed the dev/issue-929-failed-buckets branch from c8295ff to 2326b10 Compare April 24, 2024 19:27
Copy link

codecov bot commented Apr 24, 2024

Codecov Report

Attention: Patch coverage is 40.86022% with 55 lines in your changes missing coverage. Please review.

Project coverage is 54.62%. Comparing base (29f7053) to head (040ab12).

Files with missing lines Patch % Lines
cmd/enduro-a3m-worker/main.go 0.00% 23 Missing ⚠️
cmd/enduro-am-worker/main.go 0.00% 23 Missing ⚠️
internal/workflow/processing.go 80.85% 6 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #930      +/-   ##
==========================================
- Coverage   55.52%   54.62%   -0.90%     
==========================================
  Files         103      103              
  Lines        6039     7506    +1467     
==========================================
+ Hits         3353     4100     +747     
- Misses       2433     3158     +725     
+ Partials      253      248       -5     

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

@jraddaoui jraddaoui force-pushed the dev/issue-929-failed-buckets branch 2 times, most recently from fd19cff to d7e12ce Compare April 25, 2024 06:21
@jraddaoui jraddaoui force-pushed the dev/issue-929-failed-buckets branch 3 times, most recently from 2374d29 to d6dc096 Compare May 17, 2024 12:39
@jraddaoui jraddaoui force-pushed the dev/issue-929-failed-buckets branch 2 times, most recently from 07e2db8 to 0ea4885 Compare May 31, 2024 14:39
@jraddaoui jraddaoui changed the title WIP: Add failed transfers/SIPs buckets WIP: Add failed SIPs/PIPs buckets May 31, 2024
@jraddaoui jraddaoui force-pushed the dev/issue-929-failed-buckets branch from 0ea4885 to 5aa84f6 Compare May 31, 2024 17:02
@jraddaoui jraddaoui force-pushed the dev/issue-929-failed-buckets branch 2 times, most recently from 74ef2d2 to afeef67 Compare June 27, 2024 17:21
@jraddaoui jraddaoui force-pushed the dev/issue-929-failed-buckets branch 2 times, most recently from f427963 to cf5fc14 Compare July 17, 2024 16:48
@jraddaoui jraddaoui force-pushed the dev/issue-929-failed-buckets branch 2 times, most recently from 5d1cd0a to 5ef0ba9 Compare July 23, 2024 18:23
@jraddaoui jraddaoui force-pushed the dev/issue-929-failed-buckets branch 2 times, most recently from 6294306 to e53ab9b Compare August 9, 2024 07:08
@jraddaoui jraddaoui force-pushed the dev/issue-929-failed-buckets branch 3 times, most recently from 41e8e38 to b4ffc28 Compare August 28, 2024 15:30
@jraddaoui jraddaoui force-pushed the dev/issue-929-failed-buckets branch from b4ffc28 to fda1bee Compare September 6, 2024 05:45
@jraddaoui jraddaoui force-pushed the dev/issue-929-failed-buckets branch 2 times, most recently from 628474b to 713caa2 Compare October 3, 2024 16:26
@jraddaoui jraddaoui force-pushed the dev/issue-929-failed-buckets branch 2 times, most recently from a86f330 to 6627229 Compare October 17, 2024 18:54
@jraddaoui jraddaoui changed the title WIP: Add failed SIPs/PIPs buckets Add failed SIPs/PIPs buckets Oct 17, 2024
@jraddaoui jraddaoui force-pushed the dev/issue-929-failed-buckets branch from 6627229 to 43b48df Compare October 17, 2024 19:04
@jraddaoui jraddaoui marked this pull request as ready for review October 17, 2024 19:05
@jraddaoui jraddaoui requested review from djjuhasz and sevein and removed request for djjuhasz October 17, 2024 19:05
@jraddaoui jraddaoui force-pushed the dev/issue-929-failed-buckets branch from 43b48df to dd678d1 Compare October 17, 2024 19:11
Copy link
Collaborator

@djjuhasz djjuhasz left a comment

Choose a reason for hiding this comment

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

Thanks @jraddaoui, this looks good to me and I don't see any blockers. I did make a few comments about how we might want to manage tinfo going forward. I also had a couple of questions about how we manage SIPs in the "sips" bucket.

@jraddaoui jraddaoui force-pushed the dev/issue-929-failed-buckets branch from 040ab12 to 668d564 Compare October 18, 2024 00:42
@jraddaoui jraddaoui requested a review from djjuhasz October 18, 2024 01:05
Copy link
Collaborator

@djjuhasz djjuhasz left a comment

Choose a reason for hiding this comment

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

Thanks @jraddaoui, LGTM. 👍

If there is an error before the SIP is sent to preservation, copy the
downloaded SIP file to a failed SIPs bucket. If there is an error on
preservation, send a copy of the PIP to a failed PIPs bucket, with all
the transformations made before it was sent to preservation.

- Add failed buckets configuration.
- Use temporal-activities/bucketupload registered with two different
  names for each failed bucket.
- Modify Kubernetes jobs to set up and re-create buckets.

[skip-codecov]
@jraddaoui jraddaoui force-pushed the dev/issue-929-failed-buckets branch from bb302e0 to f995a8f Compare October 21, 2024 15:11
@jraddaoui jraddaoui merged commit f995a8f into main Oct 21, 2024
12 checks passed
@jraddaoui jraddaoui deleted the dev/issue-929-failed-buckets branch October 21, 2024 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants