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

Check PREMIS validity after preprocessing #1023

Merged
merged 1 commit into from
Nov 13, 2024
Merged

Check PREMIS validity after preprocessing #1023

merged 1 commit into from
Nov 13, 2024

Conversation

mcantelon
Copy link
Contributor

@mcantelon mcantelon commented Sep 13, 2024

Refs #951.

@mcantelon mcantelon marked this pull request as draft September 13, 2024 07:58
Copy link

codecov bot commented Sep 13, 2024

Codecov Report

Attention: Patch coverage is 53.84615% with 42 lines in your changes missing coverage. Please review.

Project coverage is 54.48%. Comparing base (f924713) to head (51f39fa).
Report is 12 commits behind head on main.

Files with missing lines Patch % Lines
internal/workflow/processing.go 52.11% 27 Missing and 7 partials ⚠️
cmd/enduro-a3m-worker/main.go 0.00% 4 Missing ⚠️
cmd/enduro-am-worker/main.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1023      +/-   ##
==========================================
- Coverage   54.51%   54.48%   -0.03%     
==========================================
  Files         103      104       +1     
  Lines        7510     7602      +92     
==========================================
+ Hits         4094     4142      +48     
- Misses       3166     3202      +36     
- Partials      250      258       +8     

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

@mcantelon mcantelon force-pushed the dev/premis-check branch 4 times, most recently from 51bfdd7 to 40ca237 Compare October 6, 2024 03:25
@mcantelon mcantelon force-pushed the dev/premis-check branch 3 times, most recently from e99b21a to cae4584 Compare October 22, 2024 06:57
@mcantelon mcantelon changed the title WIP: Dev/premis check Check PREMIS validity after preprocessing Oct 22, 2024
@mcantelon mcantelon force-pushed the dev/premis-check branch 11 times, most recently from 146dc51 to c51ac66 Compare October 28, 2024 18:01
@mcantelon mcantelon marked this pull request as ready for review October 28, 2024 18:02
Copy link
Collaborator

@jraddaoui jraddaoui left a comment

Choose a reason for hiding this comment

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

Thanks @mcantelon! Check my comments below.

Dockerfile Outdated Show resolved Hide resolved
internal/workflow/processing.go Outdated Show resolved Hide resolved
internal/workflow/processing.go Outdated Show resolved Hide resolved
internal/workflow/processing.go Outdated Show resolved Hide resolved
internal/workflow/processing.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@jraddaoui jraddaoui left a comment

Choose a reason for hiding this comment

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

Pretty close, thanks @mcantelon!

internal/premis/config_test.go Show resolved Hide resolved
internal/premis/config_test.go Outdated Show resolved Hide resolved
internal/workflow/processing.go Outdated Show resolved Hide resolved
internal/workflow/processing.go Outdated Show resolved Hide resolved
internal/workflow/processing_test.go Outdated Show resolved Hide resolved
internal/workflow/processing_test.go Outdated Show resolved Hide resolved
internal/workflow/processing_test.go Show resolved Hide resolved
internal/workflow/processing_test.go Outdated Show resolved Hide resolved
internal/workflow/processing_test.go Outdated Show resolved Hide resolved
internal/workflow/processing.go Show resolved Hide resolved
@mcantelon
Copy link
Contributor Author

This should be ready for another review. Thanks!

Copy link
Collaborator

@jraddaoui jraddaoui left a comment

Choose a reason for hiding this comment

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

Thanks @mcantelon! Just a minor cleanup missed from the last feedback, to not increase a lot the workflow tests length.

internal/workflow/processing_test.go Show resolved Hide resolved
internal/workflow/processing_test.go Show resolved Hide resolved
@jraddaoui
Copy link
Collaborator

And for the failing check just run make golines.

@mcantelon
Copy link
Contributor Author

Thanks again @Radda! Ready for another look!

Copy link
Collaborator

@jraddaoui jraddaoui left a comment

Choose a reason for hiding this comment

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

Thanks @mcantelon!

To save 15 more line in the tests, we could remove the default PREMIS config from them. Make sure you squash and change the commit message, maybe "before preservation" works better than "after preprocessing" now.

internal/workflow/processing_test.go Outdated Show resolved Hide resolved
internal/workflow/processing_test.go Outdated Show resolved Hide resolved
Comment on lines 945 to 947
ValidatePREMIS: premis.Config{
Enabled: false,
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same.

internal/workflow/processing_test.go Outdated Show resolved Hide resolved
internal/workflow/processing_test.go Outdated Show resolved Hide resolved
@mcantelon
Copy link
Contributor Author

Thanks @jraddaoui !

@mcantelon mcantelon merged commit 6798c16 into main Nov 13, 2024
12 checks passed
@mcantelon mcantelon deleted the dev/premis-check branch November 13, 2024 18:00
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