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

Copy premis.xsd into enduro image #1064

Merged
merged 1 commit into from
Nov 13, 2024
Merged

Conversation

jraddaoui
Copy link
Collaborator

This file should only be needed by the AM and a3m workers to do PREMIS validation when it's enabled. However, config validation is the same for all commands and, when PREMIS validation is enabled, it checks the existence of the XSD file in the filesystem. We tried to disable PREMIS validation only in the enduro container, but that config value is read in the workflow context, disabling the scheduling of the activity from the workflow worker.

Refs #951.

@jraddaoui jraddaoui self-assigned this Nov 13, 2024
COPY --from=build-enduro --link /src/enduro.toml /home/enduro/.config/enduro.toml
COPY --link --from=build-enduro /out/enduro /home/enduro/bin/enduro
COPY --link --from=build-enduro /src/enduro.toml /home/enduro/.config/enduro.toml
COPY --link hack/xsd/premis.xsd /home/enduro/premis.xsd
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This line is the main diff, all others are just adding missing --link to the COPY layers and reorganizing them a little.

Copy link

codecov bot commented Nov 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.66%. Comparing base (a8191df) to head (72ffd6d).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1064      +/-   ##
==========================================
- Coverage   54.74%   54.66%   -0.08%     
==========================================
  Files         104      104              
  Lines        7632     7632              
==========================================
- Hits         4178     4172       -6     
- Misses       3198     3202       +4     
- Partials      256      258       +2     

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

@jraddaoui
Copy link
Collaborator Author

We should try to find a better solution to how we deal with the single configuration for multiple commands in distributed environments, but this makes PREMIS validation work for now in the dev environment. Other deployments are running everything together, so it shouldn't be an issue there.

Copy link
Contributor

@mcantelon mcantelon left a comment

Choose a reason for hiding this comment

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

LGTM!

This file should only be needed by the AM and a3m workers to do PREMIS
validation when it's enabled. However, config validation is the same for
all commands and, when PREMIS validation is enabled, it checks the
existence of the XSD file in the filesystem. We tried to disable PREMIS
validation only in the enduro container, but that config value is read
in the workflow context, disabling the scheduling of the activity from
the workflow worker.
@jraddaoui jraddaoui merged commit 72ffd6d into main Nov 13, 2024
11 of 12 checks passed
@jraddaoui jraddaoui deleted the dev/issue-951-enable-premis branch November 13, 2024 21:33
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