Skip to content

Revert 35 revert 33 build docker for e2e #36

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

Merged
merged 3 commits into from
Apr 11, 2024

Conversation

harrryr
Copy link
Contributor

@harrryr harrryr commented Apr 9, 2024

Issue #, if available:
Had to revert this PR due to syntax error in the publish metric step. Reposting the change with error fixed

Test run: https://github.com/aws-observability/aws-application-signals-test-framework/actions/runs/8621464546
Also checked that the metric is present in the console
Test run after switching to ECR: https://github.com/aws-observability/aws-application-signals-test-framework/actions/runs/8644705184

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@harrryr harrryr force-pushed the revert-35-revert-33-build-docker-for-e2e branch from 3717a52 to 0597099 Compare April 9, 2024 20:06
@harrryr harrryr force-pushed the revert-35-revert-33-build-docker-for-e2e branch from a30bc04 to 0597099 Compare April 9, 2024 20:39
Copy link
Contributor

@zzhlogin zzhlogin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a general question regarding using container for Github workflow:
The goal of E2E tests is making sure the ADOT Java is working as expected in both EC2 and EKS, which mimic customer behaviours while using ADOT Java. In this PR, we are creating container for workflow runs, does this mean any steps defined within that job will be executed within the context of this container? In this case, we are not running everything from scratch in EC2/EKS, where customer might not do the same. Will this conflict the original goal?

@majanjua-amzn
Copy link
Contributor

I have a general question regarding using container for Github workflow: The goal of E2E tests is making sure the ADOT Java is working as expected in both EC2 and EKS, which mimic customer behaviours while using ADOT Java. In this PR, we are creating container for workflow runs, does this mean any steps defined within that job will be executed within the context of this container? In this case, we are not running everything from scratch in EC2/EKS, where customer might not do the same. Will this conflict the original goal?

@zzhlogin the container Harry is adding here only installs things that we can assume customers will have installed already and without error, for example, git, eksctl, kubectl, awscli, as they would not be able to interact with their EKS cluster or EC2 instance effectively without them. These packages are also not core to what we are trying to test, which is the enablement of Application Signals on these platforms. Checking whether kubectl can be installed is not part of the scope of the test and has only been a blocker/transient issue that stops the actual test from running.

@harrryr
Copy link
Contributor Author

harrryr commented Apr 10, 2024

I have a general question regarding using container for Github workflow: The goal of E2E tests is making sure the ADOT Java is working as expected in both EC2 and EKS, which mimic customer behaviours while using ADOT Java. In this PR, we are creating container for workflow runs, does this mean any steps defined within that job will be executed within the context of this container? In this case, we are not running everything from scratch in EC2/EKS, where customer might not do the same. Will this conflict the original goal?

The customer behavior we are trying to mimic is the act of deploying a sample app and installing app-signals on it. Those are running in the EKS cluster and EC2 environment which are deployed through Terraform. The docker container is for running the github workflow, which isn't part of the customer behavior mimicry but more for just running the E2E tests and it's not something we are expecting the customers to have.

@harrryr harrryr force-pushed the revert-35-revert-33-build-docker-for-e2e branch from e1a8849 to 42134a5 Compare April 11, 2024 09:48
@harrryr harrryr requested a review from majanjua-amzn April 11, 2024 18:29
@harrryr harrryr force-pushed the revert-35-revert-33-build-docker-for-e2e branch from 3e05b71 to 42134a5 Compare April 11, 2024 18:47
Copy link
Contributor

@majanjua-amzn majanjua-amzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed offline with Harry that a test run with a forced failure still behaves appropriately and sends failure metrics for our alarms.

@harrryr harrryr merged commit f921ad9 into main Apr 11, 2024
@harrryr harrryr deleted the revert-35-revert-33-build-docker-for-e2e branch April 11, 2024 18:51
zzhlogin added a commit to aws-observability/aws-otel-python-instrumentation that referenced this pull request Apr 12, 2024
*Issue #, if available:*

Improve Python E2E tests with following changes and align with Java:
1. Run E2E in docker contianer, matching with Java PR:
aws-observability/aws-application-signals-test-framework#36
2. Append testing id to sample-app-namespace, matching with Java PR:
aws-observability/aws-application-signals-test-framework#38

Test workflow run:
1.
EC2:https://github.com/aws-observability/aws-otel-python-instrumentation/actions/runs/8666582644
2. EKS:
https://github.com/aws-observability/aws-otel-python-instrumentation/actions/runs/8667061312


By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
zzhlogin pushed a commit to zzhlogin/aws-application-signals-test-framework that referenced this pull request Jun 6, 2024
…-35-revert-33-build-docker-for-e2e

Revert 35 revert 33 build docker for e2e
zzhlogin pushed a commit to zzhlogin/aws-application-signals-test-framework that referenced this pull request Jun 6, 2024
…-35-revert-33-build-docker-for-e2e

Revert 35 revert 33 build docker for e2e
zzhlogin pushed a commit to zzhlogin/aws-application-signals-test-framework that referenced this pull request Jun 6, 2024
…-35-revert-33-build-docker-for-e2e

Revert 35 revert 33 build docker for e2e
zzhlogin pushed a commit to zzhlogin/aws-application-signals-test-framework that referenced this pull request Jun 6, 2024
…-35-revert-33-build-docker-for-e2e

Revert 35 revert 33 build docker for e2e
georgeboc pushed a commit to georgeboc/aws-application-signals-test-framework that referenced this pull request Jul 8, 2024
*Issue #, if available:*

1. Change the Histogram metric name first character to be upper case.
2. Add resource detectors into resource creation.
3. Add opentelemetry-distro pkg into project dependency.


By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.

---------

Co-authored-by: Prashant Srivastava <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants