Skip to content

cdk-support-dev branch merged to develop branch#3146

Merged
moelasmar merged 165 commits intoaws:cdk-support-devfrom
moelasmar:cdk-support-dev-merged-to-develop
Aug 18, 2021
Merged

cdk-support-dev branch merged to develop branch#3146
moelasmar merged 165 commits intoaws:cdk-support-devfrom
moelasmar:cdk-support-dev-merged-to-develop

Conversation

@moelasmar
Copy link
Contributor

Which issue(s) does this change fix?

Why is this change necessary?

How does it address the issue?

What side effects does this change have?

Checklist

  • Add input/output type hints to new functions/methods
  • Write design document (Do I need to write a design document?)
  • Write unit tests
  • Write/update functional tests
  • Write/update integration tests
  • make pr passes
  • make update-reproducible-reqs if dependencies were changed
  • Write documentation

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

aahung and others added 30 commits April 14, 2021 16:59
* chore: Use BUILD_TAG instead of JENKINS_URL to identify Jenkins env

* Keep JENKINS_URL
* Updated Deprecated compile to implementation

* Updated Tabs to Spaces

* Updated for Kotlin

* Updated More Tabs to Spaces
* Added Auto Create ECR Design Doc

* Updated Format

* Addressed feedback
When validating the sam template, SAM CLI requires credentials to get
the IAM Manged Policies. SAM Translator also requires the region in order
to figure out the parition. Previously, SAM Translator assumed this to be
on the Env but SAM CLI could get this information from a command line argument
or a profile. This commit passes the boto_session into the SAM Translator lib
(v1.35.0 or later), so that SAM Translator can figure out the partition from the
information passed to SAM CLI.

Co-authored-by: Jacob Fuss <jfuss@users.noreply.github.com>
Co-authored-by: Mathieu Grandis <73313235+mgrandis@users.noreply.github.com>
Co-authored-by: Xia Zhao <xazhao@amazon.com>
…ws#2821)

* [Refactor] extract git-clone functionality out of InitTemplates class to its own class

* apply review comments

* typo

* apply review comments
* chore: add command line options to pyinstaller build script

* Update quotes

* fix the dist folder name

* update logs

* trigger appveyor build
Co-authored-by: Slava Senchenko <sencslav@amazon.com>
* add github actions to automate our github issue workflow

* reformat

* update name format

* update response message to be more precise

* updated with the correct sam bot login name

* updated with the correct token name

* updated label name and bot name

Co-authored-by: Mathieu Grandis <73313235+mgrandis@users.noreply.github.com>
* Point numpy version to <1.19 to avoid PEP 317 failure

* Update integ test python requirements which contain numpy

* Fixing to numpy 1.20.2

* Revert "Fixing to numpy 1.20.2"

This reverts commit a03f4d7.

* Fixing numpy version to <1.20.3
Issue: aws#2355
Added integration tests for `validate` command

Co-authored-by: Slava Senchenko <sencslav@amazon.com>
Co-authored-by: _sam <3804518+aahung@users.noreply.github.com>
* refactor logs command library

* re-organize due to click usage

* address comments

* adding pylint disable for console consumer

* make pylint happy with python 3.6

Co-authored-by: Mathieu Grandis <73313235+mgrandis@users.noreply.github.com>
…#2864)

* Enable --app-template argument for Image package-type while generating a new SAM project using 'sam init'

* Fix the exception message

* normalize pathes in UT to pass on windows

* normalize project-template local path
* feat: Allow dir_checksum() to accept a ignore_list

