MCPcopy Create free account
hub / github.com/github/gh-aw / shouldSkipAuditRun

Function shouldSkipAuditRun

pkg/cli/audit.go:505–515  ·  view source on GitHub ↗
(runID int64, runOutputDir, experimentFilter, variantFilter string)

Source from the content-addressed store, hash-verified

503}
504
505func shouldSkipAuditRun(runID int64, runOutputDir, experimentFilter, variantFilter string) bool {
506 if experimentFilter == "" {
507 return false
508 }
509 expData := extractExperimentData(runOutputDir)
510 if experimentMatchesFilter(expData, experimentFilter, variantFilter) {
511 return false
512 }
513 fmt.Fprintln(os.Stderr, console.FormatInfoMessage(formatExperimentSkipMessage(runID, experimentFilter, variantFilter)))
514 return true
515}
516
517func prepareAuditWorkflowRun(ctx context.Context, cfg auditRunConfig) (WorkflowRun, error) {
518 run, hasLocalCache, useLocalCache, err := fetchAuditRunWithCache(ctx, cfg)

Callers 2

AuditWorkflowRunFunction · 0.85

Calls 4

FormatInfoMessageFunction · 0.92
extractExperimentDataFunction · 0.85
experimentMatchesFilterFunction · 0.85

Tested by

no test coverage detected