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

[Prod] Include inactive grants withing 60 days; update TR imports, add resource use sparkline graph #2295

Merged
merged 145 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
b5f9710
rm src/lib/awsElasticSearch/
nvms Jun 5, 2024
a966bed
cleanup
nvms Jun 5, 2024
b4840b3
cleanup
nvms Jun 5, 2024
9bbfed0
Merge branch 'jp/2698/tools-coverage' into jp/2691/lib-coverage
nvms Jun 11, 2024
de4bfcf
Merge branch 'jp/2698/tools-coverage' into jp/2691/lib-coverage
nvms Jun 12, 2024
59c99dd
add tests for lockManager.
nvms Jun 12, 2024
0407924
unused
nvms Jun 12, 2024
f3b454a
rm redundant test
nvms Jun 12, 2024
998add6
comment unused code
nvms Jun 12, 2024
420c1a5
more unused code
nvms Jun 12, 2024
5196876
...more unused code
nvms Jun 12, 2024
cca71c5
add tests for queue.js
nvms Jun 12, 2024
8848a00
overrideStatusCodeOnAuthRequired:
nvms Jun 13, 2024
939a244
fully test queue.js
nvms Jun 13, 2024
d3fd928
Merge branch 'jp/2698/tools-coverage' into jp/2691/lib-coverage
nvms Jun 13, 2024
9b12d49
test the one and only branch in s3
nvms Jun 13, 2024
bb287d7
semaphore coverage
nvms Jun 28, 2024
45fa357
lockManager coverage
nvms Jun 28, 2024
4b571c6
apiErrorHandler coverage
nvms Jun 28, 2024
bd38e30
migration coverage
nvms Jun 28, 2024
47c156d
modelUtils coverage
nvms Jun 28, 2024
812438e
Merge branch 'main' into jp/2691/lib-coverage
nvms Jun 28, 2024
6f4b55b
getPersonnelField coverage
nvms Jun 28, 2024
d5da9fc
common coverage
nvms Jul 1, 2024
2967fb2
Merge branch 'main' into jp/2691/lib-coverage
nvms Jul 15, 2024
aa75b3d
fix merged tests
nvms Jul 15, 2024
fa6b2a1
phase 1
GarrettEHill Jul 18, 2024
53c325f
next try
GarrettEHill Jul 19, 2024
5e3f32e
a few changes
GarrettEHill Jul 19, 2024
84b1c4c
Update config.yml
GarrettEHill Jul 19, 2024
64e95eb
Update README.md
thewatermethod Jul 19, 2024
1142452
inactive filter for 60 days
AdamAdHocTeam Jul 22, 2024
0204d20
cleanup
AdamAdHocTeam Jul 22, 2024
10c1c21
Merge pull request #2283 from HHS/update-network-policy-instructions-…
thewatermethod Jul 22, 2024
572b59c
cleanup per Garrett
AdamAdHocTeam Jul 22, 2024
bced2b2
Fixes per Nathan
AdamAdHocTeam Jul 22, 2024
d817881
Merge pull request #2284 from HHS/al-ttahub-3096-allow-inactive-grant…
AdamAdHocTeam Jul 23, 2024
32d9a30
adding backup retention
GarrettEHill Jul 24, 2024
ad3b3cb
Update config.yml
GarrettEHill Jul 24, 2024
0d84b73
Update db_backup.sh
GarrettEHill Jul 24, 2024
16848a8
new features for list, generate URLs for a specific set, download and…
GarrettEHill Jul 25, 2024
4265235
Update config.yml
GarrettEHill Jul 25, 2024
d8ddf14
Update latest_backup.sh
GarrettEHill Jul 25, 2024
a7a3f48
Update latest_backup.sh
GarrettEHill Jul 25, 2024
a9af6c6
Update latest_backup.sh
GarrettEHill Jul 25, 2024
eb0ba35
Update README.md
GarrettEHill Jul 25, 2024
6dc647d
Update latest_backup.sh
GarrettEHill Jul 25, 2024
2b0b9cd
Update README.md
GarrettEHill Jul 25, 2024
41cb094
Create resource use sparkline graph
thewatermethod Jul 25, 2024
0d75def
Update latest_backup.sh
GarrettEHill Jul 25, 2024
546ad3e
Adjust frontend tests
thewatermethod Jul 25, 2024
483a297
Refactor to kill some unneeded CSS
thewatermethod Jul 25, 2024
9da8321
Update expected imports given new CSV
thewatermethod Jul 26, 2024
77cc765
Update config.yml
GarrettEHill Jul 26, 2024
df17f1f
Update config.yml
GarrettEHill Jul 26, 2024
577110a
Update config.yml
GarrettEHill Jul 26, 2024
1fdf64a
try the new stuff
GarrettEHill Jul 27, 2024
cef6b51
Update config.yml
GarrettEHill Jul 29, 2024
d2df7f4
Update config.yml
GarrettEHill Jul 29, 2024
ea74727
Update unit tests
thewatermethod Jul 29, 2024
2ce8bf7
Update config.yml
GarrettEHill Jul 29, 2024
bdaea15
Merge branch 'main' into TTAHUB-3060/url-publish
GarrettEHill Jul 29, 2024
be9b8d0
Update yarn-audit-known-issues
GarrettEHill Jul 29, 2024
b43eb10
Update config.yml
GarrettEHill Jul 29, 2024
b5c386c
Update config.yml
GarrettEHill Jul 29, 2024
115b722
more time before timeout
GarrettEHill Jul 29, 2024
eed4226
fix env name
GarrettEHill Jul 29, 2024
527c23c
Merge branch 'main' into jp/2691/lib-coverage
nvms Jul 30, 2024
5dcb94d
remove old tests
nvms Jul 30, 2024
39ff07b
Update config.yml
GarrettEHill Jul 30, 2024
2173171
Update cf_lambda.sh
GarrettEHill Jul 30, 2024
453c0db
Update db_backup.sh
GarrettEHill Jul 30, 2024
2c12bcd
Update config.yml
GarrettEHill Jul 30, 2024
542621e
Update config.yml
GarrettEHill Jul 30, 2024
7278aa3
Update config.yml
GarrettEHill Jul 30, 2024
63252a7
debug
GarrettEHill Jul 30, 2024
ba66106
Update db_backup.sh
GarrettEHill Jul 30, 2024
fa8e988
Update db_backup.sh
GarrettEHill Jul 30, 2024
1373597
Update db_backup.sh
GarrettEHill Jul 30, 2024
8d1f83c
Add external link icon
thewatermethod Jul 30, 2024
7f28bbc
Update known issues
thewatermethod Jul 30, 2024
4c92e0b
Update cf_lambda.sh
GarrettEHill Jul 30, 2024
877828b
Merge pull request #2292 from HHS/mb/TTAHUB/known-issues-73024
thewatermethod Jul 30, 2024
045d86e
Update config.yml
GarrettEHill Jul 30, 2024
49c080a
debug
GarrettEHill Jul 30, 2024
e99180a
remove adding user
GarrettEHill Jul 30, 2024
7074932
Update config.yml
GarrettEHill Jul 30, 2024
0e2e833
bug fixes
GarrettEHill Jul 30, 2024
3a92a12
fix circleci format error
GarrettEHill Jul 30, 2024
5a9d689
try a different format
GarrettEHill Jul 30, 2024
432e09b
Update config.yml
GarrettEHill Jul 30, 2024
70729ce
Update config.yml
GarrettEHill Jul 30, 2024
0c78b94
Update config.yml
GarrettEHill Jul 30, 2024
b8f4b46
Update config.yml
GarrettEHill Jul 30, 2024
6a585de
Update config.yml
GarrettEHill Jul 30, 2024
286bb08
Update config.yml
GarrettEHill Jul 30, 2024
ee7c116
Update config.yml
GarrettEHill Jul 30, 2024
b8f2be3
Update latest_backup.sh
GarrettEHill Jul 30, 2024
8032edf
Update config.yml
GarrettEHill Jul 30, 2024
2778c0a
add debugging
GarrettEHill Jul 30, 2024
0f9978f
temporarily turn of triggering the backup
GarrettEHill Jul 30, 2024
0448230
more debugging
GarrettEHill Jul 30, 2024
4ed6f66
Merge remote-tracking branch 'origin/main' into mb/TTAHUB-1457/resour…
thewatermethod Jul 31, 2024
1825913
try a different path using iam roles
GarrettEHill Jul 31, 2024
9290b8d
adding permissions check
GarrettEHill Jul 31, 2024
2c955a6
Replace unsafe-inline with nonce
kryswisnaskas Jul 31, 2024
e9c1729
linux awk supports multi-dimensional arrays, macos awk does not. Upda…
GarrettEHill Jul 31, 2024
b0e408b
fixes for the new version
GarrettEHill Jul 31, 2024
72f9804
Another macOS specific fix
GarrettEHill Jul 31, 2024
8069405
Now it should be good for macOS
GarrettEHill Jul 31, 2024
2464707
Merge branch 'main' into TTAHUB-3026/backup-retention
GarrettEHill Jul 31, 2024
10b7cb2
Another attempt as macOS support
GarrettEHill Jul 31, 2024
3e61fc4
Merge pull request #2290 from HHS/mb/TTAHUB-3240/updates-to-training-…
thewatermethod Jul 31, 2024
9662ba6
No more fancy AWK
GarrettEHill Jul 31, 2024
7e9a249
Merge pull request #2294 from HHS/kw-unsafe-inline
kryswisnaskas Jul 31, 2024
017fa1b
Deploy to sandbox
thewatermethod Jul 31, 2024
c263519
another macOS fix
GarrettEHill Jul 31, 2024
546e198
fail on not having minimum version
GarrettEHill Jul 31, 2024
4b33d61
more macOS fixes
GarrettEHill Jul 31, 2024
4f3240b
Revert "[TTAHUB-3040] Fix medium security alert: add nonce to inline …
kryswisnaskas Jul 31, 2024
16335a4
Merge pull request #2296 from HHS/revert-2294-kw-unsafe-inline
kryswisnaskas Jul 31, 2024
dd559bf
Add top margin to graph lines
thewatermethod Jul 31, 2024
1dd9a5f
add more macOS support, this time for downloading the zip
GarrettEHill Jul 31, 2024
9d0799b
Remove all the URL implementations
GarrettEHill Jul 31, 2024
eabf7b5
Merge branch 'main' into TTAHUB-3060/url-publish
GarrettEHill Jul 31, 2024
5952b4e
Update bin/latest_backup.sh
GarrettEHill Jul 31, 2024
4a080a1
Update bin/latest_backup.sh
GarrettEHill Jul 31, 2024
a827946
Update bin/latest_backup.sh
GarrettEHill Jul 31, 2024
6b0d8b7
Update bin/latest_backup.sh
GarrettEHill Jul 31, 2024
cf99e5c
Update automation/ci/scripts/cf_lambda.sh
GarrettEHill Jul 31, 2024
65d48b3
Update .circleci/config.yml
GarrettEHill Jul 31, 2024
53d1e80
Update automation/ci/scripts/cf_lambda.sh
GarrettEHill Jul 31, 2024
4c22a0c
Update .circleci/config.yml
GarrettEHill Jul 31, 2024
e1729a4
yarn audit
nvms Aug 1, 2024
b7ef64e
Merge pull request #2287 from HHS/TTAHUB-3026/backup-retention
GarrettEHill Aug 1, 2024
97dfb27
Merge branch 'main' into TTAHUB-3060/url-publish
GarrettEHill Aug 1, 2024
07eaee6
Fix historical duplicate args
Aug 1, 2024
cb438a9
restore test state to pre-merge
nvms Aug 1, 2024
5dfd4c4
Merge pull request #2279 from HHS/TTAHUB-3060/url-publish
GarrettEHill Aug 1, 2024
f7f48f1
Merge pull request #2189 from HHS/jp/2691/lib-coverage
nvms Aug 1, 2024
55ed989
Merge branch main into mb/TTAHUB-1457/resource-use-graph
thewatermethod Aug 2, 2024
efdf06c
Merge pull request #2289 from HHS/mb/TTAHUB-1457/resource-use-graph
thewatermethod Aug 2, 2024
a5f60c4
Fix duplicating goals on two reports from support cases
thewatermethod Aug 2, 2024
bd59e1c
Merge pull request #2298 from HHS/mb/TTAHUB-3266-2367/fix-duplicating…
thewatermethod Aug 2, 2024
a33246a
Merge pull request #2297 from HHS/TTAHUB-2553/historical_dupe_arg_fix
hardwarehuman Aug 3, 2024
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
224 changes: 197 additions & 27 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ executors:
- image: cimg/aws:2024.03
commands:
sparse_checkout:
description: "Checkout a sparse directory from a specific branch."
description: "Checkout sparse directories from a specific branch."
parameters:
directory:
directories:
type: string
description: "Directory to checkout sparsely"
description: "Comma-separated list of directories to checkout sparsely"
branch:
type: string
description: "Branch to checkout"
Expand All @@ -45,10 +45,14 @@ commands:
command: |
git clone --no-checkout --filter=blob:none << pipeline.project.git_url >>.git .
- run:
name: Setup Sparse Checkout
name: Sparse Checkout
environment:
DIRECTORIES: "<< parameters.directories >>"
command: |
git config core.sparseCheckout true
echo "<< parameters.directory >>/*" >> .git/info/sparse-checkout
echo $DIRECTORIES | tr ',' '\n' | while read dir; do
echo "$dir" | tee -a .git/info/sparse-checkout
done
- run:
name: Checkout Branch
command: |
Expand Down Expand Up @@ -101,32 +105,131 @@ commands:
}
}"
notify_slack:
description: "Notify slack of a deploy to production"
description: "Notify Slack with message"
parameters:
slack_bot_token:
description: "Slack bot token"
type: string
slack_channel:
description: "Slack channel name to post the message to"
type: string
message_text:
description: "Message text to post to Slack"
type: string
default: ""
message_text_file:
description: "message text_file"
type: string
default: ""
steps:
- run:
name: Notify Slack of Deployment
command: |
# Check if the CIRCLE_PULL_REQUEST variable is set and extract the PR number from it
if [ ! -z "$CIRCLE_PULL_REQUEST" ]; then
PR_NUMBER=${CIRCLE_PULL_REQUEST##*/}
MESSAGE_TEXT=":rocket: Deployment of PR <$CIRCLE_PULL_REQUEST|$PR_NUMBER> to production was successful!"
else
MESSAGE_TEXT=":rocket: Deployment to production was successful!"
fi
- run:
name: Notify Slack
command: |
set -x
# Ensure the $BASH_ENV file exists
if [ ! -f $BASH_ENV ]; then
touch $BASH_ENV
fi

source $BASH_ENV
cat $BASH_ENV

# Evaluate message_text_script if provided
if [ -n "<< parameters.message_text_file >>" ]; then
MESSAGE_TEXT=$(cat "<< parameters.message_text_file >>")
else
MESSAGE_TEXT="<< parameters.message_text >>"
fi

echo $MESSAGE_TEXT

# Ensure all parameters are provided
if [ -z "<< parameters.slack_bot_token >>" ] || [ -z "<< parameters.slack_channel >>" ] || [ -z "$MESSAGE_TEXT" ]; then
echo "Missing required parameters. Notification will not be sent."
exit 1
fi

response=$(curl -s -X POST \
-H "Authorization: Bearer << parameters.slack_bot_token >>" \
-H 'Content-type: application/json;charset=utf-8' \
--data "{
\"channel\": \"<< parameters.slack_channel >>\",
\"text\": \"$MESSAGE_TEXT\"
}" \
https://slack.com/api/chat.postMessage)

ok=$(echo $response | jq -r '.ok')
error=$(echo $response | jq -r '.error')

if [ "$ok" != "true" ]; then
echo "Slack notification failed: $error"
exit 1
else
echo "Slack notification sent successfully"
fi

notify_slack_deploy:
parameters:
slack_bot_token:
description: "Slack bot token"
type: string
slack_channel:
description: "Slack channel name to post the message to"
type: string
environment_name:
description: "Name of environment"
type: string
steps:
- run:
name: Generate Message
command: |
# Determine the environment URL
case "<< parameters.environment_name >>" in
sandbox)
ENV_URL="https://tta-smarthub-sandbox.app.cloud.gov/"
;;
dev)
ENV_URL="https://tta-smarthub-dev.app.cloud.gov/"
;;
staging)
ENV_URL="https://tta-smarthub-staging.app.cloud.gov/"
;;
production)
ENV_URL="https://ttahub.ohs.acf.hhs.gov"
;;
*)
ENV_URL="#"
;;
esac

