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

V1.14.2 release #821

Merged
merged 51 commits into from
Jun 7, 2017
Merged

V1.14.2 release #821

merged 51 commits into from
Jun 7, 2017

Conversation

adnxn
Copy link
Contributor

@adnxn adnxn commented May 26, 2017

richardpen and others added 30 commits March 31, 2017 18:30
This test regressed with PR aws#706. The original intent of the test was to test
if  gets exercised while a task is being cleaned up. This
was accomplished by sending events to the engine's container event stream while
cleanup was in progress using the mock client's  method.

However, we lost this part with PR#706. This commit adds that code back and
removes some of the unnecessary code in .
This fixes all the outstanding TODO's to migrate the test code
to using MinTimes instead of AnyTimes.

Should resolve aws#429
…l test

There's no need of this functional test for the following reasons:
1. TestRemoveEvents unit test covers this code path
2. TestTaskCleanupDoesNotDeadlock is leading to lots of false-negatives
3. Even when TestTaskCleanupDoesNotDeadlock succeeds, it's not guaranteed
   to execise the discardEventsUtil() method

This should obfuscate the need for PR aws#749
This helps break up the humongous types.go file into more distinct, type-specific
files. There are also minor renaming changes here, where a C_STYLE_CONST was
renamed as a GoStyleConst and comments have been added as per Lint guidelines
1. Removed Container.SentStatus
2. Removed Task.UpdateKnownStatusAndTime as it's functionally equivalent to Task.SetKnownStatus
3. Moved TaskStatus methods from containerstatus to taskstatus
This helps in making it explicit that accessing these fields without
locks is unsafe and hence discouraged
DockerAuth returned as an empty object(which is not nil) when it is not
set from environment variable, which won't be overrides from contents
read from file.
Multiple execution of recent windows unit test executions have resulted in
timeout errors. Timing recent manual unit test executions on a windows platforms
shows that they took between 19-23 seconds, which is really close to the 25s
threshold. Increasing the timeout to 40s so that we don't run into
timeout exceeded panic while executing windows unit tests
The task state in dockerstate and managed task in task manager are
modified when task is added and cleaned up, both are protected by
processTasks.Lock. But in cleanup the task state is modified outside
the lock which could cause inconsistent state of the task in rare case.
…hods.

This method has now been broken into:
i. startContainerTransitions
ii. onContainersUnableToTransitionState and
iii. waitForContainerTransitions

The main aim is to make this method more readable and testable. On that note,
multiple unit tests have also been added to test each method that constitutes
progressContainers()
This change is needed to support alternative URLs for per-region
bucket support. The validation of Host and Location provide no extra
security guarantees as the update's checksum is transmitted along with
the location across a trusted communication channel and used to verify
the download.
Testify's assertions clean this up considerably. The require.* funcs
are needed to stop the test on assert failures. assert.* funcs are
used only where the test can continue regardless of the assertion,
despite the test being marked as a FAILure.
This patch improves clarity to the existing `ECS_INSTANCE_ATTRIBUTES`.
It also points to additional documentation on AWS docs.

Signed-off-by: Vinothkumar Siddharth <sidvin@amazon.com>
* Refactor http request code to use public API
* Adding "codegen" build constraint
* Regenerating ECS and ECR client code
* Minor fixes
alberts and others added 14 commits May 18, 2017 09:34
This change uses a single channel to propagate task and container
transition events from the engine. Using a single channel forces
container events to preceed task events for a given task transition.
This patch inspects the cleanup and resolves the inherent concurrent map write
issue reported. An unit test has been added to increase confidence in the fix.

Fixes aws#707

Signed-off-by: Vinothkumar Siddharth <sidvin@amazon.com>
@aaithal aaithal added this to the 1.14.2 milestone May 26, 2017
CHANGELOG.md Outdated
* Bug - Added checks for circular task dependencies. [#796](https://github.com/aws/amazon-ecs-agent/pull/796)
* Bug - Fixed an issue with Docker auth configuration overrides [#751](https://github.com/aws/amazon-ecs-agent/pull/751)
* Bug - Fixed a race condition in the task clean up code path. [#737](https://github.com/aws/amazon-ecs-agent/pull/737)
* Bug - Upgrade AWS SDK to v1.8.19 to include SDK bugfixes [#786](https://github.com/aws/amazon-ecs-agent/pull/786)
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this is a bug. In fact, I don't think we should call it out at all as it's not a customer facing thing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@aaithal which one exactly?

Copy link
Contributor

Choose a reason for hiding this comment

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

Bug - Upgrade AWS SDK to v1.8.19 to include SDK bugfixes [#786]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

gotcha. removed.

CHANGELOG.md Outdated
* Bug - Fixed a race condition in the task clean up code path. [#737](https://github.com/aws/amazon-ecs-agent/pull/737)
* Bug - Upgrade AWS SDK to v1.8.19 to include SDK bugfixes [#786](https://github.com/aws/amazon-ecs-agent/pull/786)
* Bug - Fixed an issue involving concurrent map writes [#743](https://github.com/aws/amazon-ecs-agent/pull/743)

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, you're missing the Enhancement to introspection API for querying task id's with short container ids #813

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added.

@adnxn adnxn force-pushed the v1.14.2-stage branch 3 times, most recently from 89d2fc6 to 3184b87 Compare May 26, 2017 18:19
@adnxn adnxn requested a review from richardpen May 26, 2017 18:55
@adnxn adnxn changed the title V1.14.2 stage V1.14.2 release May 26, 2017
@vsiddharth
Copy link
Contributor

LGTM

@adnxn adnxn merged commit 35acca3 into aws:master Jun 7, 2017
@adnxn adnxn deleted the v1.14.2-stage branch March 14, 2018 17:46
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.

9 participants