Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Int b 22693 #14957

Open
wants to merge 37 commits into
base: integrationTesting
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
4654a2f
B-22693 new prime acknowledgement endpoint
brianmanley-caci Feb 27, 2025
ed7bdbb
B-22693 handler and payload logic for prime moves acknowledgement
brianmanley-caci Mar 4, 2025
a63db71
B-22693 prime acknowledge service to call db procedure
brianmanley-caci Mar 4, 2025
a194387
Merge main into B-22693
brianmanley-caci Mar 4, 2025
f2024ec
B-22693 must test the handler
brianmanley-caci Mar 4, 2025
420a1bc
B-22693 fix a couple broken tests
brianmanley-caci Mar 4, 2025
a3e6c33
Merge B-22693 into INT-B-22693
brianmanley-caci Mar 4, 2025
b924da6
B-22693 fix spelling issue
brianmanley-caci Mar 5, 2025
de72dd6
Merge remote-tracking branch 'origin/MAIN-B-22693' into INT-B-22693
brianmanley-caci Mar 5, 2025
f782926
Merge branch 'integrationTesting' into INT-B-22693
brianmanley-caci Mar 5, 2025
ee5098c
Merge branch 'integrationTesting' into INT-B-22693
brianmanley-caci Mar 5, 2025
c742245
Remove duplicate tests found only on my INT-B-22693 branch
brianmanley-caci Mar 5, 2025
5cb04a2
B-22693 fix/improve tests and resolve potential bug
brianmanley-caci Mar 5, 2025
0b3a81f
Merge remote-tracking branch 'origin/MAIN-B-22693' into INT-B-22693
brianmanley-caci Mar 5, 2025
dafcb3e
Merge branch 'integrationTesting' into INT-B-22693
brianmanley-caci Mar 6, 2025
96997c5
change to env variables for bypass if needed; unset aws env just to a…
josiahzimmerman-caci Mar 6, 2025
59eb2a2
need logic to by dynamic in rules
josiahzimmerman-caci Mar 6, 2025
112e5de
missed one
josiahzimmerman-caci Mar 6, 2025
592ce54
final fix
josiahzimmerman-caci Mar 6, 2025
8821f04
Merge branch 'integrationTesting' into INT-B-22693
brianmanley-caci Mar 6, 2025
c0c9f1c
Merge branch 'main' into B-22814-EnvVariableTests
josiahzimmerman-caci Mar 6, 2025
9ef25cd
update to dockerhub
josiahzimmerman-caci Mar 6, 2025
2c5402b
Merge branch 'B-22814-EnvVariableTests' of https://github.com/transco…
josiahzimmerman-caci Mar 6, 2025
4781d85
switch to harbor
josiahzimmerman-caci Mar 6, 2025
19cf559
Merge branch 'main' into B-22652-MAIN
traskowskycaci Mar 6, 2025
0d3f1f7
change to harbor
josiahzimmerman-caci Mar 7, 2025
e90754a
Merge pull request #14975 from transcom/B-22652-MAIN
cameroncaci Mar 7, 2025
0e1c59f
Merge branch 'main' into B-22814-EnvVariableTests
josiahzimmerman-caci Mar 7, 2025
9eda4fc
white space clean up
josiahzimmerman-caci Mar 7, 2025
554691a
Merge pull request #14973 from transcom/B-22814-EnvVariableTests
josiahzimmerman-caci Mar 7, 2025
102f553
B-22693 remove unused statuses
brianmanley-caci Mar 7, 2025
592766f
Merge main into MAIN-B-22693
brianmanley-caci Mar 7, 2025
2411979
Merge branch 'integrationTesting' into INT-B-22693
brianmanley-caci Mar 7, 2025
402d3bd
Merge B-22693 into INT-B-22693
brianmanley-caci Mar 7, 2025
bd8807c
B-22693 separate definitions into separate yaml files for consistency
brianmanley-caci Mar 7, 2025
ef5464a
Merge remote-tracking branch 'origin/MAIN-B-22693' into INT-B-22693
brianmanley-caci Mar 7, 2025
bf565d5
Merge branch 'integrationTesting' into INT-B-22693
brianmanley-caci Mar 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 81 additions & 21 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ variables:
RUNNER_TAG: &runner_tag milmove
DOCKER_RUNNER_TAG: &docker_runner_tag eks_cluster_runner

