Interface ExperimentRunRepositoryFragment

All Superinterfaces:
ScopedRepository<ExperimentRun>
All Known Subinterfaces:
ExperimentRunRepository
All Known Implementing Classes:
ExperimentRunRepositoryFragmentImpl

public interface ExperimentRunRepositoryFragment extends ScopedRepository<ExperimentRun>
Entity-specific scoped finders for ExperimentRun.
  • Method Details

    • findByExperiment

      List<ExperimentRun> findByExperiment(Experiment experiment, TenantScope scope)
      Lists an experiment's runs newest first, within the scope.
    • findFirstByExperiment

      Optional<ExperimentRun> findFirstByExperiment(Experiment experiment, TenantScope scope)
      Returns the most recent run of an experiment within the scope.
    • findByIdForUpdate

      Optional<ExperimentRun> findByIdForUpdate(UUID id, TenantScope scope)
      Loads a run by id within the scope under a write lock, to serialize ingestion against completion.
    • findCompletedRunsByExperiment

      List<ExperimentRun> findCompletedRunsByExperiment(Experiment experiment, org.springframework.data.domain.Pageable pageable, TenantScope scope)
      Returns an experiment's terminal (SUCCESS or FAILED) runs newest first, within the scope.
    • findBaselineCandidates

      List<ExperimentRun> findBaselineCandidates(Experiment experiment, UUID candidateId, UUID datasetVersionId, String branch, org.springframework.data.domain.Pageable pageable, TenantScope scope)
      SUCCESS baseline candidates for automatic gate resolution, within the scope, newest first. Excludes the candidate run, requires the same dataset version (a null datasetVersionId matches ad-hoc to ad-hoc), and filters by branch when non-null.