env_name="<< parameters.environment_name >>"

if [ ! -z "${CIRCLE_PULL_REQUEST}" ]; then
PR_NUMBER=${CIRCLE_PULL_REQUEST##*/}

PR_TITLE=$(curl -s "${CIRCLE_PULL_REQUEST}" | sed -e :a -e "N; s/\n/ /g; ta" | grep -oP "<bdi class=\"js-issue-title markdown-title\">[^<]+</bdi>" | sed -re "s~<[^>]+>~~g")

if [ ! -z "${PR_TITLE}" ]; then
JIRA_URLS=$(curl -s "${CIRCLE_PULL_REQUEST}" | sed -e :a -e "N; s/\n/ /g; ta" | grep -oP "Issue[(]s[)]</h2>.*Checklists</h2>" | grep -oP "\"https[^\"]+\"" | sed -e "s~\"~~g" | grep -o "https://jira.acf.gov/browse/[A-Z0-9-]*")

MESSAGE_TEXT=":rocket: Deployment of PR <${CIRCLE_PULL_REQUEST}|${PR_NUMBER}> (${PR_TITLE}) to <${ENV_URL}|${env_name}> was successful!"
if [ ! -z "${JIRA_URLS}" ]; then
MESSAGE_TEXT="${MESSAGE_TEXT}\nJIRA URLs in the PR:\n${JIRA_URLS}"
fi
else
MESSAGE_TEXT=":rocket: Deployment of PR <${CIRCLE_PULL_REQUEST}|${PR_NUMBER}> to <${ENV_URL}|${env_name}> was successful!"
fi
else
MESSAGE_TEXT=":rocket: Deployment to <${ENV_URL}|${env_name}> was successful!"
fi

echo -e "${MESSAGE_TEXT}" > /tmp/message_file

- notify_slack:
slack_bot_token: << parameters.slack_bot_token >>
slack_channel: << parameters.slack_channel >>
message_text_file: "/tmp/message_file"

curl -X POST -H "Authorization: Bearer << parameters.slack_bot_token >>" \
-H 'Content-type: application/json;charset=utf-8' \
--data "{
\"channel\": \"<< parameters.slack_channel >>\",
\"text\": \"$MESSAGE_TEXT\"
}" https://slack.com/api/chat.postMessage

