.
This commit is contained in:
parent
fec4bb7958
commit
d482edcb6c
@ -207,7 +207,16 @@ func verifyProjectState(git *common.GitHandler, orgName string, config *common.A
|
|||||||
}
|
}
|
||||||
|
|
||||||
isGitUpdated := false
|
isGitUpdated := false
|
||||||
|
next_package:
|
||||||
for filename, commitId := range sub {
|
for filename, commitId := range sub {
|
||||||
|
// ignore project gits
|
||||||
|
for _, c := range configs {
|
||||||
|
if c.GitProjectName == filename {
|
||||||
|
log.Println(" prjgit as package? ignoring project git:", filename)
|
||||||
|
continue next_package
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
log.Println(" verifying package:", filename, commitId, config.Branch)
|
log.Println(" verifying package:", filename, commitId, config.Branch)
|
||||||
commits, err := gitea.GetRecentCommits(orgName, filename, config.Branch, 10)
|
commits, err := gitea.GetRecentCommits(orgName, filename, config.Branch, 10)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -264,7 +273,7 @@ func verifyProjectState(git *common.GitHandler, orgName string, config *common.A
|
|||||||
log.Println(" nRepos:", len(repos))
|
log.Println(" nRepos:", len(repos))
|
||||||
}
|
}
|
||||||
|
|
||||||
next_repo:
|
next_repo:
|
||||||
for _, r := range repos {
|
for _, r := range repos {
|
||||||
if debugMode {
|
if debugMode {
|
||||||
log.Println(" -- checking", r.Name)
|
log.Println(" -- checking", r.Name)
|
||||||
@ -351,7 +360,9 @@ func consistencyCheckProcess() {
|
|||||||
|
|
||||||
for org, configs := range configuredRepos {
|
for org, configs := range configuredRepos {
|
||||||
for _, config := range configs {
|
for _, config := range configs {
|
||||||
time.Sleep(checkInterval - checkInterval/2 + time.Duration(rand.Int63n(int64(checkInterval))))
|
sleepInterval := checkInterval - checkInterval/2 + time.Duration(rand.Int63n(int64(checkInterval)))
|
||||||
|
log.Println(" - sleep interval", sleepInterval)
|
||||||
|
time.Sleep(sleepInterval)
|
||||||
|
|
||||||
log.Printf(" ++ starting verification, org: `%s`\n", org)
|
log.Printf(" ++ starting verification, org: `%s`\n", org)
|
||||||
git, err := common.CreateGitHandler(GitAuthor, GitEmail, AppName)
|
git, err := common.CreateGitHandler(GitAuthor, GitEmail, AppName)
|
||||||
|
Loading…
Reference in New Issue
Block a user