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

Update to 1.17.3 #1324

Merged
merged 31 commits into from
Apr 6, 2018
Merged

Update to 1.17.3 #1324

merged 31 commits into from
Apr 6, 2018

Conversation

yhlee-aws
Copy link
Contributor

@yhlee-aws yhlee-aws commented Mar 30, 2018

Summary

Agent 1.17.3 release

Implementation details

Merging dev branch into master for the release

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:

Description for the changelog

Licensing

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

adnxn and others added 29 commits March 8, 2018 18:00
This change adds Hostname and ExtraHosts to the pause container's docker
config and host config respectively. This allows awsvpc tasks to have
/etc/hosts entries for the ENI private ips
This commit contains the model changes and functional tests for the new Task Definition fields for shmsize and tmpfs.

This addresses the following issues:
* aws#787
* aws#469
4.9 reached EOL in 2016 and is not available on Dockerhub anymore.
Update the base image to 6.4 to fix this.
We're at least 2 years behind in this repo. Updated gomock to latest
commit.
[1] Forcefully terminate connection if there's any error with the
SetReadDeadline() call. Not doing this leads to unpredictable behavior
with stale websocket connections.

Since SetWriteDeadline always returns `nil`, errors from that are not
handled.

[2] Move WebsocketConn to its own package. This allows us to mock it
out in the "wsclient" package and write unit tests on it.
Invoke 'goimports' while generating sdk artifacts. Generated targets
were missing some imports and this fixes that issue.

Also, refactored the code a bit to reduce duplication.
Added missing copyright headers for a couple of files
…data fields

The task struct already has this information, so it's just a matter
of plumbing it through.

This commit also fixes some typos.
Previously the waitForContainerTransition will wait for all the
transitions to be done before the container can move to next state. This
PR changes the waitForContainerTransition to only wait for no more than
one transition to be done so that the first container that done the
transition doesn't need to wait for other containers.
@yhlee-aws yhlee-aws requested a review from adnxn March 30, 2018 17:12
CHANGELOG.md Outdated
* Enhancement - Expose task definition family and task definition revision in container metadata file [#1295](https://github.com/aws/amazon-ecs-agent/pull/1295)
* Enhancement - Fail image pulls if there's inactivity during image pull progress [#1290](https://github.com/aws/amazon-ecs-agent/pull/1290)
* Bug - Fixed a bug where a stale websocket connection could linger [#1310](https://github.com/aws/amazon-ecs-agent/pull/1310)
* Enhancement - Parallize the container transition in the same task [#1305](https://github.com/aws/amazon-ecs-agent/pull/1306)
Copy link
Contributor

@adnxn adnxn Mar 30, 2018

Choose a reason for hiding this comment

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

nit: please swap ordering on the last two items,Bug should come at the end of the list

@adnxn
Copy link
Contributor

adnxn commented Mar 30, 2018

anddd we're missing one more PR > #1321

Copy link
Contributor

@aaithal aaithal left a comment

Choose a reason for hiding this comment

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

It seems like changes to the VERSION file and agent/version/version.go (unless my search find was done incorrectly). Can you please double check that? Example: edc3e26

CHANGELOG.md Outdated
@@ -1,5 +1,12 @@
# Changelog

## 1.17.3-dev
Copy link
Contributor

Choose a reason for hiding this comment

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

Please make sure that -dev is deleted from this line

Test the start container time cost on windows instances with
various parameters (instance type, container memory, container
cpu, etc.), and set the default startContainerTimeouts value for
windows accordingly.

Also make the startContainerTimeouts configurable (via ECS_CONTAINER_START_TIMEOUT
environment variable) by users.
@yhlee-aws yhlee-aws force-pushed the dev branch 3 times, most recently from f547308 to e706a90 Compare March 30, 2018 19:54
Copy link
Contributor

@aaithal aaithal left a comment

Choose a reason for hiding this comment

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

:shipit:

Copy link

@richardpen richardpen left a comment

Choose a reason for hiding this comment

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

nit: can we use the same format for the commit message to make it more obvious of the release? eg; "update to 1.17.3"

@aaithal aaithal added this to the 1.17.3 milestone Mar 30, 2018
@yhlee-aws yhlee-aws changed the title Update Agent to 1.17.3 Update to 1.17.3 Mar 30, 2018
Copy link
Contributor

@jhaynes jhaynes left a comment

Choose a reason for hiding this comment

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

🐑 🎆

@@ -1,5 +1,13 @@
# Changelog

## 1.17.3
* Enhancement - Distinct startContainerTimeouts for windows/linux, introduce a new environment variable `ECS_CONTAINER_START_TIMEOUT` to make it configurable [#1321](https://github.com/aws/amazon-ecs-agent/pull/1321)
* Enhancement - Add support for containers to inhereit ENI private DNS hostnames for `awsvpc` tasks [#1278](https://github.com/aws/amazon-ecs-agent/pull/1278)

Choose a reason for hiding this comment

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

Typo: s/inhereit/inherit/

@jhaynes jhaynes merged commit 159ae5c into aws:master Apr 6, 2018
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.