Skip to content

Improve current init samples around docs and fixes - #558

Merged
sanathkr merged 15 commits into
aws:developfrom
heitorlessa:improv/init-samples
Jul 25, 2018
Merged

sanathkr merged 15 commits into
aws:developfrom
heitorlessa:improv/init-samples

Conversation

@heitorlessa

@heitorlessa heitorlessa commented Jul 16, 2018 •

Copy link
Copy Markdown
Contributor

Issue #, if available:

Description of changes:

This PR addresses 5 feedbacks received from customers during Workshops as well as issues noted below:


Pending items to finalize this PR

  • Fix Try/Catch errors
    • Nodejs needs to return 500 and print error
    • Python needs to return 500 and print error
    • Java is returning 400 instead of 500
  • Fix NodeJS promises
  • Fix python version (default)
  • Enhance docstrings -- API GW input/output
    • Python
    • [C] NodeJS
  • [C] Update tests to reflect changes
    • Python

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

@jfuss

jfuss commented Jul 17, 2018

Copy link
Copy Markdown
Contributor

@heitorlessa Why are we rolling back Dotnet Core enhancements?

@heitorlessa

Copy link
Copy Markdown
Contributor Author

@jfuss I updated the description as this is no longer the case.

Essentially the reason for this was that Cake isn't working on Cloud9 and requires some extra setup for people to make it work compared to all other runtimes we have so experience isn't the same.

After a thorough discussion yesterday during another Workshop we came to the conclusion that it makes more sense to update the README with expectations on what exactly is required to make the sample to work on all OSes + Cloud9.

