Skip to content

Conversation

@prateekchaudhry
Copy link
Owner

Summary

testing go 1.18 build with ubuntu 22.04

Implementation details

Testing

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.

fierlion and others added 30 commits March 23, 2022 23:13
Apply minimumCPUShare to both task and container CPU shares
* Support Unified Cgroups (cgroups v2)

closes aws/containers-roadmap#1535
closes aws#3117

This adds support for task-level resource limits when running on unified
cgroups (aka cgroups v2) with the systemd cgroup driver.

Cgroups v2 has introduced a cgroups format that is not backward compatible
with cgroups v1. In order to support both v1 and v2, we have added a config
variable to detect which cgroup version the ecs agent is running with.
The containerd/cgroups library is used to determine which mode it is using
on agent startup.

Cgroups v2 no longer can provide per-cpu usage stats, so this validation
was removed since we never used it either.

* wip

* update cgroups library with nil panic bugfix

* Initialize and toggle cgroup controllers
Sending to an unbuffered channel without a select and without a guarantee that something
will receive from that channel, is a recipe for a gourutine leak.
Make the channel buffered to avoid it.

Also, with a buffered channel, no need to spin up a new goroutine
to begin with. Just send right after channel creation.
Credentials were not being rotated properly on ECS-A Windows instances.
This patch addresses the issue by using the correct file-paths for
credentials on supported platforms. The credential chain hierarchy is
also updated on ECS-A windows to ensure that credential chain is not
broken for other launch types.

Signed-off-by: Siddharth Vinothkumar <[email protected]>
Add log message when receiving error during cached image inspection
Stop container when dependencies are non-resolvable
* Resolve go modules/vendor conflicts and add dockerfree-all make target

* add build-time configuration and update scripts/comments
Note -- windows tests failing due to unrelated volume size change.
* separated the merge-build and pr-build buildspecs

* aim the codebuild stack at the right buildspec

* updated the buildspecs to release and sign arm variants as well

* updated the build infrastructure to build for arm as well as amd archs

* added a note about adding more artifacts to be signed and copied

* fixing a couple of other things found in review

* added a bucket stack with a bucket policy

* missed a letter in the arm build naming

* added a missed file in the build directory structure

* updated the descriptions for all of the codebuild projects
…ot being found (aws#3210)

* updated the build infrastructure to build for arm as well as amd archs

* added a note about adding more artifacts to be signed and copied

* fixing a couple of other things found in review

* updated the descriptions for all of the codebuild projects

* added a buildspec to pull logs from cloudwatch logs and put them in s3

* give cloudwatch access to write logs to the release bucket

* added a logs puller codebuild project that just gets logs from the preceding steps

* refactored the adding a new artifact steps to be less wall-of-text-y

* resolved an issue where the buildspec wouldn't be found by actions not pulling the whole source
chienhanlin and others added 30 commits May 31, 2022 20:56
This reverts commit 6f0f7c5e90e8111329e2baa3bc53c32674f4ce58.
This reverts commit 0a867c7710ce53ea3134be9f85eac19fdc79412b.
…h0 if none can be found (aws#498)

check ipv4 routes for default network interface, only fall back to eth0 if none can be found
Merge latest ecs-init & initAgentIntegration into dev
* added a dockerfile that can build a minimal signing environment image

* added a buildspec that tells the codebuild project how to build a minimal signing image

* added a stack that builds a minimal image, puts it in ecr and periodically triggers if selected

* added an option to provide a custom signer image if necessary

* added some details about the minimal build as well as details about the options

* had the wrong role in the wrong place ☠️
1. Adds debug logging for SMB mapping for the command
that is being executed. This command will not not log the
creds used to attach the mapping.

2. Logs the ps output stderr/stdout from the command on error.

Signed-off-by: Justin Terry <[email protected]>
…ainers. (#3)

* First cut of the changes.

* Intermediate check-in before refactoring to hashing the paths.

* Refactored the code to use a concatenated hashed value for the CredSpec filename.

* Cleaning the cruft.

* Simplified the code a bit and incorporated the first round of PR review comments.

* Arranged the imports as per the language spec.

* Fixed a broken test.

* Fixed a few more broken tests.

* Refactored the code to only use the credspecContainer Map.

* Fixed more references and tests.

* Fixed more tests.

* Fixed more tests.

* Fixed more tests.

* Fixed more tests.

* Improved the documentation for the member variable.

* Incorporated some review comments.

* Removed the unnecessary method and cleaned up the code a bit.

* Some more clean-up of the code.

* Tidying the imports.
* First cut of the changes.

* Intermediate check-in before refactoring to hashing the paths.

* Refactored the code to use a concatenated hashed value for the CredSpec filename.

* Cleaning the cruft.

* Simplified the code a bit and incorporated the first round of PR review comments.

* Arranged the imports as per the language spec.

* Fixed a broken test.

* Fixed a few more broken tests.

* Refactored the code to only use the credspecContainer Map.

* Fixed more references and tests.

* Fixed more tests.

* Fixed more tests.

* Fixed more tests.

* Fixed more tests.

* Improved the documentation for the member variable.

* Incorporated some review comments.

* Removed the unnecessary method and cleaned up the code a bit.

* Some more clean-up of the code.

* Tidying the imports.

* Tidying the imports.
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.