cf_deploy:
description: "Login to cloud foundry space with service account credentials
Expand Down Expand Up @@ -308,12 +411,13 @@ commands:
sudo apt-get update
# Install uuid-runtime to have access to uuidgen
# Install pv wget
sudo apt-get install pv uuid-runtime wget
sudo apt-get install -y pv uuid-runtime wget coreutils jq

# Install Cloud Foundry CLI
wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add -
echo "deb https://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list
sudo apt-get update
sudo apt-get install cf8-cli
sudo apt-get install -y cf8-cli
# Install plugin needed for connect-to-service
cf install-plugin -f https://github.com/cloud-gov/cf-service-connect/releases/download/v1.1.3/cf-service-connect_linux_amd64

Expand All @@ -339,6 +443,28 @@ commands:
-p ${<< parameters.cloudgov_password >>} \
-o << pipeline.parameters.cg_org >> \
-s ${<< parameters.cloudgov_space >>}
- run:
name: Start Log Monitoring
command: |
#!/bin/bash
CONTROL_FILE="/tmp/stop_tail"
rm -f $CONTROL_FILE

# Start tailing logs
cf logs tta-automation &

# Get the PID of the cf logs command
TAIL_PID=$!

# Wait for the control file to be created
while [ ! -f $CONTROL_FILE ]; do
sleep 1
done

