Skip to content

Commit 29cc329

Browse files
committed
testing pr changes
1 parent 92b5992 commit 29cc329

File tree

5 files changed

+30
-9
lines changed

5 files changed

+30
-9
lines changed

.github/workflows/node-ec2-default-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ env:
4545
NODE_VERSION: ${{ inputs.node-version }}
4646
CPU_ARCHITECTURE: ${{ inputs.cpu-architecture }}
4747
ADOT_INSTRUMENTATION_NAME: ${{ inputs.staging-instrumentation-name }}
48-
SAMPLE_APP_ZIP: s3://aws-appsignals-sample-app-prod-${{ inputs.aws-region }}/node-sample-app.zip
48+
SAMPLE_APP_ZIP: s3://aws-appsignals-sample-app-prod-${{ inputs.aws-region }}/node-sample-app-delete-me.zip
4949
E2E_TEST_ACCOUNT_ID: ${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ACCOUNT_ID }}
5050
E2E_TEST_ROLE_NAME: ${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ROLE_NAME }}
5151
METRIC_NAMESPACE: ApplicationSignals

.github/workflows/test.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
## SPDX-License-Identifier: Apache-2.0
3+
4+
# This is a reusable workflow for running the Enablement test for App Signals.
5+
# It is meant to be called from another workflow.
6+
# Read more about reusable workflows: https://docs.github.com/en/actions/using-workflows/reusing-workflows#overview
7+
name: Test
8+
on:
9+
push:
10+
branches:
11+
- Node_Custom_metrics
12+
13+
permissions:
14+
id-token: write
15+
contents: read
16+
17+
jobs:
18+
node-ec2-default-test:
19+
uses: ./.github/workflows/node-ec2-default-test.yml
20+
secrets: inherit
21+
with:
22+
caller-workflow-name: 'test'
23+
aws-region: 'us-east-1'

sample-apps/node/frontend-service/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,6 @@ app.get('/client-call', (req, res) => {
187187
makeAsyncCall = true;
188188
});
189189

190-
191-
192190
app.get('/mysql', (req, res) => {
193191
// Create a connection to the MySQL database
194192
const connection = mysql.createConnection({

sample-apps/node/frontend-service/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
"@types/node": "^20.14.6",
2323
"bunyan": "^1.8.15",
2424
"express": "^4.21.2",
25-
"mysql2": "^3.15.3"
25+
"mysql2": "^3.11.0"
2626
}
2727
}

terraform/node/ec2/default/main.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ resource "null_resource" "main_service_setup" {
141141
sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -s -c file:./amazon-cloudwatch-agent.json
142142
143143
# Get and run the sample application with configuration
144-
aws s3 cp ${var.sample_app_zip} ./node-sample-app.zip
145-
unzip -o node-sample-app.zip
144+
aws s3 cp ${var.sample_app_zip} ./node-sample-app-delete-me.zip
145+
unzip -o node-sample-app-delete-me.zip
146146
147147
# Enter appropriate service folder
148148
cd frontend-service
@@ -182,7 +182,7 @@ resource "null_resource" "main_service_setup" {
182182
tmux send-keys -t frontend 'export AWS_REGION="$${AWS_REGION}"' C-m
183183
tmux send-keys -t frontend 'export TESTING_ID="$${TESTING_ID}"' C-m
184184
tmux send-keys -t frontend 'export OTEL_NODE_DISABLED_INSTRUMENTATIONS=fs,dns,express' C-m
185-
tmux send-keys -t frontend 'export OTEL_SERVICE_NAME=node-sample-application-${var.test_id}' C-m
185+
tmux send-keys -t frontend 'export OTEL_SERVICE_NAME="$${SERVICE_NAME}"' C-m
186186
tmux send-keys -t frontend 'export OTEL_TRACES_SAMPLER=always_on' C-m
187187
tmux send-keys -t frontend 'node --require "@aws/aws-distro-opentelemetry-node-autoinstrumentation/register" index.js' C-m
188188
@@ -272,8 +272,8 @@ resource "null_resource" "remote_service_setup" {
272272
sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -s -c file:./amazon-cloudwatch-agent.json
273273
274274
# Get and run the sample application with configuration
275-
aws s3 cp ${var.sample_app_zip} ./node-sample-app.zip
276-
unzip -o node-sample-app.zip
275+
aws s3 cp ${var.sample_app_zip} ./node-sample-app-delete-me.zip
276+
unzip -o node-sample-app-delete-me.zip
277277
278278
# Enter appropriate service folder
279279
cd remote-service

0 commit comments

Comments
 (0)