Skip to content

Reduce filesystem reads in validate structure#183

Open
djjuhasz wants to merge 1 commit intomainfrom
dev/issue-169-refactor-validate-structure
Open

Reduce filesystem reads in validate structure#183
djjuhasz wants to merge 1 commit intomainfrom
dev/issue-169-refactor-validate-structure

Conversation

@djjuhasz
Copy link
Contributor

Refs #169.

  • Refactor the validate strcuture activity to reduce the number of filesystem reads to a single walk of the SIP directory hierarchy
  • Add a top level SIP directory to the unit tests to reflect the expected SFA SIP structure
  • Add a check for a completely empty SIP and report with as a single failure message

Refs #169.

- Refactor the validate strcuture activity to reduce the number of
  filesystem reads to a single walk of the SIP directory hierarchy
- Add a top level SIP directory to the unit tests to reflect the
  expected SFA SIP structure
- Add a check for a completely empty SIP and report with as a single
  failure message
@djjuhasz djjuhasz requested a review from jraddaoui March 25, 2026 19:58
@codecov
Copy link

codecov bot commented Mar 25, 2026

Codecov Report

❌ Patch coverage is 97.05882% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 61.56%. Comparing base (c7adfe7) to head (155fd59).

Files with missing lines Patch % Lines
internal/activities/validate_structure.go 97.05% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #183      +/-   ##
==========================================
+ Coverage   61.23%   61.56%   +0.33%     
==========================================
  Files          43       43              
  Lines        2515     2511       -4     
==========================================
+ Hits         1540     1546       +6     
+ Misses        830      825       -5     
+ Partials      145      140       -5     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@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.

LGTM, thanks @djjuhasz! Probably not the best time, but a nice reorg.

But this doesn't fully address #169, right? Thinking about the changelog, does it introduce any functional changes? "Added: Check for a completely empty SIP (#169)", would that be okay?

@djjuhasz
Copy link
Contributor Author

djjuhasz commented Mar 26, 2026 via email

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