Skip to content

Conversation

@ssjunnebo
Copy link
Contributor

Sync metadata to nas-ns when sequencing is done. Specify what metadata should be synced in the metadata_rsync_options part of the config file.

@ssjunnebo ssjunnebo added the no validation validation not needed label Feb 9, 2026
@ssjunnebo ssjunnebo requested review from aanil and alneberg February 9, 2026 15:03
@codecov-commenter
Copy link

codecov-commenter commented Feb 9, 2026

Codecov Report

❌ Patch coverage is 91.04478% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.87%. Comparing base (13e553a) to head (22521e4).
⚠️ Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
dataflow_transfer/run_classes/generic_runs.py 81.81% 5 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #14      +/-   ##
==========================================
+ Coverage   87.86%   87.87%   +0.01%     
==========================================
  Files          10       10              
  Lines         519      569      +50     
  Branches       30       33       +3     
==========================================
+ Hits          456      500      +44     
- Misses         60       65       +5     
- Partials        3        4       +1     

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

"""Check if the metadata rsync was successful by reading the exit code file."""
return fs.check_exit_status(self.metadata_rsync_exitcode_file)

def sync_metadata(self):
Copy link
Member

Choose a reason for hiding this comment

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

Am I missing something or Is this not called anywhere yet?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's called in dataflow_transfer.py, by process_run

Copy link
Member

Choose a reason for hiding this comment

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

I wonder how I missed that. But anyhow, so the sync is triggered once the sequencing is finished but after that we don't really ensure that it finished properly right? Not sure how to change it, but we have had occassional errors on the rsync to the nas-ns. But maybe I misinterpret and its actually attempted again if failed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, if the exit code of the rsync is not 0 it will retry. The exception is if the first case, if run.final_sync_successful and run.has_status("transferred_to_hpc") is true, then it wouldn't get to the metadata sync step. Maybe I can add another check in that case.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've added some additional logic to process_run so now it should be synced even if the sync to miarka is finished

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no validation validation not needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants