Skip to content

Commit

Permalink
Merge branch 'master' into mzibrick-ccxdev14488
Browse files Browse the repository at this point in the history
  • Loading branch information
matysek authored Oct 4, 2024
2 parents 1731230 + a48cd65 commit a61c3c1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
9 changes: 8 additions & 1 deletion ccx_notification_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ package main
import (
"flag"
"fmt"
"math"
"net/http"
"os"
"strconv"
Expand Down Expand Up @@ -685,7 +686,13 @@ func PerformMigrations(configuration *ConfigStruct, migParam string) (exitStatus
err = convErr
return
}
desiredVersion = utils.Version(vers)
if vers < 0 || vers > math.MaxUint32 {
log.Error().Err(err).Msgf("Unable to parse migration version: %v version out of range", migParam)
exitStatus = ExitStatusMigrationError
err = fmt.Errorf("version out of range: %v", vers)
return
}
desiredVersion = utils.Version(uint32(vers))
}

// perform database migration
Expand Down
2 changes: 1 addition & 1 deletion goerrcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ echo -e "${BLUE}Finding all unchecked errors${NC}"
if ! [ -x "$(command -v errcheck)" ]
then
echo -e "${BLUE}Installing errcheck ${NC}"
GO111MODULE=off go get github.com/kisielk/errcheck
GO111MODULE=on go install github.com/kisielk/errcheck@latest
fi


Expand Down
2 changes: 1 addition & 1 deletion ineffassign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ echo -e "${BLUE}Detecting ineffectual assignments in Go code${NC}"
if ! [ -x "$(command -v ineffassign)" ]
then
echo -e "${BLUE}Installing ineffassign${NC}"
GO111MODULE=off go get github.com/gordonklaus/ineffassign
GO111MODULE=on go install github.com/gordonklaus/ineffassign@latest
fi

if ! ineffassign ./...
Expand Down
2 changes: 1 addition & 1 deletion pr_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ APP_NAME="ccx-data-pipeline" # name of app-sre "application" folder this compon
# git version of clowdapp.yaml(or any other) file from the pull request.
COMPONENT_NAME="ccx-notification-writer ccx-notification-db-cleaner" # name of app-sre "resourceTemplate" in deploy.yaml for this component
IMAGE="quay.io/cloudservices/ccx-notification-writer"
COMPONENTS="ccx-data-pipeline ccx-insights-results dvo-writer ccx-smart-proxy ccx-notification-writer ccx-notification-service ccx-notification-db-cleaner notifications-backend notifications-aggregator notifications-engine insights-content-service ccx-mock-ams ccx-upgrades-sso-mock insights-content-template-renderer" # space-separated list of components to load
COMPONENTS="ccx-data-pipeline ccx-insights-results ccx-redis dvo-writer ccx-smart-proxy ccx-notification-writer ccx-notification-service ccx-notification-db-cleaner notifications-backend notifications-aggregator notifications-engine insights-content-service ccx-mock-ams ccx-upgrades-sso-mock insights-content-template-renderer" # space-separated list of components to load
COMPONENTS_W_RESOURCES="ccx-notification-writer" # component to keep
CACHE_FROM_LATEST_IMAGE="true"
DEPLOY_FRONTENDS="false"
Expand Down

0 comments on commit a61c3c1

Please sign in to comment.