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

Upgrading vendored AWS SDK release to v1.8.19 #786

Merged
merged 1 commit into from
May 11, 2017
Merged

Conversation

petderek
Copy link
Contributor

@petderek petderek commented May 2, 2017

Summary

Update the vendored AWS SDK

Implementation details

  • Updated dependencies using godep. (See Godeps.json)
  • Regenerated client code

Testing

  • Builds on Linux (make release)
  • Builds on Windows (go build -out amazon-ecs-agent.exe ./agent)
  • Unit tests on Linux (make test) pass
  • Unit tests on Windows (go test -timeout=25s ./agent/...) pass
  • Integration tests on Linux (make run-integ-tests) pass
  • Integration tests on Windows (.\scripts\run-integ-tests.ps1) pass
  • Functional tests on Linux (make run-functional-tests) pass
  • Functional tests on Windows (.\scripts\run-functional-tests.ps1) pass

New tests cover the changes: no

Description for the changelog

Update AWS SDK release v1.8.19

Licensing

This contribution is under the terms of the Apache 2.0 License: yes

@petderek petderek requested review from jahkeup and richardpen May 2, 2017 22:34
@@ -39,7 +41,7 @@ var typesOnlyTplAPI = template.Must(template.New("api").Parse(`
{{ end }}
`))

const copyrightHeader = `// Copyright 2014-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
const copyrightHeader = `// Copyright 2014-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Copy link
Contributor

Choose a reason for hiding this comment

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

minor: Can you modify this to get the year string in code so that we don't have to update this every year?

@aaithal
Copy link
Contributor

aaithal commented May 8, 2017

@petderek can you also verify that on a long running Agent built from this code, metrics continue to show up in the ECS console?

@@ -41,7 +42,7 @@ var typesOnlyTplAPI = template.Must(template.New("api").Parse(`
{{ end }}
`))

const copyrightHeader = `// Copyright 2014-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
const copyrightHeaderTemplate = `// Copyright 2014-%v Amazon.com, Inc. or its affiliates. All Rights Reserved.
Copy link
Contributor

@aaithal aaithal May 8, 2017

Choose a reason for hiding this comment

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

Can you change to %d instead of %v so that it's more specific?

@petderek
Copy link
Contributor Author

petderek commented May 9, 2017

@aaithal I verified metrics are working after letting the agent run overnight and launching some tasks just now. Did you have any other concerns with metrics?

@aaithal
Copy link
Contributor

aaithal commented May 9, 2017

@petderek thanks. Nope, just wanted to verify that they show up.

@@ -13,4 +13,4 @@

package model

//go:generate go run ../../gogenerate/awssdk.go -typesOnly=false
Copy link
Contributor

@aaithal aaithal May 9, 2017

Choose a reason for hiding this comment

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

Where is the codegen tag being used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The SDK team started using the codegen tag in their generators, so we need this in order to run the generate commands. I put a +build codegen in awssdk.go as well.

Copy link
Contributor

Choose a reason for hiding this comment

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

Got it. In the spirit of "self documenting code", can you either modify the commit message or add a comment to state the same?

* Refactor http request code to use public API
* Adding "codegen" build constraint
* Regenerating ECS and ECR client code
* Minor fixes
@petderek petderek merged commit 55bf3dd into aws:dev May 11, 2017
@samuelkarp samuelkarp added this to the 1.14.2 milestone May 25, 2017
@adnxn adnxn mentioned this pull request May 26, 2017
@petderek petderek deleted the aws-sdk branch August 15, 2017 19:14
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.

4 participants