Add prior_stages: to release config

Include those paths in the inheritance graph.

Bug: 348495189
Test: manual
Merged-In: I993af3a34ab7dd9a3346c6ffccb17e7abff23545
Change-Id: I993af3a34ab7dd9a3346c6ffccb17e7abff23545
This commit is contained in:
LaMont Jones
2024-05-30 13:03:59 -07:00
parent 6e1a3815d8
commit 5195b82f42
7 changed files with 128 additions and 65 deletions

View File

@@ -22,6 +22,7 @@ import (
"os/exec"
"path/filepath"
"regexp"
"slices"
"strings"
"google.golang.org/protobuf/encoding/prototext"
@@ -159,6 +160,15 @@ func warnf(format string, args ...any) (n int, err error) {
return 0, nil
}
func SortedMapKeys(inputMap map[string]bool) []string {
ret := []string{}
for k := range inputMap {
ret = append(ret, k)
}
slices.Sort(ret)
return ret
}
func validContainer(container string) bool {
return containerRegexp.MatchString(container)
}