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

Integration test #270

Merged
merged 23 commits into from
Dec 22, 2020
Merged

Integration test #270

merged 23 commits into from
Dec 22, 2020

Conversation

bhautikpip
Copy link
Contributor

Issue #, if available:

Description of changes:

  1. Adds integration test workflow for Go SDK
  2. Modified ecr sample app image publish workflow to point to local module
  3. Minor changes to successfully execute both workflows

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@bhautikpip bhautikpip requested a review from anuraaga December 11, 2020 22:15
Copy link
Contributor

@willarmiros willarmiros left a comment

Choose a reason for hiding this comment

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

Generally LGTM, just a couple questions for my own knowledge.


steps:
- name: Checkout X-Ray Go SDK
uses: actions/checkout@v2
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this actually build the SDK source code? If not, where does this happen?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This step is for checking out the code. It checks out the code from master branch and this step runs on Github's runner. (ubuntu-latest)

@@ -0,0 +1,5 @@
region = "us-west-2"

bucket_key = "beanstalk/deploy.zip"
Copy link
Contributor

Choose a reason for hiding this comment

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

Where do we put the ZIP in this bucket?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good question. It picks up the zip from ./terraform directory and I have mentioned that in source_path of the bucket.

@@ -0,0 +1,140 @@
name: Integration Testing
on: push
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want this running on PRs as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I feel we can right now run on push only changes and then we can introduce on PRs as well. I think that is something we can wait on and collect some data points on what would be more useful. Ideally running on PR would be causing more stress on single aws account (in terms of ELB and other resources) because tests will run on every commit.

run: rsync -r * sample-apps/http-server/aws-xray-sdk-go --exclude sample-apps/

- name: Zip up the deployment package
run: zip -r deploy.zip . -x '*.git*'
Copy link
Contributor

Choose a reason for hiding this comment

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

No big deal, but for the future you can consider using git archive

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good call. Thanks!

@bhautikpip bhautikpip merged commit eed2b30 into aws:master Dec 22, 2020
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.

2 participants