Skip to content

Conversation

@KarlG-nbis
Copy link
Contributor

@KarlG-nbis KarlG-nbis commented Oct 28, 2025

Related issue(s) and PR(s)

This PR closes #990.

Description

Implementation of the sda-validator-orchestrator which is responsible for orchestrating the validation of files according to the Validator API specification

How to test

  • Run unit tests

@KarlG-nbis KarlG-nbis self-assigned this Oct 28, 2025
@KarlG-nbis KarlG-nbis force-pushed the feature/validator-orchestrator branch from dfbe13f to f79cb50 Compare October 28, 2025 14:51
@codecov
Copy link

codecov bot commented Oct 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 43.87%. Comparing base (d350e32) to head (1838171).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2057      +/-   ##
==========================================
- Coverage   44.36%   43.87%   -0.50%     
==========================================
  Files          49       48       -1     
  Lines        7001     6881     -120     
==========================================
- Hits         3106     3019      -87     
+ Misses       3509     3487      -22     
+ Partials      386      375      -11     
Flag Coverage Δ
unittests 43.87% <ø> (-0.50%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@KarlG-nbis KarlG-nbis force-pushed the feature/validator-orchestrator branch 6 times, most recently from 3a4c6fe to c4183a2 Compare November 3, 2025 08:50
@KarlG-nbis KarlG-nbis marked this pull request as ready for review November 3, 2025 08:50
@KarlG-nbis KarlG-nbis requested a review from a team as a code owner November 3, 2025 08:50
Copy link
Collaborator

@jbygdell jbygdell left a comment

Choose a reason for hiding this comment

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

There are so many thing here that goes against my normal coding principles so i don't know what to do.

More specifically:

  • the use global/shared variables
  • naked functions (no return values)
  • functions that return functions or function wrapped values

Which is maybe why the use of the init() function never has made much sense to me. I prefer implicit calls for that kind of things as it makes for fewer gotcha moments.

Outside of that it looks like a nice proof of concept.

@KarlG-nbis KarlG-nbis force-pushed the feature/validator-orchestrator branch from 24794d1 to 2fb253d Compare November 5, 2025 08:09
jbygdell
jbygdell previously approved these changes Nov 5, 2025
zeidlitz
zeidlitz previously approved these changes Nov 5, 2025
@KarlG-nbis KarlG-nbis dismissed stale reviews from zeidlitz and jbygdell via 2933259 November 10, 2025 08:05
@KarlG-nbis KarlG-nbis force-pushed the feature/validator-orchestrator branch from a8044dc to 4854f60 Compare November 14, 2025 08:40
…/rbac yet), an apptainer example and kube files
… files, and override help func with func that also prints env varible name
… for unit testing, add optional config for setting the work dir of validation of files
…, fix some spacing items, fix typos, add check if file paths requested was found to belong to user
…not require securityContext.privileged, needing to use apptainer exec, instead of apptainer run
…issing file result, and readValidationInformation no file duplicates
…il response from database.ReadValidationInformation
… of params in db functions, and func return in api, also refactor the workers some to start on Init and add MonitorWorkers() to watch for worker errors
…ker image built, example in .kube folder, and apptainer conf changes
…elp message, set log format to json, fix gin logger
…t close broker connection, and it will close the channel
…broker.Monitor and also listen to channel close events
…handling in job preparation workers on error that should not be retried, update 01_create_table_file_validation_job.sql add IF NOT EXISTS, update validators init to check if file exists before exec
… scaning, add user_id validation in admin/validate api, fix file_validation_job.finished_at column type
@KarlG-nbis KarlG-nbis force-pushed the feature/validator-orchestrator branch from 4854f60 to 1838171 Compare November 18, 2025 08:07
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.

4 participants