@@ -21,18 +21,18 @@ var watchedDependencies = []string{
2121}
2222
2323// getTargetBranch returns the upstream branch to check dependencies against.
24- // It reads the DEPS_UPSTREAM_BRANCH environment variable, defaulting to "main ".
24+ // It reads the DEPS_UPSTREAM_BRANCH environment variable, defaulting to "release-4.20 ".
2525func getTargetBranch () string {
2626 branch := os .Getenv ("DEPS_UPSTREAM_BRANCH" )
2727 if branch == "" {
28- branch = "main "
28+ branch = "release-4.20 "
2929 }
3030 return branch
3131}
3232
3333// TestWatchedDependenciesAreUpToDate validates that all watched dependencies
3434// are up-to-date with the latest versions available from the target upstream branch.
35- // The target branch is controlled by the DEPS_UPSTREAM_BRANCH environment variable (default: "main ").
35+ // The target branch is controlled by the DEPS_UPSTREAM_BRANCH environment variable (default: "release-4.20 ").
3636// This helps prevent scheme-related issues and compatibility problems.
3737func TestWatchedDependenciesAreUpToDate (t * testing.T ) {
3838 targetBranch := getTargetBranch ()
@@ -61,28 +61,28 @@ func TestWatchedDependenciesAreUpToDate(t *testing.T) {
6161
6262 t .Logf ("Latest available %s version: %s" , module , latestVersion )
6363
64- // Compare versions directly
64+ // Compare versions - warn if outdated but do not fail the test
6565 if currentVersion != latestVersion {
6666 allDependenciesUpToDate = false
6767
68- errorMsg := fmt .Sprintf ("Dependency %s is not up-to-date with upstream %s branch.\n " +
68+ warnMsg := fmt .Sprintf ("WARNING: Dependency %s is not up-to-date with upstream %s branch.\n " +
6969 "Current version: %s\n " +
7070 "Latest available: %s\n " +
7171 "Consider running: go get %s@%s && go mod tidy && go mod vendor" ,
7272 module , targetBranch , currentVersion , latestVersion , module , targetBranch )
73- failureMessages = append (failureMessages , errorMsg )
74- t .Error ( errorMsg )
73+ failureMessages = append (failureMessages , warnMsg )
74+ t .Log ( warnMsg )
7575 } else {
76- t .Logf ("✅ Dependency %s is up-to-date with upstream %s branch" , module , targetBranch )
76+ t .Logf ("Dependency %s is up-to-date with upstream %s branch" , module , targetBranch )
7777 }
7878 })
7979 }
8080
81- // If any dependency failed, fail the main test with a summary
81+ // Log a summary warning if any dependency is outdated, but do not fail the test
8282 if ! allDependenciesUpToDate {
83- t .Errorf ( " One or more dependencies are not up-to-date:\n %s" , strings .Join (failureMessages , "\n \n " ))
83+ t .Logf ( "WARNING: One or more dependencies are not up-to-date:\n %s" , strings .Join (failureMessages , "\n \n " ))
8484 } else {
85- t .Logf ("✅ All %d watched dependencies are up-to-date" , len (watchedDependencies ))
85+ t .Logf ("All %d watched dependencies are up-to-date" , len (watchedDependencies ))
8686 }
8787}
8888
0 commit comments