postgres: &postgres postgres:16.4
postgres: &postgres harbor.csde.caci.com/docker.io/postgres:16.4
#postgres: &postgres postgres:16.4
redis: &redis redis:5.0.6
redis: &redis harbor.csde.caci.com/docker.io/redis:5.0.6

stages:
- pre_checks
Expand Down Expand Up @@ -86,6 +86,10 @@ stages:
.setup_aws_vars_dp3: &setup_aws_vars_dp3
- export SERVICE_RESERVATION_CPU=2048
- export SERVICE_RESERVATION_MEM=4096
- unset AWS_ACCESS_KEY_ID
- unset AWS_SECRET_ACCESS_KEY
- unset AWS_ACCOUNT_ID
- unset AWS_DEFAULT_REGION
- |
if [[ "$DP3_ENV" == "exp" || "$DP3_ENV" == "loadtest" || "$DP3_ENV" == "demo" ]]; then
export ENV=$(echo ${DP3_ENV} | tr '[:lower:]' '[:upper:]');
Expand All @@ -108,12 +112,20 @@ stages:
fi

.setup_aws_vars_com_dev: &setup_aws_vars_com_dev
- unset AWS_ACCESS_KEY_ID
- unset AWS_SECRET_ACCESS_KEY
- unset AWS_ACCOUNT_ID
- unset AWS_DEFAULT_REGION
- export AWS_DEFAULT_REGION=$COM_REGION
- export AWS_ACCOUNT_ID=$DEV_ACCOUNT_ID
- export AWS_ACCESS_KEY_ID=$DEV_ACCESS_KEY_ID
- export AWS_SECRET_ACCESS_KEY=$DEV_SECRET_KEY

.setup_aws_vars_stg: &setup_aws_vars_stg
- unset AWS_ACCESS_KEY_ID
- unset AWS_SECRET_ACCESS_KEY
- unset AWS_ACCOUNT_ID
- unset AWS_DEFAULT_REGION
- export AWS_DEFAULT_REGION=$STG_REGION
- export AWS_ACCOUNT_ID=$STG_ACCOUNT_ID
- export AWS_ACCESS_KEY_ID=$STG_ACCESS_KEY_ID
Expand All @@ -127,6 +139,10 @@ stages:
- export TLS_CA=$STG_MOVE_MIL_DOD_TLS_CA

