@@ -555,34 +555,43 @@ function environmentTitle(build: BuildDetail) {
555555 return [ info . user , info . machine ] . filter ( Boolean ) . join ( ' on ' ) || build . environment
556556}
557557
558- /** A large suite's matched groups: carried forward from the build they're the same as , listed on demand. */
558+ /** A large suite's groups: how many didn't change since the build they match , listed on demand. */
559559function GroupsNotice ( { groups } : { groups : BuildGroups } ) {
560560 const { org, project } = route . useParams ( )
561561 const same = groups . same_as_build
562+ const total = groups . unchanged_groups + groups . changed_groups . length
563+ const since = same ? (
564+ < Link to = "/$org/$project/builds/$number" params = { { org, project, number : same } } >
565+ #{ same }
566+ </ Link >
567+ ) : (
568+ 'the baseline'
569+ )
562570 return (
563571 < div className = "notice groups-notice" >
564572 < p >
565- < strong > { groups . manifest_matched ? 'Nothing changed:' : `${ n ( groups . unchanged_groups ) } ${ groups . unchanged_groups === 1 ? 'group' : 'groups' } unchanged:` } </ strong > { ' ' }
566- { n ( groups . unchanged_snapshots ) } snapshots { groups . manifest_matched ? 'are' : 'in them are' } the same as{ ' ' }
567- { same ? (
568- < Link to = "/$org/$project/builds/$number" params = { { org, project, number : same } } >
569- #{ same }
570- </ Link >
573+ { groups . manifest_matched ? (
574+ < > Nothing changed since { since } .</ >
571575 ) : (
572- 'their baselines'
573- ) }
574- , checked by group and carried forward.
575- { groups . changed_groups . length > 0 &&
576- ` ${ n ( groups . changed_groups . length ) } ${ groups . changed_groups . length === 1 ? 'group changed and was' : 'groups changed and were' } compared snapshot by snapshot.` }
576+ < >
577+ { n ( groups . unchanged_groups ) } of { n ( total ) } groups unchanged since { since } .
578+ </ >
579+ ) } { ' ' }
580+ < Help label = "How large runs are compared" >
581+ A run of 500 or more snapshots is compared group by group first. A group that matches its baseline isn’t
582+ sent again, and costs 1 credit.
583+ </ Help >
577584 </ p >
578- < details >
579- < summary > Unchanged groups</ summary >
580- < ul className = "groups-list mono" >
581- { groups . unchanged_group_keys . map ( ( k ) => (
582- < li key = { k } > { k || '(top level)' } </ li >
583- ) ) }
584- </ ul >
585- </ details >
585+ { ! groups . manifest_matched && (
586+ < details >
587+ < summary > Unchanged groups</ summary >
588+ < ul className = "groups-list mono" >
589+ { groups . unchanged_group_keys . map ( ( k ) => (
590+ < li key = { k } > { k || '(top level)' } </ li >
591+ ) ) }
592+ </ ul >
593+ </ details >
594+ ) }
586595 </ div >
587596 )
588597}
0 commit comments