* develop:
  docs: Fix @mhart link in README (aws#562)
  docs: Change jest to mocha in Nodejs init README (aws#564)
  docs: Fix syntax highlighting in README.md (aws#561)
  fix: spacing typo in Log statement in start-lambda (aws#559)
  fix: Functional tests must run on localhost to work in Windows (aws#552)
  docs: Adding readme for "sam logs" and "sam local start-lambda" command (aws#557)
  docs: Accessibility and help text changes (aws#554)
  chore: Preparing for release - v0.5.0 (aws#553)
  feat(LocalLambdaService): Integ test for start-lambda command (aws#550)
@heitorlessa

Copy link
Copy Markdown
Contributor Author

@joaoasrosa - Hey Joao, not sure you remember your PR for Cake (#401)...

I'm trying to run this through now on a mac with a fresh install of DotNet and I keep running into issues... as I dig into I noticed that NuGet.exe isn't anywhere in the system and while searching it seems I have to install Mono to get it working -- Is this expected? I couldn't see that in the README apart from running build.sh.

# Define directories.
SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
TOOLS_DIR=$SCRIPT_DIR/tools
ADDINS_DIR=$TOOLS_DIR/Addins
MODULES_DIR=$TOOLS_DIR/Modules
NUGET_EXE=$TOOLS_DIR/nuget.exe
CAKE_EXE=$TOOLS_DIR/Cake/Cake.exe

TOOLS_DIR doesn't exist within the dotnet core sample so perhaps this was stripped out accidentally?

I'd like to improve this example and make sure OSX, Linux and anyone running in Cloud9 is able to run this sample successfully so any help is more than appreciated :)

@joaoasrosa

Copy link
Copy Markdown
Contributor

@heitorlessa yes I remember the PR. :)

Cake needs Mono and .NET Core in Unix based systems (more info here).

Given your comment, we could enhance the README with the link, making it explicit to the users about the expectations for the system.

What are your thoughts?

@heitorlessa

heitorlessa commented Jul 23, 2018 via email

Copy link
Copy Markdown
Contributor Author

@joaoasrosa

joaoasrosa commented Jul 23, 2018 via email

Copy link
Copy Markdown
Contributor

@joaoasrosa

Copy link
Copy Markdown
Contributor

@heitorlessa the PR #570 is done!

@heitorlessa heitorlessa changed the title WIP: Improve current init samples around docs and fixes Improve current init samples around docs and fixes Jul 24, 2018
@heitorlessa

Copy link
Copy Markdown
Contributor Author

Awesome @joaoasrosa !! Thanks for that. Just updated this PR to reflect that and @jfuss this is ready for review now and possibly merge ;)

@heitorlessa

heitorlessa commented Jul 25, 2018 •

Copy link
Copy Markdown
Contributor Author

@jfuss, @sanathkr ready for review!

@sanathkr sanathkr left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM!! Thanks for iterating based on customer feedback. Really helps!

@sanathkr
sanathkr merged commit 48f8b1f into aws:develop Jul 25, 2018
jfuss added a commit that referenced this pull request Aug 28, 2018
* fix: Functional tests must run on localhost to work in Windows (#552)

* fix: spacing typo in Log statement in start-lambda (#559)

* docs: Fix syntax highlighting in README.md (#561)

* docs: Change jest to mocha in Nodejs init README (#564)

* docs: Fix @mhart link in README (#562)

* docs(README): removed cloudtrail, added SNS to generate-event (#569)

* docs: Update repo name references (#577)

* feat(debugging): Fixing issues around debugging Golang functions. (#565)

* fix(init): Improve current init samples around docs and fixes (#558)

* docs(README): Update launch config to SAM CLI from SAM Local (#587)

* docs(README): Update sample code for calling Local Lambda Invoke (#584)

* refactor(init): renamed handler for camel case, moved callback call up (#586)

* chore: aws-lambda-java-core 1.1.0 -> 1.2.0 for java sam init (#578)

* feat(validate): Add profile and region options (#582)

Currently, `sam validate` requires AWS Creds (due to the SAM Translator).
This commits adds the ability to pass in the credientials through a profile
that is configured through `aws configure`.

* docs(README): Update README prerequisites to include awscli (#596)

* fix(start-lambda): Remove Content-Type Header check (#594)

* docs: Disambiguation "Amazon Kinesis" (#599)

* docs: Adding instructions for how to add pyenv to your PATH for Windows (#600)

* docs: Update README with small grammar fix (#601)

* fix: Update link in NodeJS package.json (#603)

* docs: Creating instructions for Windows users to install sam (#605)

* docs: Adding a note directing Windows users to use pipenv (#606)

* fix: Fix stringifying λ environment variables when using Python2 (#579)

* feat(generate-event): Added support for 50+ events (#612)

* feat(invoke): Add region parameter to all invoke related commands (#608)

* docs: Breaking up README into separate files to make it easier to read (#607)

* chore: Update JVM size params to match docker-lambda (#615)

* feat(invoke): Invoke Function Without Parameters through --no-event (#604)

* docs: Update advanced_usage.rst with clarification on --env-vars usage (#610)

* docs: Remove an extra word in the sam packaging command (#618)

* UX: Improves event names to reflect Lambda Event Sources (#619)

* docs: Fix git clone typo in installation docs (#630)

* docs(README): Callout go1.x runtime support (#631)

* docs(installation): Update sam --version command (#634)

* chore(0.6.0): SAM CLI Version bump (#635)
hawflau added a commit to hawflau/aws-sam-cli that referenced this pull request Nov 14, 2023
github-merge-queue Bot pushed a commit that referenced this pull request Nov 16, 2023
* feat: Add java21 runtime support (#553)

* Add java21 runtime

* Add test_data for java21 and update gh action to use java21

* Update tests/integration/testdata/buildcmd/Java/gradlew/21/gradle/wrapper/gradle-wrapper.properties

Co-authored-by: Wing Fung Lau <[email protected]>

* Update tests/integration/testdata/buildcmd/Java/maven/21/pom.xml

Co-authored-by: Wing Fung Lau <[email protected]>

* Update tests/integration/testdata/buildcmd/Java/maven/21/pom.xml

Co-authored-by: Wing Fung Lau <[email protected]>

---------

Co-authored-by: Wing Fung Lau <[email protected]>

* Revert "feat: Add java21 runtime support (#553)" (#558)

This reverts commit 10f670e.

* Sam cli java21 runtime (#559)

* Add java21 runtime

* Add test_data for java21 and update gh action to use java21

* Update tests/integration/testdata/buildcmd/Java/gradlew/21/gradle/wrapper/gradle-wrapper.properties

Co-authored-by: Wing Fung Lau <[email protected]>

* Update tests/integration/testdata/buildcmd/Java/maven/21/pom.xml

Co-authored-by: Wing Fung Lau <[email protected]>

* Update tests/integration/testdata/buildcmd/Java/maven/21/pom.xml

Co-authored-by: Wing Fung Lau <[email protected]>

* attempt to fix gradle build test failure

* attempt to fix gradle build test failure

* upgrade gradle wrapper

* upgrading gradle wrapper

---------

Co-authored-by: Haresh Nasit <[email protected]>
Co-authored-by: Haresh Nasit <[email protected]>

* fix: fix the runtime to schema code binding mapping (#566)

* update build.yml to setup multiple java versions

* Update build.yml

* revert java8 gradlew testdata

* revert java8 gradlew testdata

* Revert "revert java8 gradlew testdata"

This reverts commit a9337db.

* Revert "revert java8 gradlew testdata"

This reverts commit def09bd.

* setup multiple versions of jdk

---------

Co-authored-by: Haresh Nasit <[email protected]>
Co-authored-by: Haresh Nasit <[email protected]>
Co-authored-by: Mohamed ElAsmar <[email protected]>
Co-authored-by: Mohamed Elasmar <[email protected]>
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