* feat: Ignore .aws-sam when calculate cache md5
… intrinsics) (aws#2879)

* fix: Fix crash when nested CFN stack has dict TemplateURL
* get questions' default answers from toml

* make black happy

* add more docs

* rename question's attribute 'default_from_toml' to 'defaultFromToml' and rename 'valueof' to 'key' and add some docs

* Add preload_value

* Allow to pass toml file to interactive flow run()

* Update related classes to utilize proload value context object

* Update test

* Add missing docstring

* Remove samconfig change

* Rename extra_context to context because it is required field now

* Remove toml logics from this PR

* Update comment

Co-authored-by: Sam Liu <xinhol@amazon.com>
Co-authored-by: _sam <3804518+aahung@users.noreply.github.com>
* chore: updating version of watchdog.

Co-authored-by: Tarun Mall <tarun@amazon.noreply.github.com>
* chore: Update aws_lambda_builders to 1.4.0

* Update integration tests for new maven behavior

* Add integ test for PEP 600 tags
aws#2883)

* Adds missing unit tests for LayerBuildDefinition in build_graph

* fix black formatting
* samconfig debug level logging fixed; documentation updated

* integration tests fix

* help text improved

Co-authored-by: Slava Senchenko <sencslav@amazon.com>
wchengru and others added 7 commits August 5, 2021 17:33
* chore: fix pylint failures in python3.9

* chore: fix pylint failures in python3.9

* chore: bump pylint version to 2.9.0

* fix typo

* Add disabling reasons on new rules
…rror' (aws#3043)

* add sample payload for 'sam local generate-event stepfunctions error'

* add better default for error
…pport-dev-merged-to-develop

# Conflicts:
#	appveyor.yml
#	mypy.ini
#	samcli/__init__.py
#	samcli/commands/_utils/template.py
#	samcli/commands/build/build_context.py
#	samcli/commands/build/command.py
#	samcli/commands/deploy/deploy_context.py
#	samcli/commands/deploy/guided_context.py
#	samcli/commands/init/__init__.py
#	samcli/commands/init/init_templates.py
#	samcli/commands/local/cli_common/invoke_context.py
#	samcli/commands/local/invoke/cli.py
#	samcli/commands/local/start_api/cli.py
#	samcli/commands/local/start_lambda/cli.py
#	samcli/commands/package/command.py
#	samcli/lib/package/artifact_exporter.py
#	samcli/lib/providers/sam_function_provider.py
#	samcli/lib/providers/sam_stack_provider.py
#	samcli/lib/utils/git_repo.py
#	samcli/lib/utils/hash.py
#	tests/integration/deploy/test_deploy_command.py
#	tests/testing_utils.py
#	tests/unit/commands/buildcmd/test_build_context.py
#	tests/unit/commands/deploy/test_deploy_context.py
#	tests/unit/commands/deploy/test_guided_context.py
#	tests/unit/commands/init/test_cli.py
#	tests/unit/commands/init/test_templates.py
#	tests/unit/commands/local/cli_common/test_invoke_context.py
#	tests/unit/commands/local/invoke/test_cli.py
#	tests/unit/commands/local/lib/test_sam_function_provider.py
#	tests/unit/commands/local/start_api/test_cli.py
#	tests/unit/commands/local/start_lambda/test_cli.py
#	tests/unit/commands/samconfig/test_samconfig.py
#	tests/unit/lib/build_module/test_build_graph.py
#	tests/unit/lib/utils/test_git_repo.py
#	tests/unit/local/lambdafn/test_runtime.py
"""
default_stack_name = self.stack_name
default_region = self.region or get_session().get_config_variable("region") or "us-east-1"
default_stack_name = self.stack_name or "sam-app"
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: We probably don't need to set the default value "sam-app" as I remember it is set somewhere before this step. But it shouldn't hurt to also have it here for now. My thought is that the default stack name is specific to which IaC platform is being used, so it should be set by the specific IaC plugin.

Copy link
Contributor

@wchengru wchengru left a comment

Choose a reason for hiding this comment

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

LGTM.
I noticed a couple of commits are using codeuri and layers. I believe that the codeur in CDK format has no problem there after checking the changes, but want to give a heads up to avoid any potential regression.

raise


def run_command_with_inputs(command_list: List[str], inputs: List[str], timeout=TIMEOUT) -> CommandResult:
Copy link
Contributor

Choose a reason for hiding this comment

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

should the arguments here match the full argument list of run_command_with_input? (missing cwd)

mndeveci and others added 3 commits August 9, 2021 08:54
aws#3030)

* chore: removed unused code which was using pre-defined managed policy list and used in a sam translator wrapper, but the code path is not used.

* make black
Co-authored-by: Jacob Fuss <jfuss@users.noreply.github.com>
Co-authored-by: Mathieu Grandis <73313235+mgrandis@users.noreply.github.com>
@moelasmar moelasmar requested a review from hawflau August 11, 2021 06:33
Copy link
Contributor

@hawflau hawflau left a comment

Choose a reason for hiding this comment

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

LGTM!

jfuss and others added 6 commits August 11, 2021 11:52
Co-authored-by: Jacob Fuss <jfuss@users.noreply.github.com>
* Add ECR credentials for windows test

* Remove the dockerhub env vars
Co-authored-by: Jacob Fuss <jfuss@users.noreply.github.com>
* Add ECR credentials for windows test

* Remove the dockerhub env vars

* install aws cli in the windows test jobs
Co-authored-by: Jacob Fuss <jfuss@users.noreply.github.com>
@moelasmar moelasmar force-pushed the cdk-support-dev-merged-to-develop branch from 1e9b60e to 14ca227 Compare August 13, 2021 07:27
wchengru and others added 6 commits August 16, 2021 09:25
…ons_Images test requirement (aws#3172)

* chore: Update dateparser to 1.0

* Move public ECR limited test cases to Canary tests
* Python39 support for samcli (aws#354)

* Python39 support for samcli

* Updated reproducible-linux.txt and lambda_build_container.py for test purpose

* Revert files after testing

* updated integ test

* updated appveyor

* updated to appveyor

* Update python3.9 appveyor config

* update windows python3.9 executable path

* update appveyor

* fix lint and windows python appveyor script

* bump version of lambda-builder to 1.6.0

Co-authored-by: jonife <79116465+jonife@users.noreply.github.com>
…pport-dev-merged-to-develop

# Conflicts:
#	samcli/__init__.py
#	samcli/commands/build/command.py
#	tests/integration/init/schemas/test_init_with_schemas_command.py
@moelasmar moelasmar merged commit 673c3e2 into aws:cdk-support-dev Aug 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.