Skip to content

Commit

Permalink
Merge branch 'main' into B-22652-MAIN
Browse files Browse the repository at this point in the history
  • Loading branch information
traskowskycaci committed Mar 6, 2025
2 parents 32ae284 + af96394 commit 19cf559
Show file tree
Hide file tree
Showing 411 changed files with 28,075 additions and 4,240 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,7 @@ commands:
export ENVIRONMENT=test
export FEATURE_FLAG_MULTI_MOVE=true
export FEATURE_FLAG_PPM=true
export FEATURE_FLAG_PPM_SPR=false
export FEATURE_FLAG_NTS=true
export FEATURE_FLAG_NTSR=true
export FEATURE_FLAG_BOAT=true
Expand Down
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ export FEATURE_FLAG_QUEUE_MANAGEMENT=true

# Feature flags to disable certain shipment types
export FEATURE_FLAG_PPM=true
export FEATURE_FLAG_PPM_SPR=false
export FEATURE_FLAG_NTS=true
export FEATURE_FLAG_NTSR=true
export FEATURE_FLAG_BOAT=true
Expand Down
10 changes: 8 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -834,8 +834,8 @@ server_test:
- make bin/swagger
- echo "server test -- build gotestsum and run scripts for report"
- make -j 2 bin/milmove bin/gotestsum
- make server_test for app
allow_failure: true #leaving true until 5 tests failing tests are working
- make server_test
allow_failure: false
artifacts:
paths:
- /builds/milmove/mymove/bin/gotestsum
Expand Down Expand Up @@ -1457,6 +1457,8 @@ deploy_tasks_dp3:
- ./scripts/ecs-deploy-task-container save-ghc-fuel-price-data "${ECR_REPOSITORY_URI}/app-tasks@${ECR_DIGEST}" "${APP_ENVIRONMENT}"
- echo "Deploying payment reminder email task service"
- ./scripts/ecs-deploy-task-container send-payment-reminder "${ECR_REPOSITORY_URI}/app-tasks@${ECR_DIGEST}" "${APP_ENVIRONMENT}"
- echo "Deploying process TPPS task service"
- ./scripts/ecs-deploy-task-container process-tpps "${ECR_REPOSITORY_URI}/app-tasks@${ECR_DIGEST}" "${APP_ENVIRONMENT}"
after_script:
- *announce_failure
rules:
Expand Down Expand Up @@ -1723,6 +1725,8 @@ deploy_tasks_stg:
- ./scripts/ecs-deploy-task-container save-ghc-fuel-price-data "${ECR_REPOSITORY_URI}/app-tasks@${ECR_DIGEST}" "${APP_ENVIRONMENT}"
- echo "Deploying payment reminder email task service"
- ./scripts/ecs-deploy-task-container send-payment-reminder "${ECR_REPOSITORY_URI}/app-tasks@${ECR_DIGEST}" "${APP_ENVIRONMENT}"
- echo "Deploying process TPPS task service"
- ./scripts/ecs-deploy-task-container process-tpps "${ECR_REPOSITORY_URI}/app-tasks@${ECR_DIGEST}" "${APP_ENVIRONMENT}"
after_script:
- *announce_failure
rules:
Expand Down Expand Up @@ -2008,6 +2012,8 @@ deploy_tasks_prd:
- ./scripts/ecs-deploy-task-container save-ghc-fuel-price-data "${ECR_REPOSITORY_URI}/app-tasks@${ECR_DIGEST}" "${APP_ENVIRONMENT}"
- echo "Deploying payment reminder email task service"
- ./scripts/ecs-deploy-task-container send-payment-reminder "${ECR_REPOSITORY_URI}/app-tasks@${ECR_DIGEST}" "${APP_ENVIRONMENT}"
- echo "Deploying process TPPS task service"
- ./scripts/ecs-deploy-task-container process-tpps "${ECR_REPOSITORY_URI}/app-tasks@${ECR_DIGEST}" "${APP_ENVIRONMENT}"
after_script:
- *announce_failure
rules:
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile.tasks
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@ COPY bin/rds-ca-rsa4096-g1.pem /bin/rds-ca-rsa4096-g1.pem
COPY bin/rds-ca-2019-root.pem /bin/rds-ca-2019-root.pem
COPY bin/milmove-tasks /bin/milmove-tasks

# Mount mutable tmp for process-tpps
# hadolint ignore=DL3007
VOLUME ["/tmp"]

WORKDIR /bin
4 changes: 4 additions & 0 deletions Dockerfile.tasks_dp3
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@ COPY bin/rds-ca-rsa4096-g1.pem /bin/rds-ca-rsa4096-g1.pem

COPY bin/milmove-tasks /bin/milmove-tasks

# Mount mutable tmp for process-tpps
# hadolint ignore=DL3007
VOLUME ["/tmp"]