.setup_aws_vars_prd: &setup_aws_vars_prd
- unset AWS_ACCESS_KEY_ID
- unset AWS_SECRET_ACCESS_KEY
- unset AWS_ACCOUNT_ID
- unset AWS_DEFAULT_REGION
- export AWS_DEFAULT_REGION=$PRD_REGION
- export AWS_ACCOUNT_ID=$PRD_ACCOUNT_ID
- export AWS_ACCESS_KEY_ID=$PRD_ACCESS_KEY_ID
Expand Down Expand Up @@ -405,7 +421,7 @@ golang_lint:
interruptible: true
tags:
- $DOCKER_RUNNER_TAG
image: golangci/golangci-lint:latest # Refer to https://hub.docker.com/r/golangci/golangci-lint
image: harbor.csde.caci.com/docker.io/golangci/golangci-lint:latest # Refer to https://hub.docker.com/r/golangci/golangci-lint
script:
- golangci-lint run --print-issued-lines=false --timeout=25m --out-format code-climate:gl-code-quality-report.json,line-number
artifacts:
Expand Down Expand Up @@ -750,7 +766,6 @@ pre_test:
- yarn danger ci --failOnErrors
- echo "Run spectral linter on all files"
- ./scripts/ensure-spectral-lint /tmp/spectral_baseline spectral
allow_failure: true
after_script:
- *announce_failure
artifacts:
Expand All @@ -761,8 +776,12 @@ pre_test:
- tmp/spectral_baseline/*.json #what do we need to store for review?
- spectral/*.json #what do we need to store for review?
when: always
# rules:
# - *check_server_ignore_branch
rules:
- if: '$PRE_TEST_ALLOW_FAILURE == "true"'
allow_failure: true
- if: '$PRE_TEST_ALLOW_FAILURE == "false"'
allow_failure: false
# - *check_server_ignore_branch all branches for now

server_test:
stage: test
Expand Down Expand Up @@ -835,7 +854,6 @@ server_test:
- echo "server test -- build gotestsum and run scripts for report"
- make -j 2 bin/milmove bin/gotestsum
- make server_test
allow_failure: false
artifacts:
paths:
- /builds/milmove/mymove/bin/gotestsum
Expand All @@ -845,9 +863,12 @@ server_test:
junit: /builds/milmove/mymove/tmp/test-results/gotest/app/go-test-report.xml
after_script:
- *announce_failure
# we want to make this run on every branch bc webhooks don't exist currently
# rules:
# - *check_server_ignore_branch
rules:
- if: '$SERVER_TEST_ALLOW_FAILURE == "true"'
allow_failure: true
- if: '$SERVER_TEST_ALLOW_FAILURE == "false"'
allow_failure: false
# - *check_server_ignore_branch # we want to make this run on every branch bc webhooks don't exist currently

server_test_coverage:
stage: test
Expand All @@ -867,10 +888,13 @@ server_test_coverage:
./scripts/ensure-go-test-coverage \
tmp/baseline-go-coverage/go-coverage.txt \
tmp/test-results/gotest/app/go-coverage.txt
allow_failure: true
after_script:
- *announce_failure
rules:
- if: '$SERVER_TEST_ALLOW_FAILURE == "true"'
allow_failure: true
- if: '$SERVER_TEST_ALLOW_FAILURE == "false"'
allow_failure: true #allow failure for now
- *check_server_ignore_branch
###may need to rethink the logic and intent of this they save per the following and do some PR interaction
# only save the cache on default branch builds because we only want to
Expand Down Expand Up @@ -914,9 +938,12 @@ client_test:
- /builds/milmove/mymove/jest-junit-reports
after_script:
- *announce_failure
# we want to make this run on every branch bc webhooks don't exist currently
# rules:
# - *check_client_ignore_branch
rules:
- if: '$CLIENT_TEST_ALLOW_FAILURE == "true"'
allow_failure: true
- if: '$CLIENT_TEST_ALLOW_FAILURE == "false"'
allow_failure: false
# - *check_client_ignore_branch # we want to make this run on every branch bc webhooks don't exist currently

client_test_coverage:
stage: test
Expand All @@ -940,6 +967,10 @@ client_test_coverage:
after_script:
- *announce_failure
rules:
- if: '$CLIENT_TEST_ALLOW_FAILURE == "true"'
allow_failure: true
- if: '$CLIENT_TEST_ALLOW_FAILURE == "false"'
allow_failure: true #allow failure for now
- *check_client_ignore_branch

integration_test_devseed:
Expand Down Expand Up @@ -995,10 +1026,13 @@ integration_test_devseed:
export MOVE_MIL_DOD_TLS_CERT=$(cat config/tls/devlocal-https.pem)
export MOVE_MIL_DOD_TLS_KEY=$(cat config/tls/devlocal-https.key)
- make db_dev_fresh
allow_failure: true
after_script:
- *announce_failure
rules:
- if: '$INTEGRATION_TEST_ALLOW_FAILURE == "true"'
allow_failure: true
- if: '$INTEGRATION_TEST_ALLOW_FAILURE == "false"'
allow_failure: false
- *check_integration_ignore_branch

integration_tests:
Expand All @@ -1020,10 +1054,13 @@ integration_tests:
script:
- echo "TODO Add steps"
- echo "integration_tests"
allow_failure: true
after_script:
- *announce_failure
rules:
- if: '$INTEGRATION_TEST_ALLOW_FAILURE == "true"'
allow_failure: true
- if: '$INTEGRATION_TEST_ALLOW_FAILURE == "false"'
allow_failure: true # allow failure for now
- *check_integration_ignore_branch

integration_test_mtls:
Expand Down Expand Up @@ -1082,10 +1119,13 @@ integration_test_mtls:
paths:
- test-results/
when: always
allow_failure: true
after_script:
- *announce_failure
rules:
- if: '$INTEGRATION_TEST_ALLOW_FAILURE == "true"'
allow_failure: true
- if: '$INTEGRATION_TEST_ALLOW_FAILURE == "false"'
allow_failure: true # allow failure for now
- *check_integration_mtls_ignore_branch

integration_test_admin:
Expand Down Expand Up @@ -1149,10 +1189,13 @@ integration_test_admin:
- complete-playwright-report.zip
- playwright-results.xml
when: always
allow_failure: true
after_script:
- *announce_failure
rules:
- if: '$INTEGRATION_TEST_ALLOW_FAILURE == "true"'
allow_failure: true
- if: '$INTEGRATION_TEST_ALLOW_FAILURE == "false"'
allow_failure: true # allow failure for now
- *check_integration_ignore_branch

integration_test_my:
Expand Down Expand Up @@ -1217,10 +1260,13 @@ integration_test_my:
- complete-playwright-report.zip
- playwright-results.xml
when: always
allow_failure: true
after_script:
- *announce_failure
rules:
- if: '$INTEGRATION_TEST_ALLOW_FAILURE == "true"'
allow_failure: true
- if: '$INTEGRATION_TEST_ALLOW_FAILURE == "false"'
allow_failure: true # allow failure for now
- *check_integration_ignore_branch

integration_test_office:
Expand Down Expand Up @@ -1283,10 +1329,13 @@ integration_test_office:
- complete-playwright-report.zip
- playwright-results.xml
when: always
allow_failure: true
after_script:
- *announce_failure
rules:
- if: '$INTEGRATION_TEST_ALLOW_FAILURE == "true"'
allow_failure: true
- if: '$INTEGRATION_TEST_ALLOW_FAILURE == "false"'
allow_failure: true # allow failure for now
- *check_integration_ignore_branch


Expand Down Expand Up @@ -1560,7 +1609,6 @@ deploy_app_dp3:
########################################################
## STG push and deploy stages all off of main only ##
########################################################

build_push_app_stg:
stage: push
interruptible: true
Expand All @@ -1573,6 +1621,10 @@ build_push_app_stg:
needs:
- compile_app_client
- compile_app_server
- client_test_coverage
- server_test_coverage
- pre_test
- integration_tests
before_script:
- *setup_aws_vars_stg
- *setup_release_stg
Expand All @@ -1597,6 +1649,10 @@ build_push_migrations_stg:
needs:
- compile_app_server
- compile_app_client
- client_test_coverage
- server_test_coverage
- pre_test
- integration_tests
before_script:
- *setup_aws_vars_stg
- *setup_release_stg
Expand All @@ -1621,6 +1677,10 @@ build_push_tasks_stg:
needs:
- compile_app_server
- compile_app_client
- client_test_coverage
- server_test_coverage
- pre_test
- integration_tests
before_script:
- *setup_aws_vars_stg
- *setup_release_stg
Expand Down
5 changes: 5 additions & 0 deletions pkg/gen/primeapi/configure_mymove.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ func configureAPI(api *primeoperations.MymoveAPI) http.Handler {
// You may change here the memory limit for this multipart form parser. Below is the default (32 MB).
// payment_request.CreateUploadMaxParseMemory = 32 << 20

if api.MoveTaskOrderAcknowledgeMovesAndShipmentsHandler == nil {
api.MoveTaskOrderAcknowledgeMovesAndShipmentsHandler = move_task_order.AcknowledgeMovesAndShipmentsHandlerFunc(func(params move_task_order.AcknowledgeMovesAndShipmentsParams) middleware.Responder {
return middleware.NotImplemented("operation move_task_order.AcknowledgeMovesAndShipments has not yet been implemented")
})
}
if api.MoveTaskOrderCreateExcessWeightRecordHandler == nil {
api.MoveTaskOrderCreateExcessWeightRecordHandler = move_task_order.CreateExcessWeightRecordHandlerFunc(func(params move_task_order.CreateExcessWeightRecordParams) middleware.Responder {
return middleware.NotImplemented("operation move_task_order.CreateExcessWeightRecord has not yet been implemented")
Expand Down
Loading