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

failing all testcases #152

Open
wants to merge 29 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
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
10 changes: 9 additions & 1 deletion .github/workflows/run_e2e_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,18 @@ jobs:
files: |
${{ inputs.test_report_filename }}

stop_executor_instances:
name: stop test executor instances
if: always()
uses: ./.github/workflows/run_task.yml
with:
container_make_target: "terraform/ec2-stop-instances/stop"
secrets: inherit

tear_down_test_executor_instances:
name: Tear down test executor instances
needs: report_test_results
uses: ./.github/workflows/run_task.yml
with:
container_make_target: "terraform/ec2-test-executors/clean PRE_RELEASE_NAME=${{ inputs.gh_release_name }}"
container_make_target: "terraform/ec2-test-executors/stop PRE_RELEASE_NAME=${{ inputs.gh_release_name }}"
secrets: inherit
4 changes: 2 additions & 2 deletions integration-tests/test-suite/lib/waitTimes.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ module.exports = {
*
* This is used both for the Logs API (see logsApi.js) and querying NerdGraph (see nerdGraph.js)
*/
HTTP_RETRY_COUNT: 3,
HTTP_RETRY_COUNT: 1,

/**
* How long to wait between retrying a query -- either retrying because of an HTTP error (see retryingAxios.js),
* or because of an error from NerdGraph (see nerdGraph.js)
*/
WAIT_BETWEEN_QUERY_RETRIES: 5 * ONE_SECOND,
WAIT_BETWEEN_QUERY_RETRIES: 3 * ONE_SECOND,

/**
* How long it could take our pipeline to process data and get it into NRDB.
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/test-suite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"description": "Validates fluent bit end-to-end with several configurations",
"scripts": {
"test": "jest --verbose"
"test": "jest --verbose --runInBand"
},
"author": "[email protected]",
"license": "Apache-2.0",
Expand Down
4 changes: 4 additions & 0 deletions terraform/ec2-instances-creator/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,8 @@ module "ec2_instance" {
instance_type = var.instance_type
fb_package_name = each.value.targetPackageName
})
}

output "instance_ids" {
value = { for k, v in module.ec2_instance : k => v.id }
}
7 changes: 7 additions & 0 deletions terraform/ec2-stop-instances/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Terraform-stop
.PHONY: stop
stop:
terraform init -reconfigure && \
terraform refresh
aws ec2 stop-instances --region us-east-2 --instance-ids $(terraform output -json instance_ids | jq -r '.[]' | paste -sd ' ' -) ;
@echo "EC2 instances stopped."
10 changes: 10 additions & 0 deletions terraform/ec2-test-executors/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,13 @@ clean: backend vars generateMatrices
terraform destroy -auto-approve -var-file="variables.tfvars"
@echo "Removing Terraform backend file ${TERRAFORM_PROJECT}/terraform.backend.tf"
@rm "./terraform.backend.tf"


# Terraform-stop
.PHONY: stop
stop: backend vars generateMatrices
terraform init -reconfigure && \
terraform apply -auto-approve -var-file="variables.tfvars" && \
terraform refresh
aws ec2 stop-instances --region us-east-2 --instance-ids $(terraform output -json instance_ids | jq -r '.[]' | paste -sd ' ' -) ;
@echo "EC2 instances stopped."
4 changes: 4 additions & 0 deletions terraform/outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
output "instance_ids" {
description = "A map of instance IDs created by the ec2_instance module"
value = { for k, v in module.ec2_instance : k => v.id }
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions versions/ubuntu_22_jammy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ osVersion: jammy
packages:
- arch: amd64
ami: ami-03a03b8680a3d588e
- arch: arm64
ami: ami-0058b7812506d8659
#- arch: arm64
# ami: ami-0058b7812506d8659
File renamed without changes.
Loading