Skip to content

Commit abceb6f

Browse files
fix: onhost infra provision (NR-428719) (#1384)
1 parent 2847260 commit abceb6f

File tree

3 files changed

+30
-27
lines changed

3 files changed

+30
-27
lines changed

.github/workflows/nightly.yml

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -77,18 +77,17 @@ jobs:
7777
local_packages_path: "/srv/dist/"
7878
apt_skip_mirror: true
7979

80-
# TODO: enable back when tackling <https://new-relic.atlassian.net/browse/NR-428719>
81-
# onhost-e2e:
82-
# uses: ./.github/workflows/component_onhost_e2e.yaml
83-
# needs: [ upload-packages-s3 ]
84-
# with:
85-
# UNIQUE_NAME: "nightly:e2e"
86-
# EC2_FILTERS: '[\"ubuntu22.04\"]'
87-
# REPOSITORY_ENDPOINT: "http://nr-downloads-ohai-testing.s3-website-us-east-1.amazonaws.com/preview"
88-
# PACKAGE_VERSION: 0.100.${{ github.run_id }}
89-
# secrets:
90-
# AWS_ROLE_ARN: ${{ secrets.AWS_ROLE_ARN }}
91-
# AWS_VPC_SUBNET: ${{ secrets.AWS_VPC_SUBNET }}
80+
onhost-e2e:
81+
uses: ./.github/workflows/component_onhost_e2e.yaml
82+
needs: [ upload-packages-s3 ]
83+
with:
84+
UNIQUE_NAME: "nightly:e2e"
85+
EC2_FILTERS: '[\"ubuntu22.04\"]'
86+
REPOSITORY_ENDPOINT: "http://nr-downloads-ohai-testing.s3-website-us-east-1.amazonaws.com/preview"
87+
PACKAGE_VERSION: 0.100.${{ github.run_id }}
88+
secrets:
89+
AWS_ROLE_ARN: ${{ secrets.AWS_ROLE_ARN }}
90+
AWS_VPC_SUBNET: ${{ secrets.AWS_VPC_SUBNET }}
9291

9392
k8s-e2e-tests:
9493
name: K8s e2e tests
@@ -145,22 +144,19 @@ jobs:
145144
AWS_ROLE_ARN: ${{ secrets.AWS_ROLE_ARN }}
146145
AWS_VPC_SUBNET: ${{ secrets.AWS_VPC_SUBNET }}
147146

148-
# TODO: enable back when tackling <https://new-relic.atlassian.net/browse/NR-428719>
149-
# onhost_canaries:
150-
# uses: ./.github/workflows/component_onhost_canaries.yml
151-
# needs: [ build-packages ]
152-
# with:
153-
# environment: staging
154-
# operation: apply
155-
# secrets:
156-
# AWS_ROLE_ARN: ${{ secrets.AWS_ROLE_ARN }}
157-
# AWS_VPC_SUBNET: ${{ secrets.AWS_VPC_SUBNET }}
147+
onhost_canaries:
148+
uses: ./.github/workflows/component_onhost_canaries.yml
149+
needs: [ build-packages ]
150+
with:
151+
environment: staging
152+
operation: apply
153+
secrets:
154+
AWS_ROLE_ARN: ${{ secrets.AWS_ROLE_ARN }}
155+
AWS_VPC_SUBNET: ${{ secrets.AWS_VPC_SUBNET }}
158156

159157
notify-failure:
160158
if: ${{ always() && failure() }}
161-
#needs: [ onhost-e2e, k8s_canaries, security-image, security-source-code, build-image, build-packages, k8s-e2e-tests ]
162-
# TODO: and onhost-e2e back when tackling <https://new-relic.atlassian.net/browse/NR-428719> and also add on-host canaries
163-
needs: [ k8s_canaries, security-image, security-source-code, build-image, build-packages, k8s-e2e-tests ]
159+
needs: [ onhost-e2e, k8s_canaries, security-image, security-source-code, build-image, build-packages, k8s-e2e-tests ]
164160
runs-on: ubuntu-latest
165161
steps:
166162
- name: Notify failure via Slack

test/onhost-canaries/terraform/backend.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
aws = {
44
source = "hashicorp/aws"
5-
version = ">= 5.48"
5+
version = ">= 5.48, < 6.0"
66
}
77

88
newrelic = {

test/provision/terraform/terraform.backend.tf.dist

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,11 @@ terraform {
88
key = "agent_control-pipeline/TAG_OR_UNIQUE_NAME"
99
region = "us-east-2"
1010
}
11-
}
11+
12+
required_providers {
13+
aws = {
14+
source = "hashicorp/aws"
15+
version = ">= 5.48, < 6.0"
16+
}
17+
}
18+
}

0 commit comments

Comments
 (0)