# Kill the cf logs command
kill -9 $TAIL_PID
echo "cf logs command for tta-automation has been terminated."
background: true
- run:
name: cf_lambda - script to trigger backup
command: |
Expand All @@ -364,10 +490,32 @@ commands:
environment:
CF_RDS_SERVICE_NAME: ttahub-prod
CF_S3_SERVICE_NAME: ttahub-db-backups
- run:
name: Generate Message
command: |
if [ ! -z "$CIRCLE_PULL_REQUEST" ]; then
PR_NUMBER=${CIRCLE_PULL_REQUEST##*/}
echo ":download::database: Production backup before PR <$CIRCLE_PULL_REQUEST|$PR_NUMBER> successful!" > /tmp/message_file
else
echo ":download::database: Production backup successful!" > /tmp/message_file
fi
- notify_slack:
slack_bot_token: $SLACK_BOT_TOKEN
slack_channel: "acf-head-start-eng"
message_text_file: "/tmp/message_file"
- run:
name: Logout of service account
command: |
# Signal the log monitoring to stop
CONTROL_FILE="/tmp/stop_tail"
touch $CONTROL_FILE

# Wait for the log monitoring process to terminate
sleep 5

# Logout from Cloud Foundry
cf logout

parameters:
cg_org:
description: "Cloud Foundry cloud.gov organization name"
Expand Down Expand Up @@ -406,7 +554,7 @@ parameters:
default: "al-ttahub-2939-add-fei-root-cause-to-goal-card"
type: string
sandbox_git_branch: # change to feature branch to test deployment
default: "gh/cfignore-keep-sql-drop-tests"
default: "mb/TTAHUB-3198/training-report-alerts"
type: string
prod_new_relic_app_id:
default: "877570491"
Expand Down Expand Up @@ -633,6 +781,11 @@ jobs:
- run:
name: Wait for server to start
command: ./bin/ping-server 3000
- run:
name: Monitor database
command: |
docker attach $(docker ps | grep postgres | awk '{print $1}')
background: true
- run:
name: Install playwright dependencies
command: |
Expand Down Expand Up @@ -843,6 +996,11 @@ jobs:
env_name: sandbox
new_relic_app_id: << pipeline.parameters.sandbox_new_relic_app_id >>
new_relic_api_key: $NEW_RELIC_REST_API_KEY
- notify_slack_deploy:
slack_bot_token: $SLACK_BOT_TOKEN
slack_channel: "acf-head-start-github"
environment_name: "sandbox"

- when: # dev
condition:
and:
Expand Down Expand Up @@ -897,6 +1055,11 @@ jobs:
env_name: dev
new_relic_app_id: << pipeline.parameters.dev_new_relic_app_id >>
new_relic_api_key: $NEW_RELIC_REST_API_KEY
- notify_slack_deploy:
slack_bot_token: $SLACK_BOT_TOKEN
slack_channel: "acf-head-start-github"
environment_name: "dev"

- when: # staging
condition:
and:
Expand Down Expand Up @@ -949,6 +1112,11 @@ jobs:
env_name: staging
new_relic_app_id: << pipeline.parameters.staging_new_relic_app_id >>
new_relic_api_key: $NEW_RELIC_REST_API_KEY
- notify_slack_deploy:
slack_bot_token: $SLACK_BOT_TOKEN
slack_channel: "acf-head-start-github"
environment_name: "staging"

- when: # prod
condition:
and:
Expand Down Expand Up @@ -1001,16 +1169,18 @@ jobs:
env_name: prod
new_relic_app_id: << pipeline.parameters.prod_new_relic_app_id >>
new_relic_api_key: $NEW_RELIC_REST_API_KEY
- notify_slack:
- notify_slack_deploy:
slack_bot_token: $SLACK_BOT_TOKEN
slack_channel: "acf-ohs-ttahub--contractor-customer-team"
environment_name: "production"

resource_class: large
backup_upload_production:
docker:
- image: cimg/base:2024.05
steps:
- sparse_checkout:
directory: 'automation'
directories: 'automation'
branch: << pipeline.git.branch >>
- cf_backup:
auth_client_secret: PROD_AUTH_CLIENT_SECRET
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,9 @@ If you see nothing there, you'll need to add an appropriate policy.
```cf add-network-policy tta-smarthub-APP_NAME clamav-api-ttahub-APP_NAME --protocol tcp --port 9443```
ex:
```cf add-network-policy tta-smarthub-dev clamav-api-ttahub-dev --protocol tcp --port 9443```
You may need to connect across spaces (for example, our clamav-api-ttahub-dev app is shared by all of our ephemeral environments). If so, use the -s flag.
ex:
```cf add-network-policy tta-smarthub-staging -s ttahub-dev clamav-api-ttahub-dev --protocol tcp --port 9443```


<!-- Links -->
Expand Down
5 changes: 4 additions & 1 deletion automation/ci/scripts/cf_lambda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ set -o pipefail
set -o noglob
set -o noclobber

# Source the environment file to get the URLs
source /etc/environment

# -----------------------------------------------------------------------------
# Generic helper functions
# -----------------------------------------------------------------------------
Expand Down Expand Up @@ -423,7 +426,7 @@ function run_task {
function monitor_task {
local app_name=$1
local task_name=$2
local timeout=${3:-200} # Default timeout in seconds
local timeout=${3:-300} # Default timeout in seconds
validate_parameters "$app_name"
validate_parameters "$task_name"
local start_time
Expand Down
Loading