WORKDIR /bin
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,22 @@ tasks_process_edis: tasks_build_linux_docker ## Run process-edis from inside doc
$(TASKS_DOCKER_CONTAINER):latest \
milmove-tasks process-edis

.PHONY: tasks_process_tpps
tasks_process_tpps: tasks_build_linux_docker ## Run process-tpps from inside docker container
@echo "Processing TPPS files with docker command..."
DB_NAME=$(DB_NAME_DEV) DB_DOCKER_CONTAINER=$(DB_DOCKER_CONTAINER_DEV) scripts/wait-for-db-docker
docker run \
-t \
-e DB_HOST="database" \
-e DB_NAME \
-e DB_PORT \
-e DB_USER \
-e DB_PASSWORD \
--link="$(DB_DOCKER_CONTAINER_DEV):database" \
--rm \
$(TASKS_DOCKER_CONTAINER):latest \
milmove-tasks process-tpps

.PHONY: tasks_save_ghc_fuel_price_data
tasks_save_ghc_fuel_price_data: tasks_build_linux_docker ## Run save-ghc-fuel-price-data from inside docker container
@echo "Saving the fuel price data to the ${DB_NAME_DEV} database with docker command..."
Expand Down
1 change: 1 addition & 0 deletions cmd/ecs-deploy/put_target.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ var names = []string{
"connect-to-gex-via-sftp",
"post-file-to-gex",
"process-edis",
"process-tpps",
"save-ghc-fuel-price-data",
"send-payment-reminder",
}
Expand Down
1 change: 1 addition & 0 deletions cmd/ecs-deploy/task_def.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ var servicesToEntryPoints = map[string][]string{
fmt.Sprintf("%s connect-to-gex-via-sftp", binMilMoveTasks),
fmt.Sprintf("%s post-file-to-gex", binMilMoveTasks),
fmt.Sprintf("%s process-edis", binMilMoveTasks),
fmt.Sprintf("%s process-tpps", binMilMoveTasks),
fmt.Sprintf("%s save-ghc-fuel-price-data", binMilMoveTasks),
fmt.Sprintf("%s send-payment-reminder", binMilMoveTasks),
},
Expand Down
2 changes: 1 addition & 1 deletion cmd/generate-shipment-summary/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func main() {
noErr(err)
ppmGenerator, err := shipmentsummaryworksheet.NewSSWPPMGenerator(generator)
noErr(err)
ssw, info, err := ppmGenerator.FillSSWPDFForm(page1Data, page2Data, page3Data)
ssw, info, err := ppmGenerator.FillSSWPDFForm(page1Data, page2Data, page3Data, "")
noErr(err)
fmt.Println(ssw.Name()) // Should always return
fmt.Println(info.PageCount) // Page count should always be 2
Expand Down
2 changes: 1 addition & 1 deletion cmd/image-to-pdf/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func main() {
}

appCtx := appcontext.NewAppContext(nil, logger, nil)
path, err := generator.MergeImagesToPDF(appCtx, inputFiles)
path, err := generator.MergeImagesToPDF(appCtx, inputFiles, "")
if err != nil {
log.Fatal(err.Error())
}
Expand Down
10 changes: 10 additions & 0 deletions cmd/milmove-tasks/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,16 @@ func main() {
initConnectToGEXViaSFTPFlags(processEDIsCommand.Flags())
root.AddCommand(processEDIsCommand)

processTPPSCommand := &cobra.Command{
Use: "process-tpps",
Short: "process TPPS files asynchrounously",
Long: "process TPPS files asynchrounously",
RunE: processTPPS,
SilenceUsage: true,
}
initProcessTPPSFlags(processTPPSCommand.Flags())
root.AddCommand(processTPPSCommand)

completionCommand := &cobra.Command{
Use: "completion",
Short: "Generates bash completion scripts",
Expand Down
11 changes: 0 additions & 11 deletions cmd/milmove-tasks/process_edis.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,16 +244,5 @@ func processEDIs(_ *cobra.Command, _ []string) error {
logger.Info("Successfully processed EDI824 application advice responses")
}

// Pending completion of B-20560, uncomment the code below
/*
// Process TPPS paid invoice report
pathTPPSPaidInvoiceReport := v.GetString(cli.SFTPTPPSPaidInvoiceReportPickupDirectory)
_, err = syncadaSFTPSession.FetchAndProcessSyncadaFiles(appCtx, pathTPPSPaidInvoiceReport, lastReadTime, invoice.NewTPPSPaidInvoiceReportProcessor())
if err != nil {
logger.Error("Error reading TPPS Paid Invoice Report application advice responses", zap.Error(err))
} else {
logger.Info("Successfully processed TPPS Paid Invoice Report application advice responses")
}
*/
return nil
}
Loading

0 comments on commit 19cf559

Please sign in to comment.