public ModelBuildAttempt AddAttempt(int attempt, ModelBuild build) { var modelAttempt = new ModelBuildAttempt() { Attempt = attempt, ModelBuild = build }; Context.ModelBuildAttempts.Add(modelAttempt); return(modelAttempt); }
public ModelTrackingIssueResult AddTrackingResult( ModelTrackingIssue trackingIssue, ModelBuildAttempt attempt, bool isPresent = true) { var result = new ModelTrackingIssueResult() { ModelTrackingIssue = trackingIssue, ModelBuildAttempt = attempt, IsPresent = isPresent, }; Context.ModelTrackingIssueResults.Add(result); return(result); }
public ModelTimelineIssue AddTimelineIssue(string data, ModelBuildAttempt attempt) { var parts = data.Split("|"); var issue = new ModelTimelineIssue() { Attempt = attempt.Attempt, JobName = parts[0], Message = parts[1], RecordName = parts.Length > 2 ? parts[2] : null, ModelBuildAttempt = attempt, ModelBuild = attempt.ModelBuild, }; Context.ModelTimelineIssues.Add(issue); return(issue); }
public ModelTrackingIssueMatch AddTrackingMatch( ModelTrackingIssue trackingIssue, ModelBuildAttempt attempt, ModelTimelineIssue?timelineIssue = null, ModelTestResult?testResult = null, string?helixLogUri = null) { var match = new ModelTrackingIssueMatch() { ModelTrackingIssue = trackingIssue, ModelBuildAttempt = attempt, ModelTimelineIssue = timelineIssue, ModelTestResult = testResult, HelixLogUri = helixLogUri, }; Context.ModelTrackingIssueMatches.Add(